/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #0B1220;
    --surface: #121A2B;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary: #0F766E;
    --secondary-hover: #0D5C56;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;
    --card-radius: 1rem;
    --transition: all 0.2s ease;
}

body {
    background-color: var(--bg-body);
    color: var(--text);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
.section-title {
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}
.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.article-title {
    margin: 1.5rem 0 1rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--text);
}
.btn-secondary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* ===== HEADER ===== */
.site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}
.logo-link {
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text);
}
.logo-accent {
    color: var(--primary);
}
.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary);
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ===== HERO ===== */
.hero {
    padding: 4rem 0;
    background: radial-gradient(circle at 10% 30%, rgba(37,99,235,0.15), transparent);
}
.hero-container {
    text-align: center;
    max-width: 800px;
}
.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== TOP PLATFORMS CARDS ===== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.platform-card {
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}
.platform-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: bold;
}
.card-badge.accent {
    background: var(--accent);
    color: #0B1220;
}
.card-badge.secondary {
    background: var(--secondary);
}
.platform-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem;
}
.rating-stars {
    color: var(--accent);
    margin: 0.5rem 0;
}
.rating-value {
    color: var(--text-muted);
    margin-left: 0.3rem;
}
.bonus-info {
    background: rgba(15,118,110,0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
.payment-icons {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ===== TABLES (ADAPTIVE) ===== */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 1rem;
    border: 1px solid var(--border);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    min-width: 600px;
}
.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.comparison-table th {
    background: rgba(37,99,235,0.2);
    color: var(--primary);
    font-weight: 600;
}
.platform-cell {
    font-weight: bold;
}
.rating-cell {
    color: var(--accent);
}

/* General tables inside article content */
.markdown-body table,
.content-container table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem auto;
    background: var(--surface);
    border-radius: 0.75rem;
}
.markdown-body th,
.markdown-body td,
.content-container th,
.content-container td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}
.markdown-body th,
.content-container th {
    background: rgba(37,99,235,0.15);
    color: var(--primary);
}

/* ===== CRITERIA GRID ===== */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.criterion-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}
.criterion-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.secondary-bg {
    background: var(--secondary);
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 60px;
}
.trust-badge {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.badge-verified, .badge-editorial {
    background: var(--secondary);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
}

/* ===== FAQ ACCORDION ===== */
.faq-accordion {
    margin: 2rem 0;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}
.faq-item.active .faq-question::after {
    content: '−';
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1rem;
}

/* ===== BLOG LIST STYLES ===== */
.blog-list {
    padding: 2rem 0;
}
.blog-title {
    margin-bottom: 0.5rem;
}
.blog-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.blog-card {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body {
    padding: 1.25rem;
}
.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.blog-date::before {
    content: "📅 ";
}
.blog-category {
    background: var(--secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
}
.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.blog-card-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== POST CARDS (default list) ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.post-card {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-body {
    padding: 1rem;
}
.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.card-summary {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    margin: 3rem 0;
    text-align: center;
}
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}
.page-item {
    list-style: none;
}
.page-link {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text);
}
.page-link:hover,
.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 2rem 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--primary);
}

/* ===== RELATED ARTICLES ===== */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.related-card {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
}
.related-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.related-body {
    padding: 1rem;
}
.related-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.related-summary {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.stretched-link {
    text-decoration: none;
    color: inherit;
}
.stretched-link:hover {
    color: var(--primary);
}

/* ===== MARKDOWN BODY ===== */
.markdown-body {
    line-height: 1.6;
}
.markdown-body h2,
.markdown-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.markdown-body p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.markdown-body a {
    color: var(--primary);
}
.section-divider {
    margin: 3rem 0;
    border-color: var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--surface);
        width: 80%;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: left 0.3s;
        border-right: 1px solid var(--border);
        gap: 1.5rem;
        z-index: 99;
    }
    .nav-list.active {
        left: 0;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-container {
        padding: 0.8rem 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    .markdown-body table,
    .content-container table {
        display: block;
        width: 100%;
        overflow-x: auto;
        margin-left: 0;
        margin-right: 0;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

