/* Shared shell styles for public pages (auth, legal).
   Contains only the nav header and common reset needed by base.html.
   Landing-page section styles live in landing-new.css (loaded only by landing.html). */

:root {
    --primary-green: #00C967;
    --primary-blue: #3182e4;
    --dark-gray: #5a5a5a;
    --dark-bg: #0a0a0a;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #707070;
    --text-darker: #2D302C;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: inherit;
}

.header {
    background: transparent;
    padding: calc(50px + var(--safe-area-inset-top)) 0 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 6px 18px;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled .header-content {
    padding: 4px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 16px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 12px;
}

.header.scrolled .sign-in-btn {
    padding: 5px 14px;
    font-size: 12px;
}

.desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 35px;
        margin-left: auto;
        margin-right: 20px;
    }

    .nav-link {
        color: var(--text-dark);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.3s ease;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        line-height: 1;
    }

    .nav-link:hover {
        color: var(--primary-green);
    }
}

.hamburger-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}

.hamburger-menu:hover {
    color: var(--primary-green);
    transform: translate(-50%, -50%) scale(1.1);
}

.hamburger-menu:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.hamburger-icon,
.close-icon {
    display: block;
    line-height: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 300;
    font-size: 18px;
}

.close-icon {
    opacity: 0;
    pointer-events: none;
}

.hamburger-menu.active .hamburger-icon {
    opacity: 0;
}

.hamburger-menu.active .close-icon {
    opacity: 1;
}

.sign-in-btn {
    padding: 7px 18px;
    background: #707070;
    color: var(--text-white);
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sign-in-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.sign-in-btn:hover::before {
    width: 200px;
    height: 200px;
}

.sign-in-btn:hover {
    background: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 112, 112, 0.4);
}

.sign-in-btn:active {
    transform: translateY(0);
}

.dropdown-menu {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 30px 20px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 160px;
    width: 90%;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.dropdown-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown-menu.active .dropdown-link {
    animation: dropdownFadeIn 0.4s ease-out forwards;
}

.dropdown-menu.active .dropdown-link:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu.active .dropdown-link:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu.active .dropdown-link:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu.active .dropdown-link:nth-child(4) { animation-delay: 0.2s; }
.dropdown-menu.active .dropdown-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-link:hover {
    color: var(--primary-green);
    transform: scale(1.05);
}
