/* ============================================================
   SpinWizard Fresh — offers.css
   Self-contained. No legacy overrides needed.
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---- Tokens ---- */
:root {
    --bg:          #f0f2f5;
    --white:       #ffffff;
    --border:      #e5e7eb;
    --border-h:    #d1d5db;
    --ink:         #111827;
    --muted:       #6b7280;
    --hint:        #9ca3af;

    --green:       #16a34a;
    --green-d:     #15803d;
    --green-light: #f0fdf4;
    --green-b:     #bbf7d0;
    --green-t:     #15803d;

    --indigo:      #6366f1;
    --indigo-d:    #4f46e5;

    --amber:       #d97706;
    --amber-light: #fef3c7;
    --amber-b:     #fcd34d;
    --amber-t:     #92400e;

    --violet:      #6d28d9;
    --blue:        #1d4ed8;
    --red:         #dc2626;

    --rail-bg:     #111827;

    --r-sm: 6px;
    --r:    10px;
    --r-lg: 14px;

    --shadow:   0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
    --shadow-h: 0 4px 20px rgba(0,0,0,.12);

    --font: 'Poppins', system-ui, sans-serif;
}

/* ---- Base ---- */
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.sw-header {
    background: #1a0a35;
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    z-index: 200;
}

.sw-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    height: 82px;
}

.sw-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sw-logo-img  { height: 72px; width: auto; }

/* Keep hamburger pinned right without pushing logo */
.sw-nav-toggle {
    position: absolute;
    right: 20px;
}

.sw-nav-toggle {
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r-sm);
    font-size: 18px;
    color: rgba(255,255,255,.8);
    line-height: 1;
    background: rgba(255,255,255,.05);
    cursor: pointer;
}
.sw-nav-toggle:hover {
    background: rgba(255,255,255,.1);
}

