/* --- Base and Theme Variables --- */
:root {
    --background-color: #f0f2f5;
    --container-background: white;
    --text-color: #333;
    --link-color: #007B9A;
    --button-background: #008CBA;
    --button-hover-background: #007B9A;
    --lotto-number-background: #4CAF50;
    --lotto-number-text: white;
    --input-border-color: #ccc;
    --header-footer-background: #1e2d3b;
    --header-footer-text: #e0e0e0;
}

body[data-theme="dark"] {
    --background-color: #121212;
    --container-background: #1e1e1e;
    --text-color: #e0e0e0;
    --link-color: #63d3ff;
    --button-background: #007B9A;
    --button-hover-background: #005f79;
    --lotto-number-background: #388E3C;
    --input-border-color: #555;
    --header-footer-background: #121212;
}

/* --- General Body and Layout --- */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 80px; /* Space for fixed header */
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Header and Navigation --- */
.site-header {
    background-color: var(--header-footer-background);
    color: var(--header-footer-text);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.site-header .logo a {
    color: var(--header-footer-text);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.site-header .main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.site-header .main-nav a {
    color: var(--header-footer-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.site-header .main-nav a:hover {
    color: var(--link-color);
}

/* --- Content and Articles --- */
.content-article {
    background: var(--container-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-article h1, .content-article h2 {
    color: var(--text-color);
    border-bottom: 2px solid var(--button-background);
    padding-bottom: 10px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-article p, .content-article li {
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-article a {
    color: var(--link-color);
    text-decoration: none;
}
.content-article a:hover {
    text-decoration: underline;
}

/* --- Lotto Generator Specific --- */
.lotto-generator {
    text-align: center;
    background: var(--container-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 2rem 0;
}

#theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--button-background);
    color: var(--lotto-number-text);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
}

.lotto-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--lotto-number-background);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.5s ease;
}

.draw-button {
    background-color: var(--button-background);
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.draw-button:hover {
    background-color: var(--button-hover-background);
}

/* --- Contact Form, Disqus, Ads --- */
.contact-section, .disqus-section, .ads-section {
    background: var(--container-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-section label {
    font-weight: bold;
}

.contact-section input, .contact-section textarea {
    padding: 0.8rem;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
}

.contact-section button {
    background-color: var(--button-background);
    color: white;
    border: none;
    padding: 15px 32px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contact-section button:hover {
    background-color: var(--button-hover-background);
}


/* --- Footer --- */
.site-footer {
    background-color: var(--header-footer-background);
    color: var(--header-footer-text);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.site-footer .footer-nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 10px;
}

.site-footer a {
    color: var(--header-footer-text);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--link-color);
}