/* SmartCV Layout Stylesheet */

/* Navbar */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    height: 70px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-display);
    text-decoration: none;
}

.brand-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--brand-gradient);
    color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.brand-text span {
    color: var(--brand-primary);
}

.brand-pill {
    background: #e0e7ff;
    color: var(--brand-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
    color: var(--brand-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* App Main Content */
.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Footer */
.footer-wrapper {
    background: #090d16;
    color: #94a3b8;
    padding-top: 4rem;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.brand-col .navbar-brand {
    color: #ffffff;
}

.brand-col .footer-desc {
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 340px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-chip {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #64748b;
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Ad Slot Container (Section 26 & 68) */
.ad-container {
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 2rem auto;
    text-align: center;
    max-width: 970px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Mobile Navigation Elements */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.mobile-nav-toggle:hover {
    background: var(--bg-subtle);
    border-color: var(--brand-primary);
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.mobile-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Slide-in Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 360px);
    background: #ffffff;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(1.25rem, env(safe-area-inset-top, 1.25rem)) 1.5rem max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
}

.drawer-close-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
    background: #e2e8f0;
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.drawer-nav-item a:hover,
.drawer-nav-item a.active {
    background: #f1f5f9;
    color: var(--brand-primary);
}

.drawer-nav-item .drawer-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.drawer-footer-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .navbar-wrapper {
        height: 64px;
    }
    .navbar-brand {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    .brand-badge {
        width: 34px;
        height: 34px;
    }
    .brand-pill {
        display: none;
    }
    .nav-actions .btn-ghost {
        display: none;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-wrapper {
        padding-top: 3rem;
    }
    .bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .navbar-brand .brand-text {
        font-size: 1.05rem;
    }
    .nav-actions .btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }
}