/* Slide nav */
.sw-slidenav {
    position: fixed;
    top: 0; right: -280px;
    width: 260px; height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    z-index: 999;
    transition: right .22s ease;
    overflow-y: auto;
    padding: 16px;
}
.sw-slidenav.open { right: 0; }
.sw-slidenav-close {
    display: block;
    text-align: right;
    font-size: 26px;
    color: var(--muted);
    margin-bottom: 12px;
    background: none;
    border: none;
    cursor: pointer;
}
.sw-slidenav-list li { border-bottom: 1px solid #f3f4f6; }
.sw-slidenav-list a {
    display: block;
    padding: 11px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.sw-slidenav-list a:hover { color: var(--green); }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */

.sw-page { background: var(--bg); min-height: 100vh; }

/* ============================================================
   HERO
   ============================================================ */

.sw-hero {
    background: linear-gradient(135deg, #2d0f4e 0%, #1a0a35 50%, #0f1a3d 100%);
    padding: clamp(14px, 2vw, 24px) 16px clamp(20px, 3vw, 36px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative glow orbs */
.sw-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse, rgba(99,102,241,.25) 0%, transparent 70%);
    pointer-events: none;
}
.sw-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; right: 10%;
    width: 280px; height: 200px;
    background: radial-gradient(ellipse, rgba(22,163,74,.18) 0%, transparent 70%);
    pointer-events: none;
}

.sw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.sw-kicker-dot {
    width: 7px; height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px #4ade80;
    animation: sw-pulse 2s infinite;
}

@keyframes sw-pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 6px #4ade80; }
    50%      { opacity: .4; box-shadow: none; }
}

.sw-hero-title {
    font-size: clamp(32px, 5.5vw, 60px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.sw-hero-sub {
    font-size: clamp(14px, 1.8vw, 18px);
    color: rgba(255,255,255,.7);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.sw-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.sw-trust li {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
}

/* ============================================================
   SHELL — 3 col: rail | main | rail
   ============================================================ */

.sw-shell {
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    gap: 16px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 16px 12px 60px;
    align-items: start;
}

/* ============================================================
   SIDE RAILS
   ============================================================ */

.sw-rail { position: sticky; top: 74px; }

.sw-rail-banner {
    display: block;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 480px;
    transition: transform .15s, box-shadow .15s;
}
.sw-rail-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.sw-rail-img-full {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-lg);
}

.sw-rail-top {
    background: var(--green);
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
}
.sw-rail-eye {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: 2px;
}
.sw-rail-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.sw-rail-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    gap: 10px;
}
.sw-rail-img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    border-radius: 6px;
}
.sw-rail-btn {
    display: block;
    width: 100%;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    text-align: center;
    letter-spacing: .04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ============================================================
   TOP PANEL — equal height feature + sms
   ============================================================ */

.sw-top-panel {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 12px;
    margin-bottom: 14px;
    align-items: stretch;
}

/* ---- Feature card ---- */
.sw-feature {
    background: #fff;
    border: 2px solid #111827;
    border-radius: var(--r-lg);
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sw-feature::before { content: none; }
.sw-feature::after  { content: none; }

.sw-feature-badge {
    display: block;
    background: #111827;
    color: #fbbf24;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 18px;
    margin: 0 -18px 16px;
    position: relative;
    z-index: 1;
}

.sw-feature-layout {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: start;
    flex: 1;
}

.sw-feature-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.sw-feature-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 8px;
    position: relative;
    z-index: 1;
}

.sw-feature-cta {
    display: block;
    width: 100%;
    margin-top: 14px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--r-sm);
    text-align: center;
    transition: background .15s;
    position: relative;
    z-index: 1;
}
.sw-feature-cta:hover { background: #15803d; }

.sw-feature-layout { position: relative; z-index: 1; }

.sw-feature-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.sw-feature-sub {
    font-size: 15px;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.sw-feature-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    position: relative;
    z-index: 1;
}
.sw-feature-facts li {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
}

.sw-feature-tcs {
    font-size: 10px;
    line-height: 1.5;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
    padding-top: 10px;
    position: relative;
    z-index: 1;
}

/* ---- SMS card ---- */
.sw-sms {
    background: #fff;
    border: 2px solid #111827;
    border-radius: var(--r-lg);
    padding: 0 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sw-sms::before {
    content: 'HIDDEN OFFER';
    display: block;
    width: calc(100% + 32px);
    margin: 0 -16px 16px;
    background: #111827;
    color: #a5b4fc;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .12em;
    text-align: center;
    padding: 10px 16px;
    flex-shrink: 0;
}

.sw-sms-icon { line-height: 1; color: #6366f1; }

.sw-sms-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.sw-sms-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
}

.sw-sms-input {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: 12px;
    font-family: var(--font);
    color: #111827;
    outline: none;
    transition: border-color .15s;
}
.sw-sms-input::placeholder { color: #9ca3af; }
.sw-sms-input:focus { border-color: #6366f1; background: #fff; }

.sw-sms-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font);
    padding: 10px;
    border-radius: var(--r-sm);
    letter-spacing: .03em;
    transition: background .15s;
}
.sw-sms-btn:hover { background: #1d4ed8; }

.sw-sms-consent {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    text-align: left;
    cursor: pointer;
}
.sw-sms-consent input { flex-shrink: 0; margin-top: 2px; accent-color: #2563eb; }
.sw-sms-consent span { font-size: 9px; color: #9ca3af; line-height: 1.4; }

/* ============================================================
   FILTER BAR
   ============================================================ */

.sw-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    margin-top: 28px;
}

.sw-filter {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: background .12s, color .12s, border-color .12s;
}
.sw-filter:hover  { border-color: var(--green); color: var(--green); }
.sw-filter.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ============================================================
   OFFER CARDS
   ============================================================ */

.sw-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sw-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow .15s, border-color .15s, transform .15s;
}
.sw-card:hover {
    box-shadow: var(--shadow-h);
    border-color: var(--border-h);
    transform: translateY(-2px);
}

/* Badges */
.sw-card-badge {
    position: absolute;
    top: 0;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 0 0 8px 8px;
    color: #fff;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.sw-card-badge:first-of-type { left: 14px; }
.sw-badge-right              { left: auto; right: 14px; }

.sw-badge-nodeposit { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.sw-badge-new       { background: linear-gradient(135deg, #16a34a, #15803d); }
.sw-badge-cash      { background: linear-gradient(135deg, #d97706, #b45309); }
.sw-badge-popular   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.sw-badge-freespins { background: linear-gradient(135deg, #16a34a, #15803d); }

/* Logo */
.sw-card-logo {
    width: 72px;
    height: 72px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.sw-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}
.sw-logo-placeholder {
    font-size: 9px;
    font-weight: 600;
    color: var(--hint);
    text-align: center;
    padding: 4px;
    line-height: 1.3;
}

/* Body */
.sw-card-body {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sw-card-casino {
    font-size: 10px;
    font-weight: 600;
    color: var(--hint);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.sw-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 4px;
}
.sw-card-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 0;
}

/* Terms */
.sw-card-terms {
    width: 100%;
    font-size: 10px;
    line-height: 1.5;
    color: var(--hint);
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
    margin-top: 10px;
    text-align: left;
    max-height: 3em; /* ~2 lines at 1.5 line-height */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}
.sw-card-terms::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* CTA */
.sw-card-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
}
.sw-card-btn {
    display: block;
    width: 100%;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    text-align: center;
    letter-spacing: .03em;
    transition: background .15s;
}
.sw-card-btn:hover { background: var(--green-d); }

.sw-card-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
}

/* Share container */
.sw-card-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 7px 10px;
}

.sw-card-share-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    letter-spacing: .03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.sw-card-share-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sw-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: filter .12s, transform .12s;
    flex-shrink: 0;
    border: none;
}
.sw-share-btn:hover { filter: brightness(.9); transform: scale(1.1); }

.sw-share-btn--wa { background: #25d366; color: #fff; }
.sw-share-btn--em { background: #3b82f6; color: #fff; }
.sw-share-btn--fb { background: #1877f2; color: #fff; }
/* ============================================================
   FOOTER
   ============================================================ */

.sw-footer {
    background: var(--ink);
    padding: 16px;
    text-align: center;
}
.sw-footer-inner {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    line-height: 1.7;
}
.sw-footer-inner a {
    color: rgba(255,255,255,.5);
}
.sw-footer-inner a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: collapse rails */
@media (max-width: 1100px) {
    .sw-shell {
        grid-template-columns: 120px 1fr 120px;
        gap: 12px;
        padding: 12px 10px 48px;
    }
}

@media (max-width: 860px) {
    .sw-shell {
        grid-template-columns: 1fr;
        padding: 12px 12px 48px;
    }
    .sw-rail {
        position: static;
        display: none; /* hide rails on tablet — re-enable if wanted */
    }
    .sw-top-panel {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .sw-feature-layout { grid-template-columns: 72px 1fr; }
    .sw-filters { gap: 5px; }
    .sw-filter  { font-size: 11px; padding: 5px 10px; }

    .sw-card-title  { font-size: 17px; }
    .sw-card-sub    { font-size: 13px; }
    .sw-card-count  { font-size: 13px; }
}

/* 3-col grid responsive breakpoints */
@media (max-width: 860px) {
    .sw-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .sw-cards { grid-template-columns: 1fr; }
}
