/* =========================================================
   SlotticaOnline.pl — Design System CSS
   Colors: Deep Purple #1a0533 / Gold #d4af37 / Accent #9b59b6
   ========================================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --bg: #0f0220;
    --bg2: #1a0533;
    --bg3: #241044;
    --card: #1e0a3c;
    --card2: #2a1050;
    --border: rgba(212, 175, 55, 0.18);
    --gold: #d4af37;
    --gold2: #f0d060;
    --goldAlpha: rgba(212, 175, 55, 0.12);
    --purple: #9b59b6;
    --purpleL: #c39bd3;
    --purpleAlpha: rgba(155, 89, 182, 0.15);
    --cyan: #48cfad;
    --cyanAlpha: rgba(72, 207, 173, 0.12);
    --red: #e74c3c;
    --green: #2ecc71;
    --text: #f0e8ff;
    --text2: #c9b8e8;
    --text3: #9880b8;
    --text4: #6a5090;
    --radius: 10px;
    --radius2: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --font-h: 'Raleway', 'Barlow Condensed', sans-serif;
    --font-b: 'Inter', 'Space Grotesk', sans-serif;
    --transition: 0.25s ease;
    --max-w: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-b);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition)
}

a:hover {
    color: var(--gold2)
}

strong {
    color: var(--gold2)
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-h);
    font-weight: 800;
    line-height: 1.2
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem)
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem)
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem)
}

h4 {
    font-size: 1.1rem;
    font-weight: 700
}

em {
    color: var(--gold);
    font-style: normal
}

p {
    margin-bottom: 1rem;
    color: var(--text2)
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
    min-width: 0;
    overflow-x: hidden
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: var(--bg2)
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 3px
}

/* ---- HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 2, 32, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.logo-link img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.site-nav a {
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text2);
    transition: all var(--transition);
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--goldAlpha);
    color: var(--gold);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto
}

.header-cta .btn-login {
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    transition: all var(--transition);
}

.header-cta .btn-login:hover {
    border-color: var(--gold);
    color: var(--gold)
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--gold) 0%, #b8930a 100%);
    color: #0a0015 !important;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9px;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
    background: transparent;
}

.btn-outline:hover {
    background: var(--goldAlpha);
    color: var(--gold)
}

.btn-purple {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9px;
    background: linear-gradient(135deg, #7d3c98 0%, #9b59b6 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-purple:hover {
    filter: brightness(1.12);
    transform: translateY(-1px)
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
    opacity: 0
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* --- Mobile Menu --- */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(15, 2, 32, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
}

.mobile-nav.open {
    display: flex
}

.mobile-nav a {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text2);
    transition: all var(--transition);
}

.mobile-nav a:hover {
    background: var(--goldAlpha);
    color: var(--gold)
}

.mobile-nav-cta {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: #000;
    border-radius: 8px
}

/* ---- HERO ---- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--bg2) 0%, #2a0a4a 50%, var(--bg) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-main.webp') center/cover no-repeat;
    opacity: 0.25;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--goldAlpha);
    border: 1px solid var(--border);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 1rem
}

.hero-desc {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    color: var(--text2)
}

.hero-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap
}

.hero-img img {
    border-radius: var(--radius2);
    box-shadow: 0 16px 48px rgba(155, 89, 182, 0.3);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ---- BONUS STRIP ---- */
.bonus-strip {
    background: linear-gradient(90deg, #1a0533 0%, var(--bg3) 50%, #1a0533 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.bonus-strip-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.bpill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    transition: all var(--transition);
}

.bpill:hover {
    border-color: var(--gold);
    background: var(--goldAlpha)
}

.bpill-icon {
    font-size: 1.4rem
}

.bpill-text {
    font-size: 0.78rem;
    color: var(--text3);
    font-weight: 600;
    text-transform: uppercase
}

.bpill-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
    line-height: 1
}

/* ---- SECTIONS ---- */
.section {
    padding: 4rem 0
}

.section-alt {
    background: rgba(26, 5, 51, 0.6)
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 0.75rem
}

.section-desc {
    color: var(--text3);
    max-width: 620px;
    margin: 0 auto
}

/* ---- CARDS ---- */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem
}

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem
}

.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 1.5rem;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.12);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem
}

.card-stat {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    font-family: var(--font-h);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text)
}

.card-text {
    font-size: 0.875rem;
    color: var(--text3);
    line-height: 1.6
}

.card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    background: var(--goldAlpha);
    border: 1px solid var(--border);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* ---- CHARTS ---- */
.chart-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 1.5rem;
}

.chart-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-wrap {
    height: 260px;
    position: relative
}

.chart-note {
    font-size: 0.72rem;
    color: var(--text4);
    margin-top: 0.75rem;
    text-align: right;
    font-style: italic;
}

/* ---- TABLE ---- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border)
}

table {
    width: 100%;
    border-collapse: collapse
}

caption {
    font-size: 0.8rem;
    color: var(--text4);
    padding: 0.5rem;
    text-align: left;
    background: var(--bg2);
}

th {
    background: var(--bg3);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    text-align: left;
}

td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text2);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

tr:hover td {
    background: rgba(212, 175, 55, 0.04)
}

.tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-green {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3)
}

.tag-gold {
    background: var(--goldAlpha);
    color: var(--gold);
    border: 1px solid var(--border)
}

.tag-purple {
    background: var(--purpleAlpha);
    color: var(--purpleL);
    border: 1px solid rgba(155, 89, 182, 0.3)
}

.tag-red {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3)
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold2))
}

/* ---- PROS/CONS ---- */
.pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem
}

