/*
Theme Name: PariAfrica
Theme URI: https://pariafrica.com
Description: Thème enfant GeneratePress optimisé SEO pour PariAfrica — comparateur de paris sportifs en Afrique
Author: PariAfrica
Author URI: https://pariafrica.com
Template: generatepress
Version: 1.0.0
Text Domain: pariafrica
*/

/* ---- VARIABLES ---- */
:root {
    --pa-primary: #1B5E20;      /* Vert Afrique */
    --pa-secondary: #FF6F00;     /* Orange — accent */
    --pa-dark: #1a1a2e;          /* Fond sombre */
    --pa-light: #f8f9fa;
    --pa-text: #333333;
    --pa-border: #e0e0e0;
    --pa-success: #2e7d32;
    --pa-warning: #f57c00;
    --pa-danger: #c62828;
    --pa-radius: 8px;
}

/* ---- BASE ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--pa-text);
    line-height: 1.7;
}

/* ---- BOOKMAKER TABLE ---- */
.pa-bookmaker-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.pa-bookmaker-table th {
    background: var(--pa-dark);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.pa-bookmaker-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pa-border);
    vertical-align: middle;
}

.pa-bookmaker-table tr:hover {
    background: #f5f5f5;
}

.pa-bookmaker-table img {
    vertical-align: middle;
    margin-right: 8px;
}

/* ---- CTA BUTTON ---- */
.pa-cta {
    display: inline-block;
    background: var(--pa-secondary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--pa-radius);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.pa-cta:hover {
    background: #e65100;
    color: white;
}

.pa-cta-green {
    background: var(--pa-success);
}

.pa-cta-green:hover {
    background: #1b5e20;
}

/* ---- RATING BADGE ---- */
.pa-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--pa-success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ---- BONUS BADGE ---- */
.pa-bonus-badge {
    display: inline-block;
    background: var(--pa-secondary);
    color: white;
    padding: 6px 16px;
    border-radius: var(--pa-radius);
    font-weight: 700;
}

/* ---- PROS / CONS ---- */
.pa-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .pa-pros-cons {
        grid-template-columns: 1fr;
    }
}

.pa-pros, .pa-cons {
    padding: 1rem;
    border-radius: var(--pa-radius);
}

.pa-pros {
    background: #e8f5e9;
    border-left: 4px solid var(--pa-success);
}

.pa-cons {
    background: #fbe9e7;
    border-left: 4px solid var(--pa-danger);
}

.pa-pros h4, .pa-cons h4 {
    margin-top: 0;
}

.pa-pros li::before { content: "+  "; color: var(--pa-success); font-weight: 700; }
.pa-cons li::before { content: "-  "; color: var(--pa-danger); font-weight: 700; }

.pa-pros li, .pa-cons li {
    list-style: none;
    padding: 4px 0;
}

/* ---- QUICK FACTS BOX ---- */
.pa-quick-facts {
    background: var(--pa-light);
    border: 1px solid var(--pa-border);
    border-radius: var(--pa-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pa-quick-facts table {
    width: 100%;
}

.pa-quick-facts td {
    padding: 8px 0;
    border-bottom: 1px solid var(--pa-border);
}

.pa-quick-facts td:first-child {
    font-weight: 600;
    width: 45%;
}

/* ---- TABLE OF CONTENTS ---- */
.pa-toc {
    background: var(--pa-light);
    border: 1px solid var(--pa-border);
    border-radius: var(--pa-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pa-toc h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.pa-toc ol {
    margin-bottom: 0;
}

.pa-toc a {
    text-decoration: none;
    color: var(--pa-primary);
}

.pa-toc a:hover {
    text-decoration: underline;
}

/* ---- PAYMENT GRID ---- */
.pa-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.pa-payment-card {
    background: white;
    border: 1px solid var(--pa-border);
    border-radius: var(--pa-radius);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--pa-text);
    transition: box-shadow 0.2s;
}

.pa-payment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---- COUNTRY SELECTOR ---- */
.pa-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.pa-country-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: white;
    border: 1px solid var(--pa-border);
    border-radius: var(--pa-radius);
    text-decoration: none;
    color: var(--pa-text);
    transition: border-color 0.2s;
}

.pa-country-card:hover {
    border-color: var(--pa-primary);
}

.pa-country-flag {
    font-size: 2rem;
}

/* ---- TUTORIAL STEPS ---- */
.pa-steps {
    counter-reset: step-counter;
}

.pa-step {
    position: relative;
    padding-left: 48px;
    margin-bottom: 1.5rem;
}

.pa-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--pa-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .pa-bookmaker-table {
        font-size: 0.85rem;
    }

    .pa-bookmaker-table th,
    .pa-bookmaker-table td {
        padding: 8px;
    }

    /* Make tables horizontally scrollable on mobile */
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- DISCLAIMER ---- */
.pa-disclaimer {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: var(--pa-radius);
    padding: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 2rem;
}

/* ---- AFFILIATE DISCLOSURE ---- */
.pa-affiliate-notice {
    background: #e3f2fd;
    border-radius: var(--pa-radius);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 1rem;
}
