/* CSS Reset & Variables */
:root {
    --bg-header: linear-gradient(180deg, #5D4037 0%, #3E2723 100%); /* Elegant Brown Gradient */
    --color-maroon-dark: #3E2723;
    --color-maroon-mid: #5D4037;
    --color-maroon-light: #8D6E63;
    --color-crimson: #C2185B;
    --color-pink-accent: #E91E63;
    --color-pink-soft: #FDF2F5;
    --color-gold-light: #FFE89C;
    --color-gold: #F5C542;
    --color-gold-dark: #B8860B;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Poppins', sans-serif;
    --shadow-gold: 0 4px 15px rgba(245, 197, 66, 0.3);
    --shadow-pink: 0 4px 15px rgba(233, 30, 99, 0.35);
}

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

body {
    font-family: var(--font-body);
    background-color: #FDF7F8;
    color: #333333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
}

/* Main Header */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    border-bottom: 1px solid rgba(245, 197, 66, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 55px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.45)) drop-shadow(-1px -1px 2px rgba(255, 255, 255, 0.15));
}

.site-logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(3px 5px 5px rgba(0, 0, 0, 0.5)) drop-shadow(-1px -1px 3px rgba(255, 255, 255, 0.2));
}

@media (max-width: 768px) {
    .site-logo {
        height: 40px;
        max-width: 220px;
    }
}
@media (max-width: 480px) {
    .site-logo {
        height: 45px;
        max-width: 200px;
    }
}

.crown-icon {
    position: absolute;
    top: -5px;
    width: 20px;
    height: 16px;
    fill: url(#gold-grad);
    color: #F5C542;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.couple-silhouette {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.couple-heart-bg {
    font-size: 28px;
    background: linear-gradient(180deg, #F5C542 0%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(245, 197, 66, 0.4));
}

.silhouette-icons {
    position: absolute;
    display: flex;
    gap: 1px;
    color: #29020C;
    font-size: 10px;
    margin-top: 1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: linear-gradient(180deg, #FFF0B3 0%, #F5C542 45%, #C9961A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.brand-tagline {
    font-size: 9px;
    font-weight: 500;
    color: var(--color-gold-light);
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.micro-heart {
    font-size: 8px;
    color: var(--color-pink-accent);
}

/* Navigation Links */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #FFFFFF; /* Pure white text */
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.nav-item.active .nav-link {
    color: var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    background: rgba(245, 197, 66, 0.08);
}

.nav-link:hover {
    color: var(--color-gold-light);
    background: rgba(255, 255, 255, 0.06);
}

.nav-icon {
    font-size: 13px;
    color: var(--color-gold);
}

/* Nav Dropdown Styles */
.nav-item.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
    color: var(--color-gold);
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #25030A;
    border: 1px solid rgba(245, 197, 66, 0.25);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1050;
    list-style: none;
}

.nav-item.has-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-link i {
    font-size: 12px;
    color: var(--color-gold);
    transition: transform 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(245, 197, 66, 0.12);
    color: var(--color-gold-light);
    padding-left: 22px;
}

.dropdown-link:hover i {
    transform: translateX(3px);
    color: var(--color-gold);
}

/* Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-login {
    background: linear-gradient(180deg, #FFE07D 0%, #F5C542 50%, #D49D18 100%);
    color: #29020C;
    box-shadow: var(--shadow-gold);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 66, 0.5);
    background: linear-gradient(180deg, #FFF0B3 0%, #F5C542 100%);
}

.btn-register {
    background: linear-gradient(180deg, #EC407A 0%, #D81B60 50%, #AD1457 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-pink);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
    background: linear-gradient(180deg, #F06292 0%, #E91E63 100%);
}

/* Google Translate Styling */
.google-translate-container {
    display: flex;
    align-items: center;
}
.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(245, 197, 66, 0.3) !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
}
.goog-te-gadget-simple .goog-te-menu-value span {
    color: #FFF !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
}
.goog-te-gadget-simple .goog-te-menu-value span:hover {
    color: var(--color-gold) !important;
}
body {
    top: 0 !important;
}
.skiptranslate iframe {
    display: none !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    color: var(--color-gold);
    font-size: 22px;
    padding: 6px;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .nav-list {
        gap: 2px;
    }
    .nav-link {
        padding: 6px 10px;
        font-size: 11px;
    }
    .header-actions {
        gap: 8px;
    }
    .btn {
        padding: 8px 14px;
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }
    .nav-wrapper {
        position: fixed;
        top: 70px;
        bottom: 0;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        min-height: calc(100vh - 70px);
        background: #29020C;
        flex-direction: column;
        justify-content: flex-start;
        padding: 18px 16px 35px 16px;
        gap: 12px;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-wrapper.active {
        left: 0;
    }
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    .nav-item {
        width: 100%;
    }
    .mobile-dropdown-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    .nav-link {
        width: 100%;
        padding: 9px 14px;
        font-size: 13px;
        border-radius: 8px;
    }
    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 10px;
    }
    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }
    .user-avatar-btn {
        justify-content: center;
        width: 100%;
        padding: 8px 12px;
    }
    #languageMenu,
    .user-profile-menu {
        width: 100%;
        position: relative;
    }
    .profile-dropdown,
    #langDropdown {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
        transform: none !important;
        box-sizing: border-box !important;
        z-index: 10001 !important;
    }
    .profile-dropdown:not(.show),
    #langDropdown:not(.show) {
        display: none !important;
    }
    .profile-dropdown.show,
    #langDropdown.show {
        display: block !important;
    }
    .profile-dropdown::before,
    #langDropdown::before {
        display: none !important;
    }
}

/* User Profile Menu */
.user-profile-menu {
    position: relative;
    display: inline-block;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid rgba(245, 197, 66, 0.3);
    transition: all 0.3s ease;
    color: #FFFFFF;
}

.user-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
    box-shadow: 0 4px 15px rgba(245, 197, 66, 0.2);
}

.avatar-icon {
    font-size: 28px;
    color: var(--color-gold);
    background: #FFF;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.avatar-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    border: 1px solid rgba(233, 30, 99, 0.1);
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    transform: rotate(45deg);
    border-left: 1px solid rgba(233, 30, 99, 0.1);
    border-top: 1px solid rgba(233, 30, 99, 0.1);
}

/* Scrollbar for profile dropdown */
.profile-dropdown::-webkit-scrollbar {
    width: 6px;
}
.profile-dropdown::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 12px;
}
.profile-dropdown::-webkit-scrollbar-thumb {
    background-color: #E0E0E0;
    border-radius: 12px;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #4A081A;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item i {
    font-size: 16px;
    color: #E91E63;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: #FFF5F8;
    color: #C2185B;
}

.dropdown-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-divider {
    height: 1px;
    background: #FCE4EC;
    margin: 4px 0;
}

.logout-item {
    color: #D32F2F;
}

.logout-item i {
    color: #D32F2F;
}

.logout-item:hover {
    background: #FFEBEE;
    color: #C62828;
}
