:root {
    color-scheme: light;
    --bg-color: #f0f2f5;
    --container-bg: #ffffff;
    --text-color: #333333;
    --sub-text-color: #666666;
    --btn-bg: #4a90e2;
    --btn-hover: #357abd;
    --plus-color: #888888;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f2f5;
    --sub-text-color: #aaaaaa;
    --btn-bg: #357abd;
    --btn-hover: #4a90e2;
    --plus-color: #cccccc;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* 네비게이션 바 */
.navbar {
    width: 100%;
    background-color: var(--container-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo { font-weight: 800; font-size: 1.2rem; color: var(--btn-bg); }
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--btn-bg); }

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

#theme-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    background-color: var(--container-bg);
    color: var(--text-color);
    border: 1px solid var(--plus-color);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    background: var(--container-bg);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

h1 { color: var(--text-color); margin-bottom: 0.5rem; font-size: 2.2rem; }
p { color: var(--sub-text-color); margin-bottom: 2rem; }

#lotto-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.lotto-line {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0.5);
}

.plus-sign {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--plus-color);
    margin: 0 5px;
}

button {
    padding: 14px 40px;
    font-size: 1.1rem;
    background-color: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

button:hover { background-color: var(--btn-hover); }
button:active { transform: scale(0.98); }

.divider {
    border: 0;
    height: 1px;
    background: var(--plus-color);
    margin: 3.5rem 0;
    opacity: 0.2;
}

/* 정보 섹션 스타일 */
.info-section {
    text-align: left;
    margin: 2rem 0;
}

.info-section h2 { font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--text-color); }
.info-content p { line-height: 1.7; margin-bottom: 1.2rem; color: var(--sub-text-color); }
.info-content ul { padding-left: 1.2rem; color: var(--sub-text-color); }
.info-content li { margin-bottom: 0.6rem; line-height: 1.6; }

.partnership-section { text-align: left; }
.partnership-section h3 { font-size: 1.4rem; color: var(--text-color); margin-bottom: 0.5rem; }

.form-group { margin-bottom: 1.2rem; }

input[type="email"],
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--plus-color);
    border-radius: 10px;
    background-color: var(--container-bg);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    background-color: transparent;
    border: 2px solid var(--btn-bg);
    color: var(--btn-bg);
}

.submit-btn:hover { background-color: var(--btn-bg); color: white; }

.comments-section { text-align: left; margin-top: 2rem; }
#disqus_thread { width: 100%; padding-top: 1rem; }

/* 푸터 스타일 */
.footer {
    width: 100%;
    background-color: var(--container-bg);
    padding: 4rem 0;
    margin-top: auto;
    border-top: 1px solid var(--plus-color);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    color: var(--sub-text-color);
    padding: 0 2rem;
}

.footer-links { margin: 1.5rem 0; }
.footer-links a { color: var(--sub-text-color); text-decoration: none; margin: 0 0.8rem; }
.footer-links a:hover { color: var(--btn-bg); }
.disclaimer { font-size: 0.8rem; margin-top: 1.5rem; opacity: 0.6; line-height: 1.5; }

/* 번호 대역별 색상 */
.ball.range-1 { background-color: #fbc02d; }
.ball.range-2 { background-color: #1976d2; }
.ball.range-3 { background-color: #d32f2f; }
.ball.range-4 { background-color: #7b1fa2; }
.ball.range-5 { background-color: #388e3c; }

@media (max-width: 600px) {
    .container { padding: 2rem 1.5rem; }
    .ball { width: 38px; height: 38px; font-size: 0.95rem; }
    .lotto-line { gap: 8px; }
    h1 { font-size: 1.8rem; }
    .nav-links { display: none; }
}
