/* ============================================================
   HiSpin Casino Theme — Purple Brand
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0d0b1a;
    --bg-secondary: #13102a;
    --bg-card: #1a1535;
    --bg-card-hover: #221c45;
    --bg-table-header: #1e1840;
    --bg-table-row: #151230;
    --bg-table-row-alt: #110e28;
    --accent: #7C3AED;
    --accent-light: #9F67FF;
    --accent-dark: #6025CC;
    --accent-yellow: #FACC15;
    --accent-yellow-light: #FDE047;
    --accent-green: #34D399;
    --accent-red: #F87171;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B0D4;
    --text-muted: #6E6494;
    --border-color: #2A2450;
    --border-light: #352E5C;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
    --shadow-hover: 0 8px 32px rgba(124,58,237,0.15);
    --transition: 0.25s ease;
    --max-width: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-yellow); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === HEADER === */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.site-logo img { height: 40px; width: auto; }
.site-logo { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.site-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }

/* Mega Nav */
.mega-nav { display: flex; align-items: center; gap: 0; }
.mega-nav > .nav-item { position: relative; }
.mega-nav > .nav-item > a {
    display: flex; align-items: center; gap: 6px;
    padding: 22px 14px; color: var(--text-primary);
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    transition: color var(--transition);
}
.mega-nav > .nav-item > a:hover,
.mega-nav > .nav-item:hover > a { color: var(--accent-yellow); }
.mega-nav > .nav-item > a .arrow { font-size: 0.55rem; transition: transform var(--transition); }
.mega-nav > .nav-item:hover > a .arrow { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute; top: 100%; left: 0;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 10px 0; min-width: 210px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--transition); box-shadow: var(--shadow-card); z-index: 100;
}
.mega-nav > .nav-item:hover > .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
    display: block; padding: 9px 18px; color: var(--text-secondary);
    font-size: 0.82rem; font-weight: 500; transition: all var(--transition);
}
.nav-dropdown a:hover { color: var(--text-primary); background: var(--bg-card-hover); }

.nav-item--vip > a {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switcher { position: relative; cursor: pointer; }
.lang-switcher__current {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 10px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.78rem; font-weight: 600;
}
.lang-switcher__dropdown {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); overflow: hidden;
    opacity: 0; visibility: hidden; transition: all var(--transition); min-width: 110px; z-index: 100;
}
.lang-switcher:hover .lang-switcher__dropdown { opacity: 1; visibility: visible; }
.lang-switcher__dropdown a { display: block; padding: 7px 12px; color: var(--text-secondary); font-size: 0.78rem; }
.lang-switcher__dropdown a:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; border: none; transition: all var(--transition);
}
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff; box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,0.4); }
.btn-lg { padding: 16px 40px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-yellow {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-light));
    color: #1a1535; font-weight: 800; box-shadow: 0 4px 16px rgba(250,204,21,0.3);
}
.btn-yellow:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(250,204,21,0.4); }

/* Mobile Toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all var(--transition); }

/* === HERO === */
.hero { position: relative; overflow: hidden; }
.hero__desktop { display: block; width: 100%; max-height: 500px; object-fit: cover; }
.hero__mobile { display: none; }
.hero__cta { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); text-align: center; }

/* === MAIN CONTENT === */
.main-content { padding: 50px 0 80px; }
.content-section { margin-bottom: 50px; }

.content-section h1 { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.content-section h2 {
    font-size: 1.45rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--accent); display: inline-block;
}
.content-section h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 12px; color: var(--accent-light); }
.content-section p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.93rem; }
.content-section strong { color: var(--text-primary); font-weight: 700; }

.section-image { border-radius: var(--radius-lg); margin: 24px 0; box-shadow: var(--shadow-card); }

/* Recommendation Box */
.rec-box {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 28px; margin: 24px 0;
}
.rec-box h3 { color: var(--accent-yellow); font-size: 1.15rem; margin: 0 0 14px; }
.rec-box ul { list-style: none; margin: 14px 0; padding: 0; }
.rec-box ul li {
    color: var(--text-secondary); padding: 5px 0 5px 22px; position: relative; font-size: 0.9rem;
}
.rec-box .pros li::before { content: "✓"; color: var(--accent-green); position: absolute; left: 0; font-weight: 700; }
.rec-box .cons li::before { content: "✗"; color: var(--accent-red); position: absolute; left: 0; font-weight: 700; }

/* Tables */
.hispin-table {
    width: 100%; border-collapse: collapse; table-layout: auto;
    margin: 20px 0; border-radius: var(--radius-md); overflow: hidden;
}
.hispin-table th {
    background: var(--bg-table-header); color: var(--accent-yellow);
    padding: 13px 14px; text-align: left; font-size: 0.82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--accent-dark);
}
.hispin-table td {
    padding: 11px 14px; color: var(--text-secondary); font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
}
.hispin-table tr:nth-child(even) td { background: var(--bg-table-row-alt); }
.hispin-table tr:nth-child(odd) td { background: var(--bg-table-row); }
.hispin-table tr:hover td { background: var(--bg-card-hover); }

