/*
 * Casino Landing SEO — Web 3.0 / Native App Aesthetic
 * Glassmorphism, smooth transitions, depth, micro-interactions.
 * All colors driven by CSS custom properties.
 */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: var(--casino-body-bg, #0f0f14);
    color: var(--casino-text, #e2e8f0);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--casino-text-heading, #f8fafc);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img { max-width: 100%; height: auto; }

/* ===== Glass Card — the universal surface ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--casino-body-bg, #0f0f14));
    pointer-events: none;
    z-index: 2;
}

/* ===== Hero CTA Button ===== */
.btn-cta-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 64px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--casino-hero-cta-text, #000);
    background: var(--casino-secondary);
    border-radius: 60px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-hero:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    color: var(--casino-hero-cta-text, #000);
    text-decoration: none;
}

/* Shine / reflection animation */
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 70%
    );
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShine {
    0%, 100% { left: -60%; opacity: 0; }
    15% { opacity: 1; }
    50% { left: 120%; opacity: 0; }
    51%, 99% { left: -60%; opacity: 0; }
}

/* ===== Standard CTA Button ===== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--casino-cta-text, #000);
    background: var(--casino-secondary);
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    background-color: var(--casino-secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    color: var(--casino-cta-text, #000);
    text-decoration: none;
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta-large {
    padding: 16px 44px;
    font-size: 1.05rem;
    border-radius: 16px;
}

/* ===== Game Grid Cards ===== */
.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.game-card .game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-card .play-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--casino-secondary);
    margin-bottom: 8px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    transition: transform 0.2s ease;
}

.game-card:hover .play-icon {
    transform: scale(1.1);
}

.game-card .game-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 10px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 5;
}

/* ===== Info Cards (Details, Rating, Bonus, Advantages) ===== */
.info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    transition: border-color 0.3s ease;
}

@media (min-width: 1024px) {
    .info-card { padding: 32px; }
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Rating Circle ===== */
.rating-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.rating-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.rating-circle .track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 6;
}

.rating-circle .progress {
    fill: none;
    stroke: var(--casino-secondary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: calc(283 - (283 * var(--rating-pct, 92)) / 100);
    transition: stroke-dashoffset 1s cubic-bezier(0.33, 1, 0.68, 1);
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.rating-circle .rating-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rating-circle .rating-number {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--casino-text-heading);
}

.rating-circle .rating-max {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--casino-text-muted);
    margin-top: 2px;
}

/* ===== Screenshot Slider ===== */
.screenshot-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.screenshot-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.screenshot-track::-webkit-scrollbar { display: none; }

.screenshot-slide {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
    outline: none;
    display: block;
}

.screenshot-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), filter 0.35s ease;
}

.screenshot-slide:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.screenshot-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #fff;
    pointer-events: none;
}

.screenshot-slide:hover .screenshot-zoom {
    opacity: 1;
}

.screenshot-nav {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 10px;
}

.screenshot-prev, .screenshot-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--casino-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.screenshot-prev:hover, .screenshot-next:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--casino-text-heading);
}

/* ===== Lightbox Overlay ===== */
.screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.screenshot-lightbox.active { opacity: 1; }

.screenshot-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.screenshot-lightbox.active img {
    transform: scale(1);
}

.screenshot-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.screenshot-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.screenshot-lightbox .lightbox-prev,
.screenshot-lightbox .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.screenshot-lightbox .lightbox-prev { left: 20px; }
.screenshot-lightbox .lightbox-next { right: 20px; }
.screenshot-lightbox .lightbox-prev:hover,
.screenshot-lightbox .lightbox-next:hover { background: rgba(255, 255, 255, 0.15); }

/* ===== SEO Content / Prose ===== */
.seo-content {
    line-height: 1.8;
    color: var(--casino-text, #cbd5e1);
}

.seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--casino-text-heading);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--casino-text-heading);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.seo-content p {
    margin-bottom: 1.25rem;
    color: var(--casino-text);
}

.seo-content a {
    color: var(--casino-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.seo-content a:hover {
    border-bottom-color: var(--casino-secondary);
}

.seo-content ul, .seo-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--casino-text);
}

.seo-content li { margin-bottom: 0.35rem; }

.seo-content blockquote {
    border-left: 3px solid var(--casino-secondary);
    padding: 16px 20px;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--casino-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 12px 12px 0;
}

/* ===== FAQ Accordion ===== */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--casino-text-heading);
    transition: color 0.2s ease;
    list-style: none;
    border-radius: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary:hover {
    color: var(--casino-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--casino-text-muted);
    flex-shrink: 0;
    margin-left: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.faq-item summary:hover::after {
    color: var(--casino-secondary);
    background: rgba(245, 158, 11, 0.1);
}

.faq-item[open] summary::after {
    content: '\2212';
    background: rgba(245, 158, 11, 0.15);
    color: var(--casino-secondary);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--casino-text);
    line-height: 1.75;
}

/* ===== TOC ===== */
.toc-card summary {
    list-style: none;
}
.toc-card summary::-webkit-details-marker { display: none; }
.toc-card summary::marker { display: none; }
.toc-card[open] .toc-chevron { transform: rotate(180deg); }

.toc-link {
    display: block;
    padding: 6px 16px;
    color: var(--casino-text-muted);
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.toc-link:hover {
    color: var(--casino-secondary);
    border-left-color: var(--casino-secondary);
    background: rgba(245, 158, 11, 0.04);
}

/* ===== Comparison Table ===== */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.comparison-table thead th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--casino-text-heading);
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table thead th:first-child { border-radius: 12px 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 12px 0 0; }

.comparison-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--casino-text);
}

.comparison-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.comparison-table tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }

/* ===== Author Box ===== */
.author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-card .author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .author-card .author-avatar {
        width: 72px;
        height: 72px;
    }
}

/* ===== Dividers / Separators ===== */
.detail-divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

/* ===== Bonus Code ===== */
.bonus-code-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.bonus-code-box:hover {
    border-color: var(--casino-secondary);
}

.bonus-code-box code {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--casino-secondary);
}

/* ===== Pros/Cons List ===== */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .pros-cons-grid { grid-template-columns: 1fr 1fr; }
}

.pros-list li, .cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--casino-text);
}

.pros-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--casino-secondary);
    flex-shrink: 0;
    margin-top: 8px;
}

.cons-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--casino-text-muted);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
}

/* ===== Section Spacing ===== */
.section-spacing {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .section-spacing { padding-top: 5rem; padding-bottom: 5rem; }
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* pulse-glow kept for backward compat but hero now uses btn-shine */
.animate-pulse-glow { /* no-op */ }

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered fade-in */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }

/* ===== Scrollbar Global ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== WP Pagination ===== */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.nav-links a, .nav-links span {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
}

.nav-links a {
    background: rgba(255, 255, 255, 0.04);
    color: var(--casino-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--casino-secondary);
    color: #000;
}

.nav-links .current {
    background: var(--casino-secondary);
    color: #000;
    font-weight: 600;
}
