/* REZO PAM Broadcasting — main.css
 * Modern dark theme for live football scores, streams & news.
 */

:root {
    --bg-base: #0A0A0A;
    --bg-surface: #141414;
    --bg-elevated: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --accent: #E52534;         /* live red (matches logo) */
    --accent-2: #06B6D4;       /* cyan (matches logo) */
    --volt: #34D399;
    --border: #27272A;
    --radius: 12px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-base); color: var(--text-primary); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.rp-mono { font-family: 'JetBrains Mono', monospace; }
.rp-bold { font-weight: 700; }
.rp-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .rp-container { padding: 0 24px; } }

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ---------- Header ---------- */
.rp-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.06); }
.rp-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.rp-brand { display: inline-flex; align-items: center; gap: 10px; }
.rp-brand .custom-logo, .rp-brand__logo { width: 38px; height: 38px; object-fit: contain; }
.rp-brand__text { display: flex; flex-direction: column; line-height: 1; }
.rp-brand__name { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; }
.rp-brand__name em { font-style: normal; color: var(--accent); }
.rp-brand__tag { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-2); margin-top: 4px; font-weight: 600; }
.rp-brand--sm .rp-brand__name { font-size: 16px; }

.rp-nav { display: none; }
@media (min-width: 900px) { .rp-nav { display: block; } }
.rp-nav__menu, .rp-nav__menu ul { list-style: none; display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; }
.rp-nav__menu a { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: background .2s, color .2s; }
.rp-nav__menu a:hover, .rp-nav__menu .current-menu-item a { color: #fff; background: rgba(255,255,255,.06); }

.rp-header__actions { display: flex; align-items: center; gap: 8px; }
.rp-burger { display: none; background: transparent; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.rp-burger span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }
@media (max-width: 899px) { .rp-burger { display: block; } }

/* Mobile menu (toggled via JS) */
.rp-header[data-mobile-open="true"] .rp-nav { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-base); border-bottom: 1px solid var(--border); padding: 12px 16px; }
.rp-header[data-mobile-open="true"] .rp-nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
.rp-header[data-mobile-open="true"] .rp-nav__menu a { padding: 10px 12px; }