.pc-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 1.5rem;
}

.pc-box.pros {
    border-color: rgba(46, 204, 113, 0.3)
}

.pc-box.cons {
    border-color: rgba(231, 76, 60, 0.25)
}

.pc-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text)
}

.pc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem
}

.pros .pc-list li::before {
    content: '✓ ';
    color: #2ecc71;
    font-weight: 700
}

.cons .pc-list li::before {
    content: '✗ ';
    color: #e74c3c;
    font-weight: 700
}

.pc-list li {
    font-size: 0.9rem;
    color: var(--text2)
}

/* ---- FAQ ---- */
.faq-item {
    border-bottom: 1px solid var(--border)
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    transition: color var(--transition);
}

.faq-q:hover,
.faq-q.open {
    color: var(--gold)
}

.faq-q .chevron {
    font-size: 0.75rem;
    transition: transform 0.3s;
    color: var(--gold)
}

.faq-q.open .chevron {
    transform: rotate(180deg)
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.7;
    transition: max-height 0.35s ease, padding 0.3s;
}

.faq-a.open {
    max-height: 400px;
    padding-bottom: 1rem
}

/* ---- AUTHOR MINI ---- */
.author-mini {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem 1.25rem;
}

.author-mini img {
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
    width: 52px;
    height: 52px
}

.author-mini-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gold)
}

.author-mini-role {
    font-size: 0.78rem;
    color: var(--text3)
}

.author-mini-date {
    font-size: 0.72rem;
    color: var(--text4)
}

/* ---- SEO ARTICLE ---- */
.seo-article {
    max-width: 860px
}

.seo-article h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.5rem;
    color: var(--text);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.seo-article h2:first-child {
    border-top: none;
    margin-top: 0
}

.seo-article h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.15rem;
    color: var(--purpleL)
}

.seo-article p {
    color: var(--text2);
    line-height: 1.8
}

.seo-article ul,
.seo-article ol {
    margin: 0.75rem 0 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.seo-article li {
    color: var(--text2);
    font-size: 0.93rem
}

.text-link {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(212, 175, 55, 0.4);
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text4);
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text3)
}

.breadcrumb a:hover {
    color: var(--gold)
}

.breadcrumb-sep {
    font-size: 0.6rem
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--bg2) 0%, #2a0a4a 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    margin-bottom: 0.5rem
}

.page-hero p {
    color: var(--text3);
    margin-bottom: 0
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem
}

.footer-logo {
    margin-bottom: 0.75rem
}

.footer-logo img {
    height: 36px;
    width: auto
}

.footer-desc {
    font-size: 0.82rem;
    color: var(--text4);
    line-height: 1.6
}

.footer-age {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-weight: 900;
    font-size: 0.8rem;
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
    margin-top: 0.75rem;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text3);
    padding: 0.2rem 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--gold)
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text4);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.footer-links a {
    color: var(--text4);
    font-size: 0.78rem
}

.footer-links a:hover {
    color: var(--gold)
}

/* ---- MOBILE ---- */
@media (max-width: 1024px) {
    .cards-4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .chart-panel {
        min-width: 0;
        overflow: hidden
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.9rem
    }

    h2 {
        font-size: 1.5rem
    }

    .site-nav,
    .header-cta .btn-login {
        display: none
    }

    .header-cta .btn-gold {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 8px;
        white-space: nowrap
    }

    .hamburger {
        display: flex
    }

    .header-inner {
        padding: 0.6rem 1rem
    }

    .hero-inner,
    .pc-grid {
        grid-template-columns: 1fr
    }

    .hero-img {
        order: -1
    }

    .hero {
        padding: 3rem 0 2.5rem
    }

    .hero::before {
        opacity: 0.15
    }

    .cards-2 {
        grid-template-columns: 1fr !important
    }

    .cards-3 {
        grid-template-columns: repeat(2, 1fr)
    }

    .bonus-strip-grid {
        gap: 0.5rem
    }

    .bpill {
        padding: 0.4rem 0.75rem
    }

    .section {
        padding: 2.5rem 0
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    /* Charts — hard contain within viewport */
    .chart-panel {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        padding: 0.75rem
    }

    .chart-wrap {
        height: 220px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        position: relative;
        box-sizing: border-box
    }

    .chart-wrap canvas {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important
    }

    /* Tables — horizontal scroll */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%
    }

    table {
        min-width: 540px
    }
}

@media (max-width: 480px) {

    .cards-3,
    .cards-4 {
        grid-template-columns: 1fr
    }

    .chart-wrap {
        height: 190px
    }

    .hero-btns {
        flex-direction: column
    }

    .btn-gold,
    .btn-outline,
    .btn-purple {
        width: 100%;
        justify-content: center
    }

    table {
        font-size: 0.78rem;
        min-width: 420px
    }

    td,
    th {
        padding: 0.45rem 0.5rem
    }

    .card-stat {
        font-size: 1.8rem
    }

    .bpill-val {
        font-size: 0.88rem
    }

    .footer-col {
        display: none
    }

    .footer-col:first-child,
    .footer-col:nth-child(2) {
        display: block
    }
}

/* ---- UTILITIES ---- */
.text-gold {
    color: var(--gold)
}

.text-center {
    text-align: center
}

.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
}

.mt-1 {
    margin-top: 1rem
}

.mt-2 {
    margin-top: 2rem
}

.mb-1 {
    margin-bottom: 1rem
}

.stars {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 2px
}