/* Clean separation between desktop and mobile */

/* Desktop Only Elements */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Desktop Navigation */
.top-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,248,248,0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(139,0,0,0.1);
    z-index: 1000;
}

.nav-curved-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,248,248,0.98) 100%);
    backdrop-filter: blur(10px);
    clip-path: polygon(
        0% 0%, 
        42% 0%, 
        46% 70%, 
        50% 100%, 
        54% 70%, 
        58% 0%, 
        100% 0%, 
        100% 100%, 
        0% 100%
    );
}

.top-nav {
    position: relative;
    z-index: 1001;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.6rem 1rem;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
    min-width: 80px;
    white-space: nowrap;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(139,0,0,0.1) 0%, rgba(220,20,60,0.05) 100%);
    border-color: rgba(139,0,0,0.3);
    transform: translateY(-1px);
    color: #8B0000;
}

.desktop-logo-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    width: 120px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desktop Logo - moved up */
.desktop-logo {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), inset 0 2px 10px rgba(255,255,255,0.2);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.logo-text-top {
    color: black;
    font-size: 1.20rem;
    font-weight: 300;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 0.3rem;
    z-index: 1003;
}


.desktop-logo img {
    width: 150%;
    height: 150%;
    object-fit: contain;
}

/* Desktop Language Toggle - moved up */
.desktop-language {
    position: fixed;
    top: 80px;
    left: 2rem;
    z-index: 999;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Desktop Auth Section - positioned like language toggle */
.desktop-auth {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 999;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(139,0,0,0.3);
    color: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

.lang-btn.active {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    border-color: #8B0000;
    color: white;
}

.lang-btn:hover {
    background: rgba(139,0,0,0.1);
    border-color: rgba(139,0,0,0.5);
}

.lang-separator {
    color: rgba(139,0,0,0.6);
    font-weight: normal;
    font-size: 0.8rem;
}

.desktop-auth .auth-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.1);
}

.desktop-auth .auth-link:hover {
    transform: translateY(-1px);
}

.desktop-auth .login-link {
    background: linear-gradient(135deg, #1a4a8a, #2563eb);
    border: 1px solid rgba(37, 99, 235, 0.8);
    color: #1a4a8a;
}

.desktop-auth .login-link:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: rgba(59, 130, 246, 1);
    transform: translateY(-1px);
}

.desktop-auth .signup-link {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1a1a1a;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.8);
}

.desktop-auth .signup-link:hover {
    background: linear-gradient(135deg, #ffed4a, #fff);
    border-color: rgba(255, 237, 74, 1);
}

.desktop-auth .auth-separator {
    color: rgba(255,255,255,0.6);
    font-weight: normal;
    font-size: 0.8rem;
}

.desktop-auth .profile-link {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1a1a1a;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.8);
    text-decoration: none;
    text-transform: capitalize;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.desktop-auth .profile-link:hover {
    background: linear-gradient(135deg, #ffed4a, #fff);
    border-color: rgba(255, 237, 74, 1);
    transform: translateY(-1px);
    color: #1a4a8a; 
}

/* New Action Buttons Styles */
.user-actions {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-right: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn .action-icon {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Notification Button */
.notification-btn .action-icon {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    font-style: normal;
}

.notification-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-1px);
}

.notification-btn:hover .action-icon {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Message Button */
.message-btn .action-icon {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    font-style: normal;
}

.message-btn:hover {
    background: rgba(139, 69, 19, 0.2);
    border-color: #8B4513;
    transform: translateY(-1px);
}

.message-btn:hover .action-icon {
    color: #D2691E;
    text-shadow: 0 0 8px rgba(210, 105, 30, 0.5);
}

/* Mobile User Actions */
.mobile-user-actions {
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin: 0.5rem 0;
    padding: 0.5rem 0;
}

.mobile-user-actions .mobile-nav-link {
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.2rem;
}

.mobile-user-actions .mobile-nav-link:hover {
    background-color: rgba(255,255,255,0.15);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 220px;
    border: 2px solid rgba(139,0,0,0.1);
    z-index: 1000;
    margin-top: 10px;
}

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

.dropdown-item {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139,0,0,0.1);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Cinzel', 'Times New Roman', serif;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(139,0,0,0.1) 0%, rgba(220,20,60,0.05) 100%);
    color: #8B0000;
    padding-left: 1.5rem;
}

.period-description {
    font-size: 0.7rem;
    color: #666;
    font-style: italic;
    margin-top: 0.2rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Mobile Header */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    .mobile-header-left {
        color: white;
        font-size: 1rem;
        font-weight: 300;
        font-family: 'Cinzel', serif;
        letter-spacing: 1px;
    }

    .mobile-header-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-logo {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255,255,255,0.9);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .mobile-logo img {
        width: 28px;
        height: 28px;
        object-fit: contain;
        position: relative;
        z-index: 10;
        filter: brightness(1.1) contrast(1.1);
    }

    /* Fallback emoji when image fails to load */
    .mobile-logo.fallback::before {
        content: "🐦‍🔥";
        position: absolute;
        font-size: 1.1rem;
        z-index: 5;
        color: white;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }
    
.mobile-nav-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;  /* Make it bigger */
    cursor: pointer;
    padding: 0.5rem;    /* More padding for easier clicking */
    font-weight: bold;  /* Make it bolder */
    line-height: 1;     /* Better alignment */
}

.mobile-nav-toggle:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Mobile Navigation */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        min-height: 60px;
    }
    
    .mobile-nav-logo {
        color: white;
        font-size: 1.1rem;
        font-weight: bold;
    }
    
    .mobile-nav-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.3rem;
    }
    
    .mobile-nav-content {
        padding: 1rem;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .mobile-nav-item {
        margin-bottom: 0.3rem;
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 0.8rem;
        color: white;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    
    .mobile-nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.3);
    }
    
    .mobile-nav-link .nav-icon {
        margin-right: 0.8rem;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
}