/* ═══════════════════════════════════════════════════════════════
   Top Online Bookmakers — Unified Button System
   
   Ensures every button across the site looks consistent.
   Applies to: Sportsbook cards, review pages, article pages,
   hero sections, filter bars, promos.
   
   Palette:
   - Primary (Gold): Main CTA — "Claim Bonus", "Visit Site"
   - Secondary (Emerald outline): "Read Review", "Learn More"
   - Tertiary (Gray): "Reset", "Back", minor actions
   - Success (Green fill): "Approve", positive confirmations
   - Danger (Red fill): "Delete", destructive actions
   - Ghost (Transparent): On dark backgrounds
   ═══════════════════════════════════════════════════════════════ */

/* ─── PRIMARY — Hot Orange Gradient (Main CTA) ───────────────── */
.btn-primary,
.btn-play,
.hero-cta,
.site-cta-btn,
.promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #c41e2a, #a31920);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(196, 30, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-play:hover,
.hero-cta:hover,
.site-cta-btn:hover,
.promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 42, 0.35);
    background: linear-gradient(135deg, #a31920, #8b1218);
}

.btn-primary:active,
.btn-play:active,
.hero-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 30, 42, 0.2);
}

/* ─── SECONDARY — Emerald Outline (Reviews, secondary actions) ── */
.btn-secondary,
.btn-review,
.review-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #c41e2a;
    padding: 14px 28px;
    border: 2px solid #d5dce8;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover,
.btn-review:hover,
.review-link-btn:hover {
    border-color: #e02535;
    background: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.12);
}

.btn-secondary:active,
.btn-review:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ─── TERTIARY — Neutral Gray (Minor actions) ────────────────── */
.btn-tertiary,
.btn-outline,
.back-button,
.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    color: #475569;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-tertiary:hover,
.btn-outline:hover,
.back-button:hover,
.view-all-btn:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

/* ─── GHOST — Transparent (On dark backgrounds) ──────────────── */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    padding: 14px 28px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ─── SUCCESS — Green Fill (Positive confirmations) ──────────── */
.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}

/* ─── DANGER — Red Fill (Destructive actions) ────────────────── */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
   BUTTON SIZES
   ═══════════════════════════════════════════════════════════════ */

.btn-sm,
.btn-primary.btn-sm,
.btn-secondary.btn-sm,
.btn-danger.btn-sm,
.btn-success.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-lg,
.btn-primary.btn-lg,
.btn-secondary.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: 12px;
}


/* ═══════════════════════════════════════════════════════════════
   BUTTON GROUPS
   ═══════════════════════════════════════════════════════════════ */

.site-actions,
.btn-group,
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.site-actions.grid,
.btn-group.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}


/* ═══════════════════════════════════════════════════════════════
   BUTTON STATES
   ═══════════════════════════════════════════════════════════════ */

/* Disabled */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-tertiary:disabled,
.btn-danger:disabled,
[class*="btn-"][disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* Loading spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

/* Dark bg loading — make the spinner visible */
.btn-primary.btn-loading::after {
    border-color: rgba(15, 23, 42, 0.2);
    border-top-color: #0f172a;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════════
   ICON MODIFIERS
   ═══════════════════════════════════════════════════════════════ */

/* Arrow → */
.btn-with-arrow::after {
    content: '→';
    margin-left: 4px;
    transition: transform 0.2s;
}

.btn-with-arrow:hover::after {
    transform: translateX(3px);
}

/* External link ↗ */
.btn-external::after {
    content: '↗';
    margin-left: 4px;
    font-size: 0.85em;
    opacity: 0.7;
}

/* Full width */
.btn-block {
    width: 100%;
    justify-content: center;
}


/* ═══════════════════════════════════════════════════════════════
   FOCUS & ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-tertiary:focus-visible,
.btn-ghost:focus-visible,
.btn-success:focus-visible,
.btn-danger:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .btn-tertiary,
    .btn-ghost {
        border: 2px solid currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    [class*="btn-"] {
        transition: none !important;
    }
    [class*="btn-"]:hover {
        transform: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .site-actions,
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .site-actions > *,
    .btn-group > * {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        padding: 12px 22px;
        font-size: 0.92rem;
    }
}