/* ---------- Buttons ---------- */
.rp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.rp-btn--primary { background: var(--accent); color: #fff; }
.rp-btn--primary:hover { background: #c91c2a; }
.rp-btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.1); }
.rp-btn--ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Hero ---------- */
.rp-hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); padding: 48px 28px; margin: 24px 0 32px; background: linear-gradient(135deg, #0b0b0b, #050505); }
.rp-hero__overlay { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1706675780107-7c43cc487928?crop=entropy&cs=srgb&fm=jpg&q=85') center/cover no-repeat; opacity: 0.12; pointer-events: none; }
.rp-hero__content { position: relative; }
.rp-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.25em; color: var(--accent); margin-bottom: 12px; }
.rp-hero__title { font-size: 40px; line-height: 0.95; font-weight: 900; letter-spacing: -0.03em; }
.rp-hero__title span { color: #555; }
@media (min-width: 768px) { .rp-hero__title { font-size: 56px; } }
.rp-hero__lead { color: var(--text-secondary); margin: 16px 0 24px; max-width: 540px; font-size: 16px; line-height: 1.6; }
.rp-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.rp-section { margin: 40px 0; }
.rp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rp-section-head__title { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 22px; color: #fff; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.rp-link { font-size: 13px; color: var(--accent); font-weight: 700; }
.rp-link:hover { color: #ff5a66; }
.rp-overline { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); }
.rp-overline--accent { color: var(--accent); }

/* ---------- Live dot ---------- */
.rp-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 0 rgba(229,37,52,.7); animation: rp-pulse 1.5s infinite; }
@keyframes rp-pulse { 0%{box-shadow:0 0 0 0 rgba(229,37,52,.7)}70%{box-shadow:0 0 0 10px rgba(229,37,52,0)}100%{box-shadow:0 0 0 0 rgba(229,37,52,0)} }

/* ---------- Pills ---------- */
.rp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; background: rgba(255,255,255,.06); color: var(--text-secondary); }
.rp-pill--live { background: rgba(229,37,52,.1); border: 1px solid rgba(229,37,52,.3); color: #ff7d88; }
.rp-pill--lg { font-size: 12px; padding: 6px 12px; }

/* ---------- Match Card ---------- */
.rp-grid-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .rp-grid-cards { grid-template-columns: 1fr 1fr; } }
.rp-grid-cards--news { gap: 20px; }
@media (min-width: 1024px) { .rp-grid-cards--news { grid-template-columns: repeat(3, 1fr); } }
.rp-grid-cards__full { grid-column: 1 / -1; }

.rp-match-card { display: block; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: transform .2s, border-color .2s; }
.rp-match-card:hover { transform: translateY(-2px); border-color: rgba(229,37,52,.5); }
.rp-match-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rp-match-card__body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.rp-team { display: flex; align-items: center; gap: 10px; }
.rp-team--home { justify-content: flex-end; text-align: right; }
.rp-team--away { justify-content: flex-start; }
.rp-team__name { font-weight: 600; color: #fff; }
.rp-team__logo { width: 32px; height: 32px; border-radius: 999px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); }
.rp-team__logo img { width: 100%; height: 100%; object-fit: contain; }
.rp-score { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 900; padding: 6px 12px; background: rgba(0,0,0,.45); border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.rp-score__sep { color: #444; }
.rp-score--lg { font-size: 36px; }
.rp-match-card__foot { font-size: 11px; color: var(--text-muted); margin-top: 10px; }

/* ---------- Stream player ---------- */
.rp-stream { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.rp-stream__video { position: relative; aspect-ratio: 16/9; background: #000; }
.rp-stream__video iframe, .rp-stream__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rp-stream__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.rp-stream__badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.8); border: 1px solid rgba(229,37,52,.4); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ff7d88; }
.rp-stream__meta { padding: 16px 20px; }
.rp-stream__meta h3 { font-family: 'Outfit'; font-size: 20px; font-weight: 900; }
.rp-stream__meta h3 span { color: var(--text-muted); margin: 0 6px; font-weight: 700; }

.rp-featured-stream { margin: 0 0 32px; }

/* ---------- Layout grid ---------- */
.rp-grid-2col { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .rp-grid-2col { grid-template-columns: 2fr 1fr; } }
.rp-grid-2col__side > * { margin-bottom: 24px; }

/* ---------- News card ---------- */
.rp-news-card { display: block; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.rp-news-card:hover { transform: translateY(-2px); border-color: rgba(229,37,52,.5); }
.rp-news-card__cover { aspect-ratio: 16/9; background: var(--bg-elevated); overflow: hidden; }
.rp-news-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rp-news-card:hover .rp-news-card__cover img { transform: scale(1.05); }
.rp-news-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #2a2a2a; font-family: 'Outfit'; font-weight: 900; font-size: 28px; }
.rp-news-card__body { padding: 18px; }
.rp-news-card__title { font-family: 'Outfit'; font-size: 17px; font-weight: 700; line-height: 1.3; color: #fff; margin: 8px 0 10px; }
.rp-news-card__excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rp-news-card__meta { font-size: 11px; color: var(--text-muted); }

/* ---------- Single article ---------- */
.rp-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); margin: 16px 0 24px; }
.rp-back:hover { color: #fff; }
.rp-article { max-width: 800px; }
.rp-article__title { font-family: 'Outfit'; font-size: 36px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin: 12px 0 16px; }
@media (min-width: 768px) { .rp-article__title { font-size: 48px; } }
.rp-article__meta { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; }
.rp-sep { color: var(--text-muted); }
.rp-avatar { border-radius: 999px; }
.rp-article__cover { margin: 24px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.rp-article__content { font-size: 16px; line-height: 1.75; color: #d4d4d8; }
.article-prose h2 { font-family: 'Outfit'; font-size: 28px; font-weight: 800; margin: 32px 0 16px; color: #fff; }
.article-prose h3 { font-family: 'Outfit'; font-size: 22px; font-weight: 700; margin: 24px 0 12px; color: #fff; }
.article-prose p { margin: 0 0 20px; }
.article-prose strong { color: #fff; font-weight: 700; }
.article-prose ul, .article-prose ol { margin: 0 0 20px 24px; }
.article-prose li { margin-bottom: 8px; }
.article-prose a { color: var(--accent); text-decoration: underline; }

/* ---------- Match detail ---------- */
.rp-match-detail { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; text-align: center; margin: 16px 0; }
.rp-match-detail__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 24px 0; }
.rp-team-lg { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rp-team-lg__logo { width: 72px; height: 72px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rp-team-lg__name { font-family: 'Outfit'; font-weight: 800; }
.rp-score-lg { font-family: 'JetBrains Mono', monospace; font-weight: 900; font-size: 56px; }
.rp-score-lg span { color: #333; margin: 0 8px; }
.rp-match-detail__venue { color: var(--text-secondary); font-size: 13px; }

/* ---------- Standings table ---------- */
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.rp-chip { padding: 8px 14px; border-radius: 999px; background: transparent; border: 1px solid var(--border); color: var(--text-secondary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.rp-chip:hover { color: #fff; border-color: #3f3f46; }
.rp-chip.is-active { background: #fff; color: #000; border-color: #fff; }

.rp-table { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.rp-table__head, .rp-table__row { display: grid; grid-template-columns: 50px 1fr 60px 50px 50px 50px 70px 70px; gap: 8px; align-items: center; padding: 14px 16px; }
.rp-table__head { background: rgba(255,255,255,.03); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.rp-table__row { border-bottom: 1px solid #1a1a1a; }
.rp-table__row:last-child { border-bottom: 0; }
.rp-table__row:hover { background: rgba(255,255,255,.02); }
.rp-table__row .rp-mono { text-align: center; }
.rp-team-name { color: #fff; font-weight: 600; }
.rp-table__empty { padding: 32px; text-align: center; color: var(--text-muted); }

/* ---------- Pagination ---------- */
.rp-pagination { margin: 32px 0; display: flex; justify-content: center; }
.rp-pagination .page-numbers { display: inline-flex; padding: 8px 12px; margin: 0 4px; border-radius: 8px; background: var(--bg-surface); border: 1px solid var(--border); font-size: 13px; }
.rp-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Footer ---------- */
.rp-footer { border-top: 1px solid #0f0f10; margin-top: 60px; padding: 48px 0 24px; background: #000; }
.rp-footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .rp-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.rp-footer__desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 480px; margin-top: 14px; }
.rp-footer__title { font-size: 13px; color: #fff; font-weight: 800; margin-bottom: 12px; }
.rp-footer__menu, .rp-footer__menu ul { list-style: none; padding: 0; margin: 0; }
.rp-footer__menu li a { color: var(--text-secondary); font-size: 14px; padding: 4px 0; display: inline-block; }
.rp-footer__menu li a:hover { color: #fff; }
.rp-footer__copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid #1a1a1a; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
@media (min-width: 768px) { .rp-footer__copy { flex-direction: row; justify-content: space-between; } }

/* ---------- Page head ---------- */
.rp-page-head { margin: 24px 0 32px; }
.rp-page-head h1 { font-family: 'Outfit'; font-size: 40px; font-weight: 900; letter-spacing: -0.03em; margin-top: 8px; }
@media (min-width: 768px) { .rp-page-head h1 { font-size: 52px; } }

/* ---------- 404 ---------- */
.rp-404 { padding: 80px 0; text-align: center; }
.rp-404 h1 { font-family: 'Outfit'; font-size: 96px; font-weight: 900; color: var(--accent); }
.rp-404 p { color: var(--text-secondary); margin: 0 0 24px; }

/* ---------- AdSense slots ---------- */
.rp-ad { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border-radius: 12px; padding: 16px; margin: 24px 0; min-height: 100px; overflow: hidden; }
.rp-ad--placeholder { background: rgba(17,24,39,.4); border: 1px dashed #374151; }
.rp-ad__label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.25em; color: #6b7280; }
.rp-ad__hint { font-size: 12px; color: #4b5563; font-family: 'JetBrains Mono', monospace; }
.rp-ad--sidebar { min-height: 250px; }
.rp-ad--header { min-height: 90px; }
.rp-ad--in_article { min-height: 200px; }
@media (min-width: 1024px) {
    .rp-ad--sidebar { min-height: 600px; }
    .rp-ad--header { min-height: 100px; }
    .rp-ad--in_article { min-height: 280px; }
}
