﻿/* ====== BASE LAYOUT ====== */
.navbar {
    background: transparent;
    border: none;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

    .navbar.scrolled {
        opacity: 0.8;
    }
/* General page layout */
.page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
}

main {
    flex: 1;
    background-color: white;
}

.content {
    margin: 0 auto;
}

/* Inner container */
.nav-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 90%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    transition: all 0.3s ease;
}

/* ====== BRAND / LOGO ====== */
.nav-logo {
    font-size: 1.5rem !important;
    font-weight: 700;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s ease;
}

    .nav-logo:hover {
        transform: scale(1.02);
        color: #2563eb;
    }

    .nav-logo img {
        height: 60px !important;
    }

/* ====== DESKTOP USER AREA ====== */
.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ====== BUTTON STYLES ====== */
.btn-gradient {
    background: red;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.btn-outline-secondary {
    border: 1px solid #ccc;
    color: #333;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .btn-outline-secondary:hover {
        background: #f8f9fa;
        color: #2563eb;
        transform: translateY(-2px);
    }

.btn-outline-primary {
    border: 1px solid #2563eb;
    color: #2563eb;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .btn-outline-primary:hover {
        background: #2563eb;
        color: #fff;
    }

/* ====== MOBILE TOGGLE (HAMBURGER) ====== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2d3748;
    transition: background 0.2s ease;
}

    .mobile-toggle:hover {
        background: #f8f9fa;
    }

/* ====== MOBILE MENU ====== */
.mobile-menu {
    display: none;
    background: white;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu a,
.mobile-menu .mobile-link {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    color: #2d3748;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    background: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    justify-content: flex-start;
}

    .mobile-menu a:hover,
    .mobile-menu .mobile-link:hover {
        background: #f8f9fa;
        color: #333;
    }

.mobile-menu .mobile-logout {
    display: block;
    padding: 0;
    border: none;
    background: none;
    width: 100%;
}

    .mobile-menu .mobile-logout button {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 15px 10px;
        color: #2d3748;
        font-size: 16px;
        font-weight: 500;
        border: none;
        background: none;
        cursor: pointer;
        transition: all 0.2s ease;
        border-radius: 6px;
        width: 100%;
    }

        .mobile-menu .mobile-logout button:hover {
            background: #f8f9fa;
            color: #333;
        }

/* ====== TYPOGRAPHY ====== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d3748;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ====== RESPONSIVE BEHAVIOR ====== */

/* Default: desktop visible, hamburger hidden */
@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }

    .mobile-toggle {
        display: none !important;
    }

    .nav-user {
        display: flex !important;
    }
}

/* Mobile/tablet: show hamburger, hide desktop buttons */
@media (max-width: 991.98px) {
    .nav-user {
        display: none !important;
    }

    .mobile-toggle {
        display: block !important;
    }

    .nav-container {
        width: 95%;
        padding: 0 16px;
    }

    .mobile-menu {
        width: 95%;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .nav-container {
        width: 100%;
        border-radius: 0;
    }

    .mobile-menu {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .btn-gradient {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .nav-user {
        gap: 8px;
    }

    .nav-logo img {
        height: 50px !important;
    }

    .btn-gradient {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .mobile-menu a,
    .mobile-menu .mobile-link,
    .mobile-menu .mobile-logout button {
        font-size: 15px;
        padding: 12px 8px;
    }
}
