/* Add styles here */
:root {
    --bg-color: #f0f2f5;
    --container-bg: #ffffff;
    --text-main: #2c3e50;
    --text-sub: #7f8c8d;
    --card-bg: #f8f9fa;
    --primary-gradient: linear-gradient(135deg, #3498db, #8e44ad);
    --btn-glow: 0 0 20px rgba(52, 152, 219, 0.4);
    --multi-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
    --bg-color: #1a1a1b;
    --container-bg: #2d2d2e;
    --text-main: #e4e6eb;
    --text-sub: #b0b3b8;
    --card-bg: #3a3b3c;
    --btn-glow: 0 0 25px rgba(142, 68, 173, 0.5);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--text-main);
    transition: background 0.3s ease;
}

.container { 
    background: var(--container-bg);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

/* --- Header & Main Title --- */
h1 { 
    font-size: 2.8rem; 
    font-weight: 900; 
    color: var(--text-main); 
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.subtitle { 
    font-size: 1.2rem; 
    color: var(--text-sub); 
    margin-top: 0;
    margin-bottom: 35px; 
}

/* --- Lotto Generation Area --- */
.lotto-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lotto-set {
    display: flex; align-items: center; gap: 15px;
    padding: 12px;
    background: var(--container-bg);
    border-radius: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}
.lotto-set:last-child { margin-bottom: 0; }
.lotto-set:hover { transform: scale(1.02); }

.set-label { 
    font-weight: 900; width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center;
    color: var(--text-sub); font-size: 0.9rem;
    border-right: 2px solid var(--card-bg);
}

.numbers-container { display: flex; flex-grow: 1; justify-content: space-around; gap: 5px; }

.number-circle {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.1rem; font-weight: 800; color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 -3px 5px rgba(0, 0, 0, 0.2);
    position: relative; transition: transform 0.2s ease;
}
.number-circle:hover { transform: translateY(-5px) scale(1.1); }

/* --- Number Colors --- */
.color-yellow { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.color-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.color-red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.color-gray { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.color-green { background: linear-gradient(135deg, #2ecc71, #27ae60); }

/* --- Buttons --- */
.glow-on-hover {
    background: var(--primary-gradient); color: white; border: none; border-radius: 15px;
    padding: 18px 40px; font-size: 1.3rem; font-weight: 800;
    cursor: pointer; box-shadow: var(--multi-shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; margin-bottom: 20px;
}
.glow-on-hover:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--btn-glow), var(--multi-shadow); }
.glow-on-hover:active { transform: scale(0.95); }

.share-buttons { margin-bottom: 20px; }

#kakaotalk-sharing-btn { background: none; border: none; padding: 0; cursor: pointer; transition: opacity 0.3s ease; }
#kakaotalk-sharing-btn:hover { opacity: 0.8; }


/* --- SEO & AdSense Content Styling --- */
.divider {
    border: 0; height: 1px;
    background-color: var(--card-bg);
    margin: 40px auto;
}

.info-section {
    margin-top: 20px;
    text-align: left;
}

.info-section h2 {
    font-size: 1.5rem; font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.info-section p {
    font-size: 1rem; line-height: 1.7;
    color: var(--text-sub);
    margin-bottom: 25px;
}

footer {
    margin-top: 30px; padding-top: 20px;
    border-top: 1px solid var(--card-bg);
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-style: italic;
}

/* --- Misc --- */
.mode-btn {
    position: fixed; top: 20px; right: 20px; padding: 10px 15px; border-radius: 20px;
    border: 1px solid #ccc; background: var(--container-bg); color: var(--text-main);
    cursor: pointer; z-index: 100; box-shadow: var(--multi-shadow); transition: all 0.2s ease;
}
.mode-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }

/* --- Responsive (Mobile) Design --- */
@media (max-width: 480px) {
    body { padding: 10px; }
    .container { padding: 25px; border-radius: 20px; }
    h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1.05rem; }
    .lotto-card { padding: 15px; }
    .lotto-set { padding: 8px; gap: 8px; }
    .number-circle { width: 36px; height: 36px; font-size: 1rem; }
    .set-label { width: 25px; font-size: 0.8rem; }
    .glow-on-hover { padding: 15px 30px; font-size: 1.1rem; }
    .mode-btn { top: 10px; right: 10px; }
    .info-section h2 { font-size: 1.3rem; }
    .info-section p { font-size: 0.95rem; line-height: 1.6; }
    .divider { margin: 30px auto; }
}

@media (max-width: 360px) {
    h1 { font-size: 2rem; }
    .number-circle { width: 32px; height: 32px; font-size: 0.9rem; }
}