/* ════════════════════════════════════════════
   TOP WHEEL — Main CSS
   Flat, classic, no-framework design
   Primary: #1a3a6e (dark navy blue)
   ════════════════════════════════════════════ */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f4f6f9;
    line-height: 1.5;
}

a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ──────────────────────────────────────────
   HEADER
   ────────────────────────────────────────── */
.site-header {
    background: #1a3a6e;
    color: #fff;
    border-bottom: 3px solid #15326a;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }

.site-nav {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}
.site-nav a {
    color: #c5d8f0;
    padding: 6px 12px;
    font-size: 0.88rem;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.1s;
}
.site-nav a:hover, .site-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.btn-new-wheel {
    margin-left: auto;
    background: #2980b9;
    color: #fff;
    padding: 7px 16px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.1s;
    white-space: nowrap;
}
.btn-new-wheel:hover { background: #2471a3; text-decoration: none; }

/* ──────────────────────────────────────────
   FLASH MESSAGES
   ────────────────────────────────────────── */
.flash {
    padding: 10px 16px;
    font-size: 0.88rem;
    border-left: 4px solid;
    margin: 0;
}
.flash-success { background: #e8f5e9; border-color: #27ae60; color: #1e8449; }
.flash-error   { background: #fdecea; border-color: #c0392b; color: #a93226; }

/* ──────────────────────────────────────────
   AD BANNERS
   ────────────────────────────────────────── */
.ad-banner {
    background: #fff;
    border-top: 1px solid #dce3ed;
    border-bottom: 1px solid #dce3ed;
    text-align: center;
}
.ad-banner-top { }
.ad-banner-mid { margin: 16px 0; }
.ad-link { display: block; text-decoration: none; }
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    color: #555;
    font-size: 0.85rem;
    min-height: 50px;
    background: linear-gradient(90deg, #f8f9fa, #eef1f5, #f8f9fa);
}
.ad-placeholder:hover { background: #eef1f5; }
.ad-label {
    font-size: 0.7rem;
    background: #e0e7ef;
    color: #666;
    padding: 1px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ad-text { color: #333; font-weight: 500; }

/* ──────────────────────────────────────────
   MAIN CONTENT
   ────────────────────────────────────────── */
.main-content { min-height: calc(100vh - 54px - 200px); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ──────────────────────────────────────────
   PAGE CONTAINERS
   ────────────────────────────────────────── */
.page-container { padding: 32px 20px; max-width: 1100px; margin: 0 auto; }
.page-header { margin-bottom: 28px; border-bottom: 2px solid #dce3ed; padding-bottom: 16px; }
.page-header h1 { font-size: 1.6rem; color: #1a3a6e; margin-bottom: 6px; }
.page-header p { color: #666; font-size: 0.92rem; }

/* ──────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────── */
.hero-section {
    background: #1a3a6e;
    color: #fff;
    padding: 48px 20px;
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 14px; }
.hero-text h1 span { color: #5dade2; }
.hero-text p { font-size: 0.96rem; color: #c5d8f0; margin-bottom: 20px; line-height: 1.6; }
.hero-sub { font-size: 0.8rem; color: #8aafd0; margin-top: 10px; }

.hero-form {
    display: flex;
    gap: 0;
    max-width: 500px;
}
.hero-form input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    font-size: 0.92rem;
    border-radius: 3px 0 0 3px;
    outline: none;
    color: #333;
}
.hero-form button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 11px 20px;
    font-size: 0.92rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    white-space: nowrap;
}
.hero-form button:hover { background: #c0392b; }

.hero-wheel-preview { flex-shrink: 0; }
.demo-wheel {
    animation: demoSpin 12s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
@keyframes demoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ──────────────────────────────────────────
   SECTIONS
   ────────────────────────────────────────── */
.how-section, .features-section, .usecases-section, .faq-preview-section {
    padding: 48px 20px;
}
.how-section { background: #fff; }
.features-section { background: #f4f6f9; }
.usecases-section { background: #fff; }
.faq-preview-section { background: #f4f6f9; }

.how-section h2, .features-section h2, .usecases-section h2,
.faq-preview-section h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #1a3a6e;
    margin-bottom: 8px;
}
.section-sub {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.steps-grid {
    display: flex;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.step-card {
    flex: 1;
    min-width: 220px;
    background: #f4f6f9;
    border: 1px solid #dce3ed;
    border-radius: 4px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
}
.step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a3a6e;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}
.step-icon { font-size: 2rem; margin-bottom: 10px; }
.step-card h3 { font-size: 1rem; color: #1a3a6e; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: #555; line-height: 1.6; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 24px auto 0;
}
.feature-item {
    background: #fff;
    border: 1px solid #dce3ed;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.feature-icon { font-size: 1.4rem; flex-shrink: 0; }
.feature-item h3 { font-size: 0.92rem; color: #1a3a6e; margin-bottom: 4px; }
.feature-item p { font-size: 0.82rem; color: #555; }

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 24px auto 0;
}
.usecase-card {
    background: #f4f6f9;
    border: 1px solid #dce3ed;
    border-radius: 4px;
    padding: 20px 16px;
    text-align: center;
}
.usecase-card span { font-size: 2rem; display: block; margin-bottom: 8px; }
.usecase-card h3 { font-size: 0.92rem; color: #1a3a6e; margin-bottom: 6px; }
.usecase-card p { font-size: 0.8rem; color: #555; }

/* FAQ sections */
.faq-preview-section h2 { margin-bottom: 24px; }
.faq-list { max-width: 700px; margin: 0 auto 24px; }
.faq-item { margin-bottom: 14px; border: 1px solid #dce3ed; border-radius: 4px; background: #fff; }
.faq-item h3 { font-size: 0.92rem; color: #1a3a6e; padding: 12px 16px; border-bottom: 1px solid #eee; }
.faq-item p { font-size: 0.85rem; color: #555; padding: 10px 16px; }
.btn-outline {
    display: inline-block;
    border: 1px solid #1a3a6e;
    color: #1a3a6e;
    padding: 8px 20px;
    border-radius: 3px;
    font-size: 0.88rem;
    text-decoration: none;
    margin: 0 auto;
    display: block;
    width: fit-content;
}
.btn-outline:hover { background: #1a3a6e; color: #fff; text-decoration: none; }

/* CTA Section */
.cta-section {
    background: #1a3a6e;
    color: #fff;
    padding: 48px 20px;
    text-align: center;
}
.cta-section h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-section p { color: #c5d8f0; margin-bottom: 20px; }
.cta-form {
    display: flex;
    gap: 0;
    max-width: 440px;
    margin: 0 auto;
}
.cta-form input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 3px 0 0 3px;
    font-size: 0.9rem;
    outline: none;
    color: #333;
}
.cta-form button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}
.cta-form button:hover { background: #c0392b; }

/* ──────────────────────────────────────────
   MY WHEELS
   ────────────────────────────────────────── */
.create-wheel-box {
    background: #fff;
    border: 1px solid #dce3ed;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 24px;
}
.create-wheel-box h2 { font-size: 1rem; color: #1a3a6e; margin-bottom: 12px; }
.create-wheel-form { display: flex; gap: 0; }
.create-wheel-form input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #dce3ed;
    border-radius: 3px 0 0 3px;
    font-size: 0.9rem;
    outline: none;
    color: #333;
}
.create-wheel-form button {
    background: #1a3a6e;
    color: #fff;
    border: none;
    padding: 9px 18px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}
.create-wheel-form button:hover { background: #243f7a; }

.wheels-grid { display: flex; flex-direction: column; gap: 10px; }
.wheel-card {
    background: #fff;
    border: 1px solid #dce3ed;
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.wheel-card-icon { flex-shrink: 0; }
.wheel-card-info { flex: 1; }
.wheel-card-meta { font-size: 0.78rem; color: #888; margin-bottom: 4px; }
.wheel-card-info h3 { font-size: 1rem; color: #1a3a6e; margin-bottom: 4px; }
.wheel-card-stats { font-size: 0.8rem; color: #888; margin-bottom: 6px; }
.wheel-card-link { font-size: 0.85rem; color: #2980b9; text-decoration: none; font-weight: 600; }
.wheel-card-link:hover { text-decoration: underline; }
.wheel-card-actions { flex-shrink: 0; }
.btn-delete-wheel {
    background: none;
    border: 1px solid #dce3ed;
    color: #aaa;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
}
.btn-delete-wheel:hover { background: #fdecea; border-color: #e74c3c; color: #c0392b; }

.empty-state { text-align: center; padding: 60px 20px; color: #aaa; }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; color: #666; margin-bottom: 8px; }
.empty-state p { font-size: 0.88rem; }

/* ──────────────────────────────────────────
   FAQ FULL PAGE
   ────────────────────────────────────────── */
.faq-full-list { max-width: 800px; }
.faq-section { margin-bottom: 32px; }
.faq-section h2 { font-size: 1.15rem; color: #1a3a6e; border-bottom: 2px solid #dce3ed; padding-bottom: 8px; margin-bottom: 14px; }
.faq-section .faq-item { margin-bottom: 12px; }
.faq-section .faq-item h3 { border-bottom: 1px solid #f0f3f7; }

/* ──────────────────────────────────────────
   LEGAL PAGES
   ────────────────────────────────────────── */
.legal-page { max-width: 800px; }
.legal-date { color: #888; font-size: 0.85rem; margin-bottom: 20px; }
.legal-page h2 { font-size: 1.1rem; color: #1a3a6e; margin: 24px 0 8px; }
.legal-page h3 { font-size: 0.96rem; color: #333; margin: 16px 0 6px; }
.legal-page p { margin-bottom: 10px; font-size: 0.9rem; color: #444; line-height: 1.7; }
.legal-page ul { margin: 8px 0 12px 24px; }
.legal-page ul li { font-size: 0.9rem; color: #444; margin-bottom: 4px; }

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.site-footer {
    background: #1a3a6e;
    color: #c5d8f0;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-logo strong { color: #fff; font-size: 1.05rem; }
.footer-col p { font-size: 0.82rem; line-height: 1.6; color: #b0c8e0; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #b0c8e0; font-size: 0.85rem; text-decoration: none; }
.footer-col ul li a:hover { color: #fff; }
.footer-ad-link { color: #8aafd0; font-size: 0.8rem; text-decoration: none; }
.footer-ad-link:hover { color: #5dade2; }

.footer-bottom {
    background: #152d57;
    padding: 12px 20px;
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: #8aafd0; }
.footer-bottom a { color: #8aafd0; }
.footer-bottom a:hover { color: #fff; }

/* ──────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────── */
.btn-sm {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #dce3ed;
    cursor: pointer;
    background: #f0f3f7;
    color: #333;
    text-decoration: none;
    display: inline-block;
    transition: background 0.1s;
}
.btn-sm:hover { background: #dce3ed; text-decoration: none; }

/* Pagination */
.pagination { display: flex; gap: 6px; margin-top: 12px; }
.page-btn {
    padding: 5px 12px;
    border: 1px solid #dce3ed;
    border-radius: 3px;
    font-size: 0.82rem;
    color: #1a3a6e;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
}
.page-btn.disabled { color: #aaa; cursor: default; }
.page-btn:hover:not(.disabled) { background: #eef1f5; }

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-inner { flex-direction: column; }
    .hero-wheel-preview { display: none; }
    .steps-grid { flex-direction: column; }
    .header-inner { padding: 0 12px; }
    .site-nav { display: none; }
    .wheel-play-layout { flex-direction: column; }
    .wheel-play-right { width: 100%; border-left: none; border-top: 1px solid #dce3ed; }
    #wheelCanvas { width: 300px; height: 300px; }
}

/* ── Tips Section ── */
.tips-section {
    background: #fff;
    padding: 48px 20px;
}
.tips-section h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #1a3a6e;
    margin-bottom: 28px;
}
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.tip-card {
    background: #f4f6f9;
    border: 1px solid #dce3ed;
    border-radius: 4px;
    padding: 20px 16px;
    text-align: center;
}
.tip-icon { font-size: 1.8rem; margin-bottom: 10px; }
.tip-card h3 { font-size: 0.95rem; color: #1a3a6e; margin-bottom: 6px; }
.tip-card p { font-size: 0.83rem; color: #555; line-height: 1.6; }

/* ── Stats Banner ── */
.stats-banner-section {
    background: #1a3a6e;
    padding: 32px 20px;
}
.stats-banner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item { text-align: center; }
.stat-big { display: block; font-size: 1.8rem; font-weight: bold; color: #fff; line-height: 1.2; }
.stat-desc { font-size: 0.8rem; color: #8aafd0; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
@media (max-width: 600px) { .stat-divider { display: none; } }
