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

:root {
    --background-start-dark: #1a1a2e;
    --background-end-dark: #16213e;
    --primary-color-dark: #0f3460;
    --secondary-color-dark: #e94560;
    --text-color-dark: #ffffff;
    --card-background-dark: rgba(255, 255, 255, 0.05);
    --ball-text-color-dark: #1a1a2e;
    --button-glow-dark: 0 0 20px rgba(233, 69, 96, 0.6);
    --shadow-color-dark: rgba(0, 0, 0, 0.2);
    --form-input-bg-dark: rgba(255, 255, 255, 0.1);
    --form-input-border-dark: rgba(255, 255, 255, 0.3);
    --form-text-color-dark: #ffffff;


    --background-start-light: #f0f2f5;
    --background-end-light: #d9e2ec;
    --primary-color-light: #3a7bd5;
    --secondary-color-light: #00d2ff;
    --text-color-light: #333333;
    --card-background-light: rgba(255, 255, 255, 0.5);
    --ball-text-color-light: #ffffff;
    --button-glow-light: 0 0 20px rgba(0, 210, 255, 0.6);
    --shadow-color-light: rgba(0, 0, 0, 0.1);
    --form-input-bg-light: rgba(255, 255, 255, 0.8);
    --form-input-border-light: rgba(0, 0, 0, 0.2);
    --form-text-color-light: #333333;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, var(--background-start-dark), var(--background-end-dark));
    color: var(--text-color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

body.light-mode {
    background: linear-gradient(135deg, var(--background-start-light), var(--background-end-light));
    color: var(--text-color-light);
}

.container {
    max-width: 500px;
    width: 100%;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px var(--shadow-color-dark);
}

body.light-mode header h1 {
    text-shadow: 0 4px 15px var(--shadow-color-light);
}

header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

body.light-mode header p {
    color: #666;
}

#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid var(--text-color-dark);
    color: var(--text-color-dark);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
}

body.light-mode #theme-toggle {
    border: 1px solid var(--text-color-light);
    color: var(--text-color-light);
}

.lotto-card {
    background: var(--card-background-dark);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 var(--shadow-color-dark);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 2rem;
    transition: background 0.3s, box-shadow 0.3s;
}

body.light-mode .lotto-card {
    background: var(--card-background-light);
    box-shadow: 0 8px 32px 0 var(--shadow-color-light);
}

.numbers-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.number-ball {
    width: 60px;
    height: 60px;
    color: var(--ball-text-color-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .number-ball {
    color: var(--ball-text-color-light);
}

.number-ball:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.generate-btn {
    background-color: var(--secondary-color-dark);
    color: var(--text-color-dark);
    border: none;
    border-radius: 50px;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--button-glow-dark);
}

body.light-mode .generate-btn {
    background-color: var(--primary-color-light);
    color: #fff;
    box-shadow: var(--button-glow-light);
}


.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.8);
}

body.light-mode .generate-btn:hover {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.8);
}

.generate-btn:active {
    transform: translateY(-1px);
}

.generate-btn svg {
    transition: transform 0.5s ease;
}

.generate-btn:hover svg {
    transform: rotate(180deg);
}

/* Contact Form Section */
.contact-form-section {
    margin-top: 3rem;
    background: var(--card-background-dark);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 var(--shadow-color-dark);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
    transition: background 0.3s, box-shadow 0.3s;
}

body.light-mode .contact-form-section {
    background: var(--card-background-light);
    box-shadow: 0 8px 32px 0 var(--shadow-color-light);
}

.contact-form-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

body.light-mode .contact-form-section h2 {
    color: var(--text-color-light);
}

.contact-form-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

body.light-mode .contact-form-section p {
    color: #555;
}

.contact-form label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--form-text-color-dark);
}

body.light-mode .contact-form label {
    color: var(--form-text-color-light);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--form-input-border-dark);
    background-color: var(--form-input-bg-dark);
    color: var(--form-text-color-dark);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s;
}

body.light-mode .contact-form input[type="text"],
body.light-mode .contact-form input[type="email"],
body.light-mode .contact-form textarea {
    border: 1px solid var(--form-input-border-light);
    background-color: var(--form-input-bg-light);
    color: var(--form-text-color-light);
}


.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color-dark);
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.4);
}

body.light-mode .contact-form input[type="text"]:focus,
body.light-mode .contact-form input[type="email"]:focus,
body.light-mode .contact-form textarea:focus {
    border-color: var(--primary-color-light);
    box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .generate-btn {
    width: auto;
    margin-top: 1rem;
}

/* Disqus Section Styling */
.disqus-section {
    margin-top: 3rem;
    background: var(--card-background-dark);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 var(--shadow-color-dark);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
    transition: background 0.3s, box-shadow 0.3s;
}

body.light-mode .disqus-section {
    background: var(--card-background-light);
    box-shadow: 0 8px 32px 0 var(--shadow-color-light);
}


footer {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

body.light-mode footer {
    color: #888;
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }

    .lotto-card {
        padding: 20px;
    }

    .number-ball {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .generate-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .contact-form-section h2 {
        font-size: 2rem;
    }
}