/* ============================================
   BURGER MENU & MOBILE NAVIGATION
   ============================================ */

/* Burger Menu Button */
.burger-menu {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark, #1a1a1a);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger Menu Active State (X icon) */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Show burger menu */
    .burger-menu {
        display: flex;
    }
    
    /* Navigation Menu */
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Active menu state */
    .nav.active {
        right: 0;
    }
    
    /* Navigation Links */
    .nav .nav-link {
        display: block;
        padding: 15px 20px;
        color: var(--primary-dark, #1a1a1a);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 16px;
    }
    
    .nav .nav-link:hover {
        background: var(--gray-100, #f7f7f7);
        transform: translateX(5px);
    }
    
    .nav .admin-link {
        background: rgba(195, 30, 35, 0.1);
        border-left: 3px solid var(--primary-red, #C31E23);
    }
    
    /* User Menu in Mobile */
    .nav .user-menu {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid var(--gray-200, #e5e5e5);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav .user-name {
        padding: 10px 20px;
        font-weight: 600;
        color: var(--primary-dark, #1a1a1a);
    }
    
    .nav .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* Desktop Navigation - Keep Original Style */
@media (min-width: 769px) {
    .mobile-overlay {
        display: none !important;
    }
    
    .nav {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .nav .nav-link {
        padding: 8px 15px;
        color: var(--primary-dark, #1a1a1a);
        text-decoration: none;
        border-radius: 5px;
        transition: background 0.3s;
        font-size: 14px;
    }
    
    .nav .nav-link:hover {
        background: var(--gray-100, #f7f7f7);
    }
    
    .nav .admin-link {
        background: rgba(195, 30, 35, 0.1);
        color: var(--primary-red, #C31E23);
        font-weight: 600;
    }
    
    .nav .user-menu {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: 10px;
        padding-left: 20px;
        border-left: 2px solid var(--gray-200, #e5e5e5);
    }
    
    .nav .user-name {
        font-size: 14px;
        font-weight: 500;
        color: var(--gray-600, #666);
    }
}


/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 60px;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(236, 240, 241, 0.2);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 20px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(236, 240, 241, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-red, #C31E23);
    transform: translateY(-3px);
}

/* Footer Titles */
.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red, #C31E23);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #bdc3c7;
}

.footer-contact svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-contact a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright,
.footer-credits {
    font-size: 14px;
    color: #95a5a6;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red, #C31E23);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(195, 30, 35, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #a01419;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(195, 30, 35, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Mobile Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-social {
        justify-content: center;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* Body Padding for Footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}

/* Ensure footer stays at bottom */
body > .footer {
    margin-top: auto;
}
