/* ============================================
   SHARED.CSS — Common patterns across all pages
   Eliminates duplication in page-*.css files
   ============================================ */

/* ─── Screen-reader-only utility — keeps element in DOM/a11y tree but invisible ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Container ─── */
.rsp-container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 48px;
    box-sizing: border-box;
}

/* base.css applies display:flex to ALL <section> elements for centering.
   Sections that ARE the container (multiple direct children) must block-flow. */
section.rsp-container {
    display: block;
}

/* ─── Page wrapper ─── */
.rsp-page {
    width: 100%;
    align-self: stretch;
}

/* ─── Main section (first — clears navbar) ─── */
.rsp-main {
    padding: calc(var(--nav-height) + 40px) 0 100px;
    width: 100%;
}

/* ─── Secondary section ─── */
.rsp-section {
    padding: 0 0 64px;
    width: 100%;
}

/* ─── Hero ─── */
.rsp-hero {
    position: relative;
    padding: 96px 0 80px;
    overflow: hidden;
    width: 100%;
}

.rsp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at 0% 50%, var(--alpha-purple-8) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 100% 20%, var(--alpha-cyan-5) 0%, transparent 65%);
    pointer-events: none;
}

.rsp-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 40px; right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--alpha-cyan-15) 30%, var(--alpha-purple-15) 70%, transparent);
}

/* Hero with navbar clearance (about, stream) */
.rsp-hero--nav {
    padding: calc(var(--nav-height) + 24px) 0 40px;
}

.rsp-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

/* ─── Hero tag pill ─── */
.rsp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--alpha-purple-10);
    border: 1px solid var(--alpha-purple-25);
    border-radius: 9999px;
    font-family: var(--font-accent, 'Exo 2', sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ─── Hero title ─── */
.rsp-hero-title {
    font-family: var(--font-accent, 'Exo 2', sans-serif);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    margin: 0 0 16px;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--text-primary, #fff);
}

.rsp-hero-title span {
    background: var(--respinners-gradient, var(--gradient-respinners));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Variant: full gradient title */
.rsp-hero-title--gradient {
    background: var(--respinners-gradient, var(--gradient-respinners));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Hero description ─── */
.rsp-hero-desc {
    color: var(--text-secondary, var(--alpha-white-45));
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.6;
    max-width: 520px;
}

/* ─── Hero stats row ─── */
.rsp-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ─── Stat pill ─── */
.rsp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 36px;
    background: linear-gradient(160deg, rgba(20,15,30,0.8), rgba(10,8,15,0.95));
    border: 1px solid var(--alpha-white-5);
    border-radius: var(--border-radius-lg, 24px);
    backdrop-filter: blur(20px);
    text-align: center;
    min-width: 110px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.rsp-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--alpha-cyan-20), transparent);
}

.rsp-stat:hover {
    transform: translateY(-4px);
    border-color: var(--alpha-cyan-25);
    box-shadow: 0 12px 32px var(--alpha-cyan-8);
}

.rsp-stat strong {
    display: block;
    font-family: var(--font-accent, 'Exo 2', sans-serif);
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--respinners-gradient, var(--gradient-respinners));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    white-space: nowrap;
}

