@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --background-color: #1a1a2e;
    --container-color: #16213e;
    --primary-color: #0f3460;
    --accent-color: #e94560;
    --text-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
}

body.light-mode {
    --background-color: #f4f4f9;
    --container-color: #ffffff;
    --primary-color: #e0e0e0;
    --accent-color: #ff6b6b;
    --text-color: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header and Navigation */
.site-header {
    background-color: var(--container-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-height);
}

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

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

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

#theme-toggle {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Main Content and Containers */
main {
    padding: 2rem 0;
}

.container {
    background-color: var(--container-color);
    padding: 2rem 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 2rem auto;
    max-width: 800px;
    transition: background-color 0.3s ease;
}

.content-section {
    text-align: left;
}

.content-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.content-section article {
    margin-bottom: 2rem;
}

.content-section article h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Lotto Generator Specific */
#lotto-generator h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.number {
    background-color: var(--primary-color);
    color: var(--text-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
    transition: all 0.3s ease;
}

#generate-btn {
    background-image: linear-gradient(to right, #e94560, #a64bf4);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.6);
}

/* Footer */
.site-footer {
    background-color: var(--container-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

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

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

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}


/* Contact Form Styles (for contact.html) */
#contact-form {
    margin-top: 4rem;
    max-width: 600px;
}

#contact-form h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

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

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--container-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

#contact-form button[type="submit"] {
    background-image: linear-gradient(to right, #e94560, #a64bf4);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    margin-top: 1rem;
}

/* Disqus Thread Styles */
#disqus_thread {
    margin: 4rem auto;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .header-container, .footer-container {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        height: auto;
    }
    body {
        padding-top: 140px; /* Adjust for taller header */
    }
    .main-nav ul {
        gap: 1rem;
    }
}