/* Bonus Cards */
.bonus-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.bonus-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 22px; transition: all var(--transition);
}
.bonus-card:hover { border-color: var(--accent-dark); box-shadow: var(--shadow-hover); }
.bonus-card__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    margin-bottom: 10px;
}
.bonus-card__title { font-size: 1rem; font-weight: 700; color: var(--accent-yellow); margin-bottom: 10px; }
.bonus-card__row { color: var(--text-secondary); font-size: 0.87rem; padding: 3px 0; }
.bonus-card__row span { color: var(--text-primary); font-weight: 600; }

/* Game Grids */
.games-section { margin: 36px 0; }
.games-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.games-section__title { font-size: 1.05rem; font-weight: 700; }
.games-section__link { font-size: 0.82rem; color: var(--accent-light); font-weight: 600; }

.games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.game-card {
    position: relative; border-radius: var(--radius-md); overflow: hidden;
    cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
    aspect-ratio: 1; background: var(--bg-card);
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card__overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 28px 8px 8px; opacity: 0; transition: opacity var(--transition);
}
.game-card:hover .game-card__overlay { opacity: 1; }
.game-card__name { color: #fff; font-size: 0.72rem; font-weight: 600; text-align: center; }
.game-card__placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    color: var(--text-muted); font-size: 0.72rem; font-weight: 600; text-align: center; padding: 8px;
}

/* Steps */
.steps-list { counter-reset: step; margin: 20px 0; }
.step-item {
    display: flex; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--border-color); counter-increment: step;
}
.step-item::before {
    content: counter(step); display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff; font-weight: 800; font-size: 0.85rem;
}
.step-item p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* FAQ */
.faq-section { margin-top: 50px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden;
}
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; cursor: pointer; color: var(--text-primary);
    font-weight: 600; font-size: 0.92rem; transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-icon { font-size: 1.2rem; color: var(--accent); flex-shrink: 0; margin-left: 14px; transition: transform var(--transition); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer__inner { padding: 0 20px 16px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 600px; }

/* Verdict */
.verdict-box {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 28px; margin: 24px 0;
}
.verdict-rating { font-size: 2.4rem; font-weight: 800; color: var(--accent-yellow); margin-bottom: 6px; }
.verdict-rating span { font-size: 1.1rem; color: var(--text-muted); font-weight: 400; }

/* RG Banner */
.rg-banner {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 18px; margin-top: 40px; text-align: center;
}
.rg-banner p { color: var(--text-muted); font-size: 0.82rem; margin: 0; }
.rg-banner a { color: var(--accent-light); font-weight: 600; }

/* === FOOTER === */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 36px 0; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-top {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
    padding-bottom: 24px; border-bottom: 1px solid var(--border-color);
}
.footer-logo img { height: 34px; }
.payment-logos, .provider-logos { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.payment-logos img, .provider-logos img { height: 26px; opacity: 0.65; transition: opacity var(--transition); }
.payment-logos img:hover, .provider-logos img:hover { opacity: 1; }
.footer-providers { padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 20px;
}
.footer-copy { color: var(--text-muted); font-size: 0.78rem; }
.footer-langs { display: flex; gap: 10px; }
.footer-langs a {
    color: var(--text-muted); font-size: 0.78rem; padding: 3px 8px;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
}
.footer-langs a:hover, .footer-langs a.active { color: var(--accent-light); border-color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .mega-nav { display: none; }
    .mobile-toggle { display: flex; }
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .mega-nav.active {
        display: flex; flex-direction: column; position: fixed;
        top: 70px; left: 0; right: 0; bottom: 0;
        background: var(--bg-secondary); padding: 20px; overflow-y: auto; z-index: 999;
    }
    .mega-nav.active > .nav-item > a { padding: 13px 0; border-bottom: 1px solid var(--border-color); }
    .mega-nav.active .nav-dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: none; border-radius: 0; box-shadow: none; padding: 0 0 0 18px; background: transparent; display: none;
    }
    .mega-nav.active .nav-item.open .nav-dropdown { display: block; }
}
@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .header-actions .btn { display: none; }
    .hero__desktop { display: none; }
    .hero__mobile { display: block; }
    .content-section h1 { font-size: 1.5rem; }
    .content-section h2 { font-size: 1.2rem; }
    .games-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .hispin-table th, .hispin-table td { padding: 9px 10px; font-size: 0.8rem; }
    .footer-top, .footer-bottom { flex-direction: column; text-align: center; }
    .bonus-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
}

.text-accent { color: var(--accent-light); }
.text-yellow { color: var(--accent-yellow); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