.rsp-stat span {
    font-size: 0.7rem;
    color: var(--text-muted, var(--alpha-white-25));
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

/* ─── Section label ─── */
.rsp-section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.rsp-section-label h2,
.rsp-section-label h1 {
    font-family: var(--font-accent, 'Exo 2', sans-serif);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 900;
    color: var(--text-primary, #fff);
    margin: 0;
    letter-spacing: 0.04em;
}

.rsp-section-label h2 span,
.rsp-section-label h1 span {
    background: var(--respinners-gradient, var(--gradient-respinners));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Count pill ─── */
.rsp-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--alpha-purple-10);
    border: 1px solid var(--alpha-purple-20);
    border-radius: 9999px;
    font-family: var(--font-accent, 'Exo 2', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── Text gradient utility ─── */
.rsp-text-gradient {
    background: var(--respinners-gradient, var(--gradient-respinners));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* #rspBarMid hiding is per-page (shop, giveaways, stream CSS files) */

/* ─── Toast notification (global) ─── */
.rsp-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background: rgba(18,14,32,0.95);
    border: 1px solid var(--alpha-purple-40);
    border-radius: 100px;
    color: #fff;
    font-family: var(--font-secondary, sans-serif);
    font-size: 0.88rem;
    z-index: var(--z-toast);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    white-space: nowrap;
    max-width: 90vw;
    text-overflow: ellipsis;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--alpha-black-50);
}
.rsp-toast.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-success { border-color: var(--alpha-cyan-50); }
.toast-warn    { border-color: rgba(251,191,36,0.5); }
.toast-info    { border-color: var(--alpha-purple-40); }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
    .rsp-container { padding: 0 36px; }
}

@media (max-width: 900px) {
    .rsp-container { padding: 0 24px; }
    .rsp-hero { padding: 64px 0 48px; }
    .rsp-hero--nav { padding: calc(var(--nav-height) + 16px) 0 32px; }
    .rsp-hero-inner { gap: 24px; }
    .rsp-hero-stats { width: 100%; justify-content: center; }
    .rsp-stat { padding: 16px 24px; min-width: 90px; }
    .rsp-stat strong { font-size: 1.3rem; }
    .rsp-section-label { gap: 10px; margin-bottom: 24px; }
}

@media (max-width: 700px) {
    .rsp-container { padding: 0 20px; }
}

@media (max-width: 600px) {
    .rsp-container { padding: 0 16px; }
    .rsp-hero { padding: 48px 0 32px; }
    .rsp-hero-inner { flex-direction: column; align-items: flex-start; }
    .rsp-hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .rsp-hero-desc { font-size: 1rem; }
    .rsp-stat { padding: 14px 18px; }
    .rsp-stat strong { font-size: 1.1rem; }
}

/* ─── RSP Button — global affiliate CTA button alias ─── */
.rsp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    font-family: var(--font-heading, 'Exo 2', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    border-radius: var(--border-radius, 8px);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.rsp-btn--primary,
.rsp-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.rsp-btn--primary:hover,
.rsp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
    color: #fff;
}

.rsp-btn--outline,
.rsp-btn-secondary {
    background: transparent;
    border-color: rgba(0, 245, 255, .45);
    color: var(--neon-cyan);
}

.rsp-btn--outline:hover,
.rsp-btn-secondary:hover {
    background: rgba(0, 245, 255, .08);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-2px);
}

/* ─── Internal links grid (shared component) ─── */
.internal-links {
    padding: 40px 0 48px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Label: "Doporučujeme také" */
.il-label {
    margin-bottom: 20px !important;
}

.il-label span {
    font-family: var(--font-accent, 'Exo 2', sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted, rgba(255,255,255,.35));
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.il-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.il-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.il-card::after {
    content: '→';
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: .75rem;
    color: rgba(0, 245, 255, .4);
    transition: color .2s, transform .2s;
}

.il-card:hover {
    border-color: rgba(0, 245, 255, .3);
    background: rgba(0, 245, 255, .04);
    transform: translateY(-2px);
}

.il-card:hover::after {
    color: var(--neon-cyan);
    transform: translateX(3px);
}

.il-card strong {
    display: block;
    font-size: .83rem;
    color: var(--text-primary);
    line-height: 1.35;
    padding-right: 20px;
}

.il-card span {
    font-size: .74rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .il-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .il-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .il-grid { grid-template-columns: 1fr; }
}

/* ─── Form UX helpers (password toggle, spinner, strength) ─── */
.login-field-pw { position: relative; }
.login-field-pw .pw-input-wrap { position: relative; }
.pw-eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.35); cursor: pointer; padding: 4px; line-height: 0; transition: color .2s; z-index: 2; }
.pw-eye-btn:hover { color: rgba(255,255,255,0.7); }
.login-field-pw input[type="password"],
.login-field-pw input[type="text"] { padding-right: 40px; }

.btn-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%; animation: btnSpin .6s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
.login-submit { display: inline-flex; align-items: center; justify-content: center; }

.pw-strength-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.pw-strength-fill { height: 100%; width: 0; border-radius: 2px; transition: width .3s, background .3s; }
.pw-strength-text { font-size: 0.72rem; margin-top: 3px; min-height: 14px; transition: color .3s; }

