/* Year in Color - Website Styles */

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

:root {
    --bg-color: #1a1a2e;
    --surface-color: #16213e;
    --card-color: #1f2940;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #4CAF50;
    --accent-secondary: #2196F3;
    --ad-bg: #0f0f1a;
    --ad-border: #2a2a4a;
    --max-width: 1400px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--ad-border);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #9C27B0, #FFEB3B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.site-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Main Content */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Ad Containers */
.ad-container {
    background-color: var(--ad-bg);
    border: 1px dashed var(--ad-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-banner {
    width: 100%;
    min-height: 90px;
    padding: 20px;
}

.ad-top {
    margin-bottom: 20px;
}

.ad-sidebar {
    display: none; /* Hidden on mobile */
    width: 160px;
    min-width: 160px;
    height: 600px;
    flex-shrink: 0;
}

.ad-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* App Section - Three Column Layout */
.app-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.app-wrapper {
    flex: 1;
    max-width: 800px;
    min-height: 680px;
    background-color: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.app-frame {
    width: 100%;
    height: 680px;
    border: none;
    display: block;
}

/* Content Sections */
.content-section {
    background-color: var(--card-color);
    border-radius: 16px;
    padding: 40px;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.benefit {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.benefit h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.benefit p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature {
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 12px;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-secondary);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: 12px;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--ad-border);
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Responsive Design */

/* Tablet and up - Show sidebar ads */
@media (min-width: 1024px) {
    .ad-sidebar {
        display: flex;
    }

    .app-wrapper {
        min-height: 680px;
    }

    .app-frame {
        height: 680px;
    }
}

/* Large desktop - Wider sidebar ads */
@media (min-width: 1280px) {
    .ad-sidebar {
        width: 300px;
        min-width: 300px;
    }

    .ad-banner {
        min-height: 100px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 16px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-tagline {
        font-size: 1rem;
    }

    .main-content {
        padding: 16px;
    }

    .app-wrapper {
        min-height: 600px;
        border-radius: 12px;
    }

    .app-frame {
        height: 600px;
    }

    .content-section {
        padding: 24px 20px;
    }

    .content-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .step {
        padding: 12px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

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

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

    .ad-banner {
        min-height: 70px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .app-wrapper {
        min-height: 650px;
    }

    .app-frame {
        height: 650px;
    }
}
