/* Counselya Platform Navigation - Ultra Premium Apple/LinkedIn Hybrid */

:root {
    --nav-height: 64px; /* Slightly taller for breathing room */
    --nav-bg: rgba(255, 255, 255, 0.82);
    --nav-border: rgba(0, 0, 0, 0.05); /* Softer border */
    --nav-text: rgba(0, 0, 0, 0.55);
    --nav-text-hover: rgba(0, 0, 0, 0.95);
    --nav-active: #1d1d1f; /* Sleek Apple-like dark active color */
    --nav-font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    padding-top: var(--nav-height); /* Ensure content doesn't hide behind fixed nav */
}

.platform-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--nav-border);
    z-index: 1000;
    font-family: var(--nav-font);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.platform-nav-container {
    width: 100%;
    max-width: 1128px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Logo Section */
.nav-brand {
    display: flex;
    align-items: center;
    margin-right: 8px;
    text-decoration: none;
    position: relative; /* For the wave background */
}

.brand-wave {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-40%);
    width: 240px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5,73.84-4.36,147.54,16.88,218.2,35.26,69.27,18,138.12,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113,30.8,1200,82.47V0Z' fill='rgba(10, 102, 194, 0.04)'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.nav-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px; /* Apple squircle look */
    object-fit: cover;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    position: relative;
    z-index: 1;
}

.nav-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-brand-text {
    font-size: 20px;
    font-weight: 800;
    color: #1d1d1f;
    margin-left: 12px;
    letter-spacing: -0.5px;
}

.nav-brand-accent {
    color: #0a66c2;
}

/* Search Section */
.nav-search {
    display: flex;
    align-items: center;
    margin-right: 48px; /* Breathing room */
    position: relative;
    max-width: 320px;
    width: 100%;
}

.nav-search-input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 44px;
    border: 1px solid transparent; /* Remove rigid background look */
    border-radius: 20px; /* Pill shape - Apple style */
    background-color: rgba(0, 0, 0, 0.04);
    font-family: inherit;
    font-size: 15px;
    color: var(--nav-text-hover);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nav-search-input:focus {
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.nav-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: #606264;
    pointer-events: none;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    height: 100%;
    margin: 0 auto 0 0; /* Align items nicely */
    padding: 0;
    list-style: none;
    align-items: center;
    gap: 36px; /* Massive premium spacing */
}

.nav-item {
    height: 100%;
    display: flex;
}

.nav-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    opacity: 0.8;
}

.nav-item-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    fill: currentColor;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item-text {
    line-height: 1.2;
}

.nav-item-link:hover {
    color: var(--nav-text-hover);
    opacity: 1;
}

.nav-item-link:hover .nav-item-icon {
    transform: translateY(-2px);
}

/* Active State */
.nav-item.active .nav-item-link {
    color: var(--nav-text-hover);
    opacity: 1;
}

.nav-item.active .nav-item-link::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Moved further down to prevent any overlap with text */
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background-color: var(--nav-active);
    border-radius: 2px;
}

/* Footer Watermark Style */
.footer-with-watermark {
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    left: -5%;
    bottom: -10%;
    width: 400px;
    height: 400px;
    background-image: url("../images/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.035; /* Extremely subtle premium watermark */
    pointer-events: none;
    z-index: 0;
    filter: grayscale(1);
}

.footer-content {
    position: relative;
    z-index: 1;
}

/* Small Business/Premium Items */
.nav-item-secondary .nav-item-link {
    min-width: 60px;
}

.nav-item-premium {
    color: #915907; /* Premium gold color */
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nav-item-premium:hover {
    color: #915907;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-item-text {
        display: none; /* Hide text on smaller screens */
    }
    .nav-item-link {
        min-width: 48px;
    }
    .nav-item-icon {
        margin-bottom: 0;
    }
    .nav-search {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .nav-search {
        display: none; /* Mobile search usually moves to an icon */
    }
    .nav-divider {
        display: none;
    }
    .platform-nav-container {
        justify-content: space-between;
    }
    /* Mobile fixed bottom nav could be implemented here */
}