/* Live password requirements checklist (registration) */
.pw-requirements {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    line-height: 1.3;
}
.pw-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    transition: color .2s ease;
}
.pw-req-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
    transition: all .2s ease;
    position: relative;
}
.pw-req-icon::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: all .2s ease;
}
.pw-requirements li.pw-req-ok { color: #4ade80; }
.pw-requirements li.pw-req-ok .pw-req-icon {
    border-color: #4ade80;
    background: rgba(74,222,128,0.15);
}
.pw-requirements li.pw-req-ok .pw-req-icon::before {
    width: 7px;
    height: 4px;
    border-radius: 0;
    background: transparent;
    border-left: 1.5px solid #4ade80;
    border-bottom: 1.5px solid #4ade80;
    transform: rotate(-45deg) translate(1px, -1px);
}
.pw-requirements li.pw-req-bad { color: rgba(248,113,113,0.85); }
.pw-requirements li.pw-req-bad .pw-req-icon {
    border-color: rgba(248,113,113,0.4);
    background: rgba(248,113,113,0.1);
}
.pw-requirements li.pw-req-bad .pw-req-icon::before {
    background: rgba(248,113,113,0.6);
}

.pw-match-icon { font-weight: 700; font-size: 0.85rem; transition: color .2s; }
.field-counter { float: right; font-weight: 400; font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.field-hint { font-size: 0.75rem; margin-top: 4px; line-height: 1.3; }

/* ─── Ripple effect (driven by initRippleEffect in script.js) ─── */
.btn, .claim-bonus-btn, .spin-button { position: relative; overflow: hidden; }
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnimation {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================
   EXCLUSIVE PARTNER — neon magenta/purple accent matching the site theme,
   distinct from the cyan-themed `bp-limited`. Applied to bonus + giveaway
   cards and review cross-link tiles site-wide.
   ============================================ */

/* ─── Bonus card: exclusive partner ─── */
.bonus-card-h.bp-exclusive {
    border: 1px solid transparent;
    background-clip: padding-box;
    overflow: visible;
}

.bonus-card-h.bp-exclusive::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-xl, 16px) + 1px);
    background: linear-gradient(110deg,
        var(--neon-purple) 0%,
        var(--neon-magenta) 30%,
        var(--neon-pink) 50%,
        var(--neon-magenta) 70%,
        var(--neon-purple) 100%);
    background-size: 250% 100%;
    animation: rspExclusiveBorderShimmer 4s linear infinite;
    z-index: -1;
}

.bonus-card-h.bp-exclusive::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl, 16px);
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(255, 0, 255, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 70% at 0% 100%, rgba(168, 85, 247, 0.08), transparent 60%),
        linear-gradient(160deg, rgba(28, 14, 38, 0.92), rgba(12, 6, 22, 0.97));
    z-index: -1;
}

/* Hide the absolute casino-name pill on cards with a corner badge —
   would collide with EXKLUZIVNÍ PARTNER / POUZE TENTO TÝDEN pill in the
   same top-right slot. Casino is already obvious from the centered logo. */
.bonus-card-h.bp-exclusive .bonus-casino-name,
.bonus-card-h.bp-limited .bonus-casino-name { display: none; }

@keyframes rspExclusiveBorderShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 250% 50%; }
}

/* magenta accent on internal elements */
.bonus-card-h.bp-exclusive .cta-btn-h {
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-purple));
}

.bonus-card-h.bp-exclusive .cta-btn-h:hover {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-magenta));
}

.bonus-card-h.bp-exclusive .bonus-tag {
    background: rgba(255, 0, 255, 0.08);
    border-color: rgba(255, 0, 255, 0.25);
    color: rgba(255, 102, 224, 0.9);
}

/* ─── Exclusive badge — magenta pill (no glow / no pulse) ─── */
.bp-exclusive-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 0, 255, 0.08);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-radius: 9999px;
    font-family: var(--font-accent, 'Exo 2', sans-serif);
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--neon-pink);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 3;
}

.bp-exclusive-badge svg { color: var(--neon-pink); }

/* ─── Review cross-link tile: exclusive variant ─── */
.review-others-grid a.ro-exclusive {
    position: relative;
    border-color: rgba(255, 0, 255, 0.4) !important;
}

.review-others-grid a.ro-exclusive::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.05), transparent 60%);
    pointer-events: none;
}

.review-others-grid a.ro-exclusive .ro-name { color: var(--neon-pink); }

.ro-exclusive-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(255, 0, 255, 0.10);
    border: 1px solid rgba(255, 0, 255, 0.4);
    border-radius: 9999px;
    font-family: var(--font-accent, 'Exo 2', sans-serif);
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--neon-pink);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .bonus-card-h.bp-exclusive::before { animation: none; }
}
