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

:root {
    --shadow-color-dark: rgba(252, 163, 17, 0.5);
    --shadow-color-light: rgba(214, 51, 108, 0.4);
    --font-sans: 'Roboto', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

body.dark-mode {
    --background-color: #1a1a2e;
    --primary-color: #e0e0e0;
    --secondary-color: #a9a9b3;
    --highlight-color: #fca311;
    --card-bg: #162447;
    --button-bg: #fca311;
    --button-text-color: #1a1a2e;
    --header-bg: rgba(22, 36, 71, 0.8);
    --footer-bg: rgba(22, 36, 71, 0.8);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 15px var(--shadow-color-dark);
}

body.light-mode {
    --background-color: #f0f2f5;
    --primary-color: #333;
    --secondary-color: #555;
    --highlight-color: #d6336c;
    --card-bg: #ffffff;
    --button-bg: #d6336c;
    --button-text-color: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --glow-shadow: 0 0 15px var(--shadow-color-light);
}

/* --- Base & Typography --- */
body {
    font-family: var(--font-sans);
    margin: 0;
    padding-top: 80px; /* Space for fixed header */
    background-color: var(--background-color);
    color: var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--highlight-color);
}

p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: opacity 0.3s;
}
a:hover {
    opacity: 0.8;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--highlight-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

nav a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--highlight-color);
}

/* --- Main Container & Hero --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}
.hero h1 {
    font-size: 3.5rem;
    margin: 0 0 10px;
}
.hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- Lotto Generator --- */
.lotto-numbers-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.lotto-number {
    font-family: var(--font-display);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    background-color: var(--background-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 2px 3px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.generate-button {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    background-color: var(--button-bg);
    color: var(--button-text-color);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: var(--glow-shadow);
    transition: all 0.3s ease;
}
.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--glow-shadow), 0 5px 15px rgba(0,0,0,0.4);
}

/* --- Content Sections --- */
.content-section {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}
.content-section h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 10px;
    margin-top: 0;
}
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.info-card ul {
    padding-left: 20px;
}
.info-card li {
    margin-bottom: 10px;
}
.emoji {
    margin-right: 10px;
}

/* --- Content Pages (About, Contact, etc.) --- */
.content-page .hero {
    margin-top: 20px;
}
.content-page .content-section ul {
    padding-left: 20px;
}
.content-page .content-section li {
    margin-bottom: 10px;
}
.contact-info {
    font-size: 1.2rem;
}

/* --- Blog Page --- */
.blog-posts-container {
    display: grid;
    gap: 30px;
}
.blog-post {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}
.blog-post:hover {
    transform: translateY(-5px);
}
.post-title {
    font-size: 1.8rem;
    margin: 0 0 10px;
}
.post-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.read-more-link {
    font-weight: 700;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    background-color: var(--footer-bg);
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* --- Theme Toggle --- */
#theme-toggle {
    background: var(--button-bg);
    color: var(--button-text-color);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    header { padding: 15px 3%; }
    .logo { font-size: 1.8rem; }
    nav { display: none; } /* Simple hiding for now, can be replaced with a hamburger menu */
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .info-section { grid-template-columns: 1fr; }
    .lotto-number { width: 50px; height: 50px; font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .container { padding: 20px 15px; }
    .hero { padding: 40px 15px; }
    .hero h1 { font-size: 2rem; }
    .content-section { padding: 25px; }
    .lotto-numbers-container { gap: 10px; }
    .lotto-number { width: 40px; height: 40px; font-size: 1.3rem; }
    .generate-button { font-size: 1rem; padding: 12px 30px; }
}
