@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --heading-color: #003366;
    --container-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: var(--container-bg);
    box-shadow: var(--shadow);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}


/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.main-container, .stats-container, .text-container {
    background-color: var(--container-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

h1 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

p.description {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Lotto Numbers Display */
.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

/* Buttons */
button {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Recommendation Section */
.recommendation-section {
    margin-bottom: 3rem;
}

/* Chart Wrapper */
.chart-wrapper {
    margin-bottom: 4rem;
}

/* Text Container */
.text-container h2 {
    margin-top: 2rem;
}
.text-container ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }
    
    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .lotto-numbers {
        gap: 0.5rem;
    }

    .number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
