/* Base styles for header, main, footer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #023047;
    background: #FEFAE0;
}

/* Header */
header {
    background: #FFB703;
    border-bottom: 1px solid #E6A500;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #023047;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
}

.logo-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.logo-text {
    font-weight: 600;
}

.logo:hover {
    color: #023047;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #023047;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #023047;
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-greeting {
    color: #6C757D;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-btn {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-btn.login {
    color: #023047;
    background: transparent;
}

.auth-btn.login:hover {
    background: #FEFAE0;
    color: #FFB703;
    text-decoration: none;
}

.auth-btn.signup {
    background: #FFB703;
    color: #023047;
}

.auth-btn.signup:hover {
    background: #E6A500;
    color: #023047;
    text-decoration: none;
}

.auth-btn.logout {
    color: #6C757D;
    background: transparent;
}

.auth-btn.logout:hover {
    color: #DC3545;
    text-decoration: none;
}

/* Main */
main {
    min-height: calc(100vh - 140px);
}

/* Footer */
footer {
    background: #023047;
    color: white !important;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #FFB703;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #E0E0E0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFB703;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #FFB703;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2A4A5A;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #E0E0E0 !important;
    font-size: 0.9rem;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #023047;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #6C757D;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #FFB703;
    color: #023047;
}

.btn-primary:hover {
    background-color: #E6A500;
}

.btn-secondary {
    background-color: #6C757D;
    color: white;
}

.btn-secondary:hover {
    background-color: #5A6268;
}

/* Form error styles */
.error {
    border-color: #DC3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .nav-links {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .auth-buttons {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .auth-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .user-greeting {
        font-size: 0.8rem;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
        gap: 10px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.8rem;
    }

    .nav-links a {
        padding: 6px 10px;
    }

    .auth-buttons {
        gap: 8px;
    }

    .auth-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-image {
        width: 30px;
        height: 30px;
    }

    .user-greeting {
        font-size: 0.7rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Modal responsive */
    .modal-content {
        margin: 30% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}