/* CasinoMag Frontend v1.0 — Casino Pages CSS */

/* ═══ VARIABLES ═══ */
:root {
    --cmfe-primary: #6366f1;
    --cmfe-success: #10b981;
    --cmfe-warning: #f59e0b;
    --cmfe-danger: #ef4444;
    --cmfe-dark: #1e1b4b;
    --cmfe-card-bg: #ffffff;
    --cmfe-border: #e5e7eb;
    --cmfe-text: #1f2937;
    --cmfe-muted: #6b7280;
    --cmfe-radius: 12px;
}

/* ═══ SINGLE CASINO PAGE ═══ */
.cmfe-casino-page { max-width: 1000px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--cmfe-text); }

/* Hero */
.cmfe-hero { display: flex; gap: 30px; background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); border-radius: var(--cmfe-radius); padding: 30px; color: #fff; margin-bottom: 25px; align-items: center; flex-wrap: wrap; }
.cmfe-hero-left { display: flex; gap: 20px; flex: 1; align-items: center; min-width: 300px; }
.cmfe-logo { width: 90px; height: 90px; border-radius: 16px; object-fit: cover; background: #fff; padding: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); flex-shrink: 0; }
.cmfe-hero-info { flex: 1; }
.cmfe-name { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.cmfe-hero-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.cmfe-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 16px; }
.cmfe-badge.excellent { background: #10b981; }
.cmfe-badge.good { background: #3b82f6; }
.cmfe-badge.average { background: #f59e0b; color: #000; }
.cmfe-badge.poor { background: #ef4444; }
.cmfe-badge-label { font-size: 14px; opacity: 0.8; }
.cmfe-est { font-size: 13px; opacity: 0.6; }
.cmfe-rating-bar-wrap { margin: 8px 0; }
.cmfe-rating-bar { height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; }
.cmfe-rating-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.cmfe-rating-fill.excellent { background: #10b981; }
.cmfe-rating-fill.good { background: #3b82f6; }
.cmfe-rating-fill.average { background: #f59e0b; }
.cmfe-rating-fill.poor { background: #ef4444; }
.cmfe-bonus-highlight { font-size: 15px; margin: 8px 0 0; color: #a5b4fc; }
.cmfe-hero-right { display: flex; flex-direction: column; gap: 12px; align-items: center; min-width: 180px; }
.cmfe-btn-visit { display: inline-block; background: linear-gradient(135deg, #10b981, #059669); color: #fff !important; padding: 14px 30px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none !important; text-align: center; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.cmfe-btn-visit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,0.5); color: #fff !important; }
.cmfe-hero-quick { font-size: 12px; color: rgba(255,255,255,0.7); text-align: center; }
.cmfe-hero-quick div { margin: 3px 0; }

/* Pros/Cons */
.cmfe-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.cmfe-pros, .cmfe-cons { padding: 20px; border-radius: var(--cmfe-radius); }
.cmfe-pros { background: #f0fdf4; border: 2px solid #86efac; }
.cmfe-cons { background: #fef2f2; border: 2px solid #fca5a5; }
.cmfe-pros h4, .cmfe-cons h4 { margin: 0 0 12px; font-size: 16px; }
.cmfe-pros ul, .cmfe-cons ul { list-style: none; padding: 0; margin: 0; }
.cmfe-pros li, .cmfe-cons li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.cmfe-pros li:last-child, .cmfe-cons li:last-child { border: none; }

/* Section */
.cmfe-section { background: var(--cmfe-card-bg); border: 1px solid var(--cmfe-border); border-radius: var(--cmfe-radius); padding: 25px; margin-bottom: 25px; }
.cmfe-section h3 { margin: 0 0 15px; font-size: 18px; color: var(--cmfe-dark); border-bottom: 2px solid var(--cmfe-primary); padding-bottom: 10px; }

/* Info Table */
.cmfe-info-table { width: 100%; border-collapse: collapse; }
.cmfe-info-table tr { border-bottom: 1px solid #f3f4f6; }
.cmfe-info-table tr:hover { background: #f9fafb; }
.cmfe-info-table td { padding: 10px 12px; font-size: 14px; vertical-align: middle; }
.cmfe-info-icon { width: 30px; text-align: center; font-size: 18px; }
.cmfe-info-label { width: 140px; color: var(--cmfe-muted); font-weight: 500; }
.cmfe-info-value { font-weight: 500; }
.cmfe-rating-badge { display: inline-block; padding: 3px 12px; border-radius: 15px; color: #fff; font-weight: 700; font-size: 14px; }
.cmfe-rating-badge.excellent { background: #10b981; }
.cmfe-rating-badge.good { background: #3b82f6; }
.cmfe-rating-badge.average { background: #f59e0b; color: #000; }
.cmfe-rating-badge.poor { background: #ef4444; }

/* CTA */
.cmfe-cta { text-align: center; padding: 30px; background: linear-gradient(135deg, #1e1b4b, #312e81); border-radius: var(--cmfe-radius); margin-top: 25px; }
.cmfe-disclaimer { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 12px; }

/* Related */
.cmfe-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.cmfe-related-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px; background: #f9fafb; border: 1px solid var(--cmfe-border); border-radius: 10px; text-decoration: none !important; color: var(--cmfe-text) !important; transition: transform 0.2s, box-shadow 0.2s; }
.cmfe-related-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.cmfe-related-logo { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.cmfe-related-name { font-weight: 600; font-size: 13px; text-align: center; }
.cmfe-related-rating { font-size: 12px; color: var(--cmfe-muted); }

/* ═══ CARD GRID ═══ */
.cmfe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 25px 0; }
.cmfe-card { background: var(--cmfe-card-bg); border: 1px solid var(--cmfe-border); border-radius: var(--cmfe-radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.cmfe-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.cmfe-card-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; background: linear-gradient(135deg, #1e1b4b, #312e81); }
.cmfe-card-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #fff; padding: 3px; }
.cmfe-card-badge { color: #fff; font-size: 22px; font-weight: 800; }
.cmfe-card-badge small { font-size: 12px; font-weight: 400; opacity: 0.7; }
.cmfe-card-body { padding: 15px 18px; }
.cmfe-card-name { margin: 0 0 8px; font-size: 17px; }
.cmfe-card-name a { color: var(--cmfe-text); text-decoration: none; }
.cmfe-card-name a:hover { color: var(--cmfe-primary); }
.cmfe-card-rating-bar { height: 6px; background: #e5e7eb; border-radius: 3px; margin-bottom: 12px; overflow: hidden; }
.cmfe-card-fill { height: 100%; border-radius: 3px; }
.cmfe-card-fill.excellent { background: #10b981; }
.cmfe-card-fill.good { background: #3b82f6; }
.cmfe-card-fill.average { background: #f59e0b; }
.cmfe-card-fill.poor { background: #ef4444; }
.cmfe-card-info { font-size: 12px; color: var(--cmfe-muted); display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cmfe-card-info span { color: var(--cmfe-text); font-weight: 500; }
.cmfe-card-footer { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--cmfe-border); }
.cmfe-card-review { flex: 1; text-align: center; padding: 8px; background: #f3f4f6; border-radius: 8px; color: var(--cmfe-text) !important; text-decoration: none !important; font-size: 13px; font-weight: 600; transition: 0.2s; }
.cmfe-card-review:hover { background: #e5e7eb; }
.cmfe-card-visit { flex: 1; text-align: center; padding: 8px; background: var(--cmfe-success); border-radius: 8px; color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 600; transition: 0.2s; }
.cmfe-card-visit:hover { background: #059669; }

/* ═══ COMPARISON ═══ */
.cmfe-compare { background: var(--cmfe-card-bg); border: 1px solid var(--cmfe-border); border-radius: var(--cmfe-radius); overflow: hidden; margin: 25px 0; }
.cmfe-compare-header { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 30px; background: linear-gradient(135deg, #1e1b4b, #312e81); color: #fff; }
.cmfe-compare-team { text-align: center; }
.cmfe-compare-logo { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; background: #fff; padding: 3px; margin-bottom: 8px; }
.cmfe-compare-team h3 { margin: 0 0 8px; font-size: 18px; }
.cmfe-compare-vs { font-size: 28px; font-weight: 800; color: #f59e0b; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.cmfe-btn-sm { display: inline-block; padding: 6px 14px; background: rgba(255,255,255,0.15); color: #fff !important; border-radius: 6px; font-size: 12px; text-decoration: none !important; transition: 0.2s; }
.cmfe-btn-sm:hover { background: rgba(255,255,255,0.25); }
.cmfe-compare-table { width: 100%; border-collapse: collapse; }
.cmfe-compare-table th { padding: 12px; background: #f9fafb; font-size: 14px; font-weight: 600; }
.cmfe-compare-table td { padding: 12px; text-align: center; font-size: 14px; border-bottom: 1px solid #f3f4f6; }
.cmfe-compare-label { font-weight: 600; background: #f9fafb; font-size: 13px; }
.cmfe-winner { background: #f0fdf4 !important; font-weight: 700; color: #059669; }
.cmfe-compare-winner { text-align: center; padding: 18px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 18px; }

/* ═══ TOP LIST ═══ */
.cmfe-top-list { margin: 20px 0; }
.cmfe-top-row { display: flex; align-items: center; gap: 15px; padding: 14px 18px; background: var(--cmfe-card-bg); border: 1px solid var(--cmfe-border); border-radius: 10px; margin-bottom: 10px; transition: transform 0.2s; }
.cmfe-top-row:hover { transform: translateX(4px); box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
.cmfe-top-rank { font-size: 20px; font-weight: 800; color: var(--cmfe-primary); min-width: 40px; text-align: center; }
.cmfe-top-logo { width: 45px; height: 45px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cmfe-top-info { flex: 1; }
.cmfe-top-name { font-weight: 700; font-size: 15px; color: var(--cmfe-text); text-decoration: none; }
.cmfe-top-name:hover { color: var(--cmfe-primary); }
.cmfe-top-meta { font-size: 12px; color: var(--cmfe-muted); margin-top: 3px; }
.cmfe-top-rating { font-size: 18px; font-weight: 800; padding: 6px 14px; border-radius: 8px; color: #fff; min-width: 65px; text-align: center; }
.cmfe-top-rating.excellent { background: #10b981; }
.cmfe-top-rating.good { background: #3b82f6; }
.cmfe-top-rating.average { background: #f59e0b; color: #000; }
.cmfe-top-rating.poor { background: #ef4444; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .cmfe-hero { flex-direction: column; padding: 20px; }
    .cmfe-hero-left { flex-direction: column; text-align: center; min-width: unset; }
    .cmfe-name { font-size: 22px; }
    .cmfe-hero-meta { justify-content: center; }
    .cmfe-proscons { grid-template-columns: 1fr; }
    .cmfe-related-grid { grid-template-columns: repeat(2, 1fr); }
    .cmfe-compare-header { flex-direction: column; gap: 15px; }
    .cmfe-grid { grid-template-columns: 1fr; }
    .cmfe-top-row { flex-wrap: wrap; }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .cmfe-casino-page { color: #e5e7eb; }
    .cmfe-section, .cmfe-card, .cmfe-compare, .cmfe-top-row { background: #1f2937; border-color: #374151; }
    .cmfe-card-name a, .cmfe-top-name { color: #e5e7eb; }
    .cmfe-info-table tr:hover { background: #374151; }
    .cmfe-card-review { background: #374151; color: #e5e7eb !important; }
    .cmfe-compare-table th, .cmfe-compare-label { background: #374151; }
    .cmfe-related-card { background: #374151; border-color: #4b5563; color: #e5e7eb !important; }
}
