﻿/* shared.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.navbar {
    background-color: var(--secondary);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

    .menu-icon span {
        width: 25px;
        height: 3px;
        background-color: var(--bg-white);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

    .nav-links li a {
        color: var(--bg-white);
        text-decoration: none;
        padding: 0.6rem 1.2rem;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.95rem;
    }

        .nav-links li a:hover {
            background-color: var(--secondary-dark);
        }

        .nav-links li a.active {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
        }

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(45, 92, 63, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(45, 92, 63, 0.4);
    }

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(107, 68, 35, 0.3);
}

    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(107, 68, 35, 0.4);
    }

h1, h2, h3 {
    color: var(--secondary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.75rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.footer {
    background-color: var(--secondary);
    color: var(--bg-white);
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 20px var(--shadow);
}

    .footer p {
        margin: 0.5rem 0;
    }

/* Responsive */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background-color: var(--secondary);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: -2px 0 20px var(--shadow);
        transition: right 0.3s ease;
        gap: 0;
        overflow-y: auto;
    }

        .nav-links li {
            width: 100%;
        }

            .nav-links li a {
                width: 100%;
                padding: 1rem 1.5rem;
                border-radius: 0;
            }

    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    .menu-toggle:checked ~ label .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle:checked ~ label .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ label .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .card {
        padding: 2rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}
