/* ============================================
   LAYOUT STYLES - Navigation, Beta Banner, Footer
   ============================================ */

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #0f1724 0%, #1a2332 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border-bottom:4px solid var(--accent);
    z-index: 1100;
}

.navbar-brand {
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
}

.navbar-brand span {
    display: none;
}

@media (min-width: 992px) {
    .navbar-brand span {
        display: inline;
    }
}

/* Nav link base styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

#accountSettings .nav-link{
    color:var(--accent-dark);
}

.nav-link i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* PWA Install button in navbar - special styling */
.pwa-install-nav-btn {
    animation: pulseGreen 2s infinite;
}

.pwa-install-nav-btn:hover {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    }
}

/* Hide text labels on mobile, show only icons */
@media (max-width: 991px) {
    .nav-link-text {
        display: none !important;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
        min-width: 40px;
        justify-content: center;
    }
    
    .nav-link i {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .nav-divider {
        display: none;
    }
}

/* Active navigation link styles */
.nav-link.active {
    color: #1fb6ff !important;
    background: rgba(31, 182, 255, 0.1);
    border-radius: 8px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1fb6ff, transparent);
    border-radius: 2px;
}

.nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    margin: 0 8px;
}

/* Notification Badge Styles */
.notification-badge-nav {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid #0f1724;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: notificationPulse 2s infinite;
}

/* When badge has content, it will be shown via JavaScript */
.notification-badge-nav[style*="display: flex"] {
    display: flex !important;
}

@keyframes notificationPulse {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(239, 68, 68, 0.8), 0 0 8px rgba(239, 68, 68, 0.6);
    }
}

/* Adjust badge position on mobile */
@media (max-width: 991px) {
    .notification-badge-nav {
        top: 2px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        border-width: 2px;
    }
}

/* Dropdown menu styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    background: var(--card);
    border: 1px solid #e5e7eb;
    margin-top: 8px;
}

/* Fix dropdown positioning on mobile to prevent navbar expansion */
@media (max-width: 991px) {
    .nav-item.dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: auto !important;
        right: 10px;
        margin-top: 60px;
        transform: none !important;
        min-width: 200px;
        z-index: 1200;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    
    .dropdown-menu.show {
        display: block;
    }
}

/* Dropdown menu dark mode support */
[data-theme="dark"] .dropdown-menu {
    background: #1a2332 !important;
    border: 1px solid #2d3748 !important;
}

[data-theme="dark"] .dropdown-item {
    color: #f8fafb !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(31, 182, 255, 0.1);
    color: var(--accent) !important;
}

[data-theme="dark"] .dropdown-divider {
    border-color: #2d3748;
}

/* Dark theme notification badge border */
[data-theme="dark"] .notification-badge-nav {
    border-color: #1a2332;
}

.page-header{
    border-bottom:2px solid var(--accent);
    margin-bottom:36px;
    padding-top:36px;
}

.page-header i{
    color:var(--accent);
}


.hero-landing {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2332 30%, var(--accent) 100%);
    background-attachment: fixed;
    color: white;
    border-radius: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;

}

    .hero-landing::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 0V4h4v2h-4zm-8 0v4h4V0h-4zm-8 8V6H8v2h20zm24 8h-2V8h2v4zm0 8h-2v-4h2v4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.5;
        pointer-events: none;
    }

[data-theme="dark"] .hero-landing {
    background: linear-gradient(135deg, #0f1724 0%, #111827 30%, var(--accent) 100%);
}


/* Floating feedback button */
.floating-feedback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.6);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    border: 3px solid white;
    cursor: pointer;
    animation: pulseButton 2s infinite, bounceButton 3s infinite ease-in-out;
}

.floating-feedback-btn:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.8);
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, #ff7b45 0%, #ff9f2e 100%);
    color: white;
    text-decoration: none;
}

.floating-feedback-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.floating-feedback-btn i {
    font-size: 1.4rem;
    animation: heartBeat 1.5s infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(255, 107, 53, 0.6);
    }
    50% {
        box-shadow: 0 8px 40px rgba(255, 107, 53, 0.9), 0 0 20px rgba(255, 107, 53, 0.5);
    }
}

@keyframes bounceButton {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .floating-feedback-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .floating-feedback-btn i {
        font-size: 1.2rem;
    }
}

/* PWA Loading Overlay */
#pwa-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1724 0%, #1a2332 30%, #1fb6ff 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    flex-direction: column;
    gap: 24px;
}

/* Dark mode doesn't change PWA overlay as it's already dark */

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2332 100%);
    color: rgba(255,255,255,0.7);
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0f1724 0%, #111827 100%);
    border-top: 1px solid #2d3748;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 8px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #1fb6ff;
}
