/* ================================
   Lazy Earnings - Main Stylesheet
   ================================ */

/* -------- Dark Theme (Default) -------- */
:root,
[data-theme="dark"] {
    --bg: #0a0a0f;
    --bg-secondary: #1a1a24;
    --card: #12121a;
    --card-border: #2a2a35;
    --text: #e2e2e2;
    --text-muted: #aaa;
    --text-dim: #888;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --success: #10b981;
    --header-border: #2a2a35;
    --badge-bg: #333;
    --table-head: #1a1a24;
    --table-hover: #1a1a24;
    --testimonial-bg: #1a1a24;
    --disclaimer-border: #333;
    --disclaimer-bg: #1a1a24;
    --disclaimer-text: #aaa;
    --shadow-color: rgba(139, 92, 246, 0.15);
    --toggle-bg: #1a1a24;
    --toggle-border: #333;
    --transition-speed: 0.3s;
}

/* -------- Light Theme -------- */
[data-theme="light"] {
    --bg: #f5f5f7;
    --bg-secondary: #e8e8ed;
    --card: #ffffff;
    --card-border: #e0e0e5;
    --text: #1a1a2e;
    --text-muted: #555;
    --text-dim: #777;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --success: #059669;
    --header-border: #e0e0e5;
    --badge-bg: #e0e0e5;
    --table-head: #f0f0f5;
    --table-hover: #f5f5fa;
    --testimonial-bg: #ffffff;
    --disclaimer-border: #d0d0d8;
    --disclaimer-bg: #f0f0f5;
    --disclaimer-text: #666;
    --shadow-color: rgba(124, 58, 237, 0.1);
    --toggle-bg: #e8e8ed;
    --toggle-border: #ccc;
}

/* -------- Respect system preference (only if no explicit theme chosen) -------- */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg: #f5f5f7;
        --bg-secondary: #e8e8ed;
        --card: #ffffff;
        --card-border: #e0e0e5;
        --text: #1a1a2e;
        --text-muted: #555;
        --text-dim: #777;
        --accent: #7c3aed;
        --accent-hover: #6d28d9;
        --success: #059669;
        --header-border: #e0e0e5;
        --badge-bg: #e0e0e5;
        --table-head: #f0f0f5;
        --table-hover: #f5f5fa;
        --testimonial-bg: #ffffff;
        --disclaimer-border: #d0d0d8;
        --disclaimer-bg: #f0f0f5;
        --disclaimer-text: #666;
        --shadow-color: rgba(124, 58, 237, 0.1);
        --toggle-bg: #e8e8ed;
        --toggle-border: #ccc;
    }
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* -------- Header & Nav -------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--header-border);
    margin-bottom: 30px;
}

.lang-select {
    background: var(--toggle-bg);
    color: var(--text);
    border: 1px solid var(--toggle-border);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.lang-select:focus {
    outline: 2px solid var(--accent);
}

/* -------- Theme Toggle Button -------- */
.theme-toggle {
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--card);
}

/* -------- Badges -------- */
.badge {
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

/* -------- Hero Section -------- */
.hero {
    text-align: center;
    padding: 40px 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 15px 0;
    color: var(--text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--success);
}

.social-proof {
    margin-top: 10px;
    font-weight: bold;
}

/* -------- Buttons -------- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    margin: 10px;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.btn-lg {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* -------- Grid Layout -------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* -------- Cards -------- */
.card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.card h3,
.card h4 {
    color: var(--accent);
    margin-bottom: 8px;
}

/* -------- Tables -------- */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a35;
}

th {
    background: var(--table-head);
    font-weight: 600;
}

tr:hover {
    background: var(--table-hover);
}

/* -------- Testimonials -------- */
.testimonial {
    background: var(--testimonial-bg);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid var(--accent);
    transition: background var(--transition-speed) ease;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* -------- Section Titles -------- */
.section-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* -------- Disclaimer -------- */
.disclaimer {
    background: var(--disclaimer-bg);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--disclaimer-text);
    border: 1px dashed var(--disclaimer-border);
}

/* -------- Security Badges -------- */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--success);
}

/* -------- Stats -------- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.stats-row .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

/* -------- CTA Section -------- */
.cta-section {
    text-align: center;
    padding: 40px 0;
    margin-top: 20px;
}

.cta-sub {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* -------- Footer -------- */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid var(--header-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* -------- Filter Tabs -------- */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-tabs .badge {
    background: var(--badge-bg);
}

/* -------- Pro Tip Box -------- */
.pro-tip {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background var(--transition-speed) ease;
}

.pro-tip a {
    color: var(--accent);
    text-decoration: none;
}

.pro-tip a:hover {
    text-decoration: underline;
}

/* -------- Payout Methods -------- */
.payout-list {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 1rem;
}

/* -------- RTL Support -------- */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .btn,
[dir="rtl"] .btn-outline {
    text-align: center;
}

[dir="rtl"] .testimonial {
    border-left: none;
    border-right: 4px solid var(--accent);
}

/* -------- Animations -------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .btn {
        display: block;
        margin: 10px auto;
        max-width: 280px;
    }

    .stats-row {
        gap: 15px;
    }

    header {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
    }
}
