
:root {
    --primary-color: #6366f1;
    --secondary-color: #10b981;
    --background-color: #0f172a;
    --text-color: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --heading-gradient: linear-gradient(45deg, #ff0080, #7928ca, #4338ca);
}

body.light-mode {
    --background-color: #f1f5f9;
    --text-color: #1e293b;
    --white: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);
    --heading-gradient: linear-gradient(45deg, #f43f5e, #8b5cf6, #3b82f6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background 0.5s ease, color 0.5s ease;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header & Navigation */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 2000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-card {
    background: var(--glass-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    margin-bottom: 3rem;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.content-text {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Controls */
.controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

/* Grid System */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.grid-item {
    background: rgba(0,0,0,0.1);
    padding: 1.5rem;
    border-radius: 16px;
}

/* Animal Test Styles */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.05);
}

.image-preview {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress Bars */
.progress-bars {
    margin-top: 2rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bar-bg {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    transition: width 1s ease-out;
}

.dog-color { background: #f39c12; }
.cat-color { background: #9b59b6; }

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

/* Footer */
.main-footer {
    background: var(--glass-bg);
    padding: 3rem 1rem;
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Ad Section */
.ad-section {
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
    .grid-container { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    h1 { font-size: 2rem; }
}
