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

:root {
    --primary-color: #FF5733;
    --secondary-color: #FFC300;

    --bg-color-light: #f4f7f6;
    --text-color-light: #333;
    --container-bg-light: white;
    --header-footer-bg-light: #ffffff;
    --link-color-light: #333;
    --link-hover-light: var(--primary-color);

    --bg-color-dark: #1a1a1a;
    --text-color-dark: #e0e0e0;
    --container-bg-dark: #2c2c2c;
    --header-footer-bg-dark: #222;
    --link-color-dark: #e0e0e0;
    --link-hover-dark: var(--primary-color);
    
    --ball-size: 60px;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    transition: background-color 0.3s, color 0.3s;
}

body[data-theme='dark'] {
    --bg-color-light: var(--bg-color-dark);
    --text-color-light: var(--text-color-dark);
    --container-bg-light: var(--container-bg-dark);
    --header-footer-bg-light: var(--header-footer-bg-dark);
    --link-color-light: var(--link-color-dark);
    --link-hover-light: var(--link-hover-dark);
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
.site-header {
    background-color: var(--header-footer-bg-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.site-nav a:hover, .site-nav a.active {
    color: var(--link-hover-light);
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

main .container {
    text-align: center;
    background-color: var(--container-bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

h1 {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

p.description {
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

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

.lotto-ball {
    width: var(--ball-size);
    height: var(--ball-size);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.generate-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Static Pages Content */
.static-page-content h1 {
    margin-bottom: 2rem;
}
.static-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.static-page-content p {
    text-align: left;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.static-page-content a {
    color: var(--primary-color);
}


/* Footer */
.site-footer {
    background-color: var(--header-footer-bg-light);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}