/* ====== FIXED LAYOUT ALIGNMENT ====== */
.game-hero {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 40px !important;
    align-items: start;
    margin-bottom: 40px;
}

.content-with-sidebar {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 40px !important;
    align-items: start;
}

/* Ensure Game Preview fits the column */
.game-preview {
    width: 100%;
    aspect-ratio: 16/9;
}

/* Ensure Game Info fits the column */
.game-info {
    width: 100%;
}

/* Mobile Responsive Override */
@media (max-width: 1024px) {

    .game-hero,
    .content-with-sidebar {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* ====== MODERN GAME CARD UI (PHASE 8) ====== */
.modern-game-card.glass-panel {
    background: var(--bg-surface, #1e1e24);
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 92, 246, 0.15),
        0 0 8px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-game-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.4),
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.25),
        0 0 25px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-hero-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: radial-gradient(circle at 18% 18%, rgba(84, 97, 255, 0.22) 0%, rgba(16, 20, 42, 0.92) 55%, #0a0d1b 100%);
}

.card-hero-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.72) 0%, rgba(2, 6, 23, 0.18) 45%, rgba(2, 6, 23, 0.08) 100%);
    pointer-events: none;
    z-index: 1;
}

.game-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
    animation: cover-zoom-breath 8.5s ease-in-out infinite alternate;
}

.game-cover-img.is-portrait-cover {
    object-position: center center;
    filter: saturate(1.08) contrast(1.05);
    animation: cover-zoom-breath-portrait 9.5s ease-in-out infinite alternate;
}

.card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ph-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.ph-icon-bg {
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    top: -20px;
    right: -20px;
}

.ph-icon-main {
    font-size: 3.5rem;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.modern-game-card:hover .game-cover-img {
    animation-play-state: paused;
    transform: scale(1.12);
    filter: brightness(0.78);
}

.modern-game-card:hover .game-cover-img.is-portrait-cover {
    animation-play-state: paused;
    transform: scale(1.2);
    filter: brightness(0.78) saturate(1.12);
}

.cover-img {
    animation: cover-zoom-breath 8.5s ease-in-out infinite alternate;
}

.cover-img.is-portrait-cover {
    object-position: center center;
    animation: cover-zoom-breath-portrait 9.5s ease-in-out infinite alternate;
}

/* Gentle zoom in/out like cinematic breathing. */
@keyframes cover-zoom-breath {
    0% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1.13);
    }
}

/* Portrait assets use a slightly stronger zoom band. */
@keyframes cover-zoom-breath-portrait {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.24);
    }
}

.card-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

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

/* --- Premium Glassmorphism 3.0 --- */
:root {
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0) 100%);
}

/* --- Card Glassmorphism + Gradient Glow --- */
.provider-card,
.game-card,
.home-aside-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.35),
        0 0 15px rgba(139, 92, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.provider-card:hover,
.game-card:hover,
.home-aside-card:hover {
    border-color: rgba(139, 92, 246, 0.35) !important;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.2),
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(139, 92, 246, 0.12),
        0 0 20px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Heartbeat gradient text for provider card count */
.heartbeat-gradient {
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #f59e0b, #ec4899, #8b5cf6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s linear infinite, heartbeatPulse 1.5s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes heartbeatPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    15% {
        transform: scale(1.15);
        opacity: 1;
    }

    30% {
        transform: scale(1);
        opacity: 0.9;
    }

    45% {
        transform: scale(1.1);
        opacity: 1;
    }

    60% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* Home Visual Cards (Slots populares etc.) – Gradient glow */
.home-visual-card {
    border: 1px solid rgba(139, 92, 246, 0.12) !important;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(139, 92, 246, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-visual-card:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(139, 92, 246, 0.1),
        0 0 16px rgba(6, 182, 212, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Top shine line for cards */
.provider-card::before,
.game-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.2), transparent);
    z-index: 2;
}

/* Force Nav Visibility */
.site-header {
    overflow: visible !important;
}

.header-inner {
    overflow: visible !important;
}

.main-nav {
    display: flex !important;
    align-items: center !important;
    flex: 1;
    overflow: visible !important;
}

.mega-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Nav Active States */
.main-nav ul li a:hover,
.main-nav ul li.is-active>a {
    color: var(--accent) !important;
}

.main-nav ul li.is-active>a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent);
}

/* CTA Iridescence */
.pulse-btn,
.btn-accent {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.pulse-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
    0% {
        left: -100%;
        top: -100%;
    }

    20% {
        left: 100%;
        top: 100%;
    }

    100% {
        left: 100%;
        top: 100%;
    }
}

.btn-play-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 11px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(239, 68, 68, 0.88));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28), 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-play-glass .play-icon {
    display: none !important;
}

.btn-play-glass:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.34), 0 6px 18px rgba(0, 0, 0, 0.4);
    filter: saturate(1.08);
}

.play-icon {
    fill: #fff;
    stroke: none;
    width: 16px;
    height: 16px;
}

.card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.card-badge-br {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.badge.neon-fire {
    background: rgba(255, 50, 50, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.4);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.badge.neon-new {
    background: rgba(0, 255, 150, 0.15);
    color: #00ff96;
    border: 1px solid rgba(0, 255, 150, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.badge.neon-country {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.badge.neon-country::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: badge-shine-wiper 4s linear infinite;
}

@keyframes badge-shine-wiper {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

.card-content-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-game-title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-game-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.card-game-title a:hover {
    color: var(--primary, #ffaa00);
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.card-updated-row {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.62);
}

.card-updated-row time {
    color: #f8bd63;
    font-weight: 700;
}

.rank-label {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #ddd;
}

.card-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.stat-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ececec;
}

.stat-val.rtp-high {
    color: #00ff96;
}

.stat-val.rtp-low {
    color: #ff4d4d;
}

.games-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

/* ====== Demo Hero Play Button (Single Game) ====== */
.play-overlay-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    min-width: 218px;
    height: 68px;
    border-radius: 999px;
    padding: 8px 24px;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.96) 0%, rgba(249, 115, 22, 0.96) 40%, rgba(244, 63, 94, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(244, 63, 94, 0.35), 0 0 30px rgba(245, 158, 11, 0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    animation: demo-play-breath 2.2s ease-in-out infinite;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 12;
}

.play-overlay-circle::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.46);
    opacity: 0.6;
    animation: demo-play-ring 1.9s ease-out infinite;
    pointer-events: none;
}

.play-overlay-circle:hover {
    transform: translate(-50%, -50%) scale(1.045);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.96) 0%, rgba(249, 115, 22, 0.96) 40%, rgba(244, 63, 94, 0.92) 100%) !important;
    box-shadow: 0 16px 36px rgba(244, 63, 94, 0.35), 0 0 30px rgba(245, 158, 11, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.58) !important;
    filter: none !important;
}

.play-overlay-circle .play-icon {
    display: none !important;
}

.play-overlay-circle .play-text {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

@keyframes demo-play-breath {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.015);
    }
}

@keyframes demo-play-ring {
    0% {
        transform: scale(0.96);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.05);
        opacity: 0.18;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

@media (max-width: 680px) {
    .card-hero-wrapper {
        aspect-ratio: 16/10;
    }

    .play-overlay-circle {
        min-width: 188px;
        height: 60px;
        padding: 7px 18px;
    }

    .play-overlay-circle .play-text {
        font-size: 0.83rem;
    }

    .game-cover-img.is-portrait-cover {
        animation-duration: 14s;
    }

    .cover-img.is-portrait-cover {
        animation-duration: 13s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-cover-img,
    .cover-img,
    .play-overlay-circle,
    .play-overlay-circle::before {
        animation: none !important;
    }
}

/* ====== CATEGORY HERO (PHASE 8) ====== */
.category-archive-section {
    padding-top: 20px;
}

.category-hero-glass {
    background: linear-gradient(135deg, rgba(30, 30, 36, 0.8) 0%, rgba(20, 20, 25, 0.95) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.category-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    background: linear-gradient(to right, #ffffff, #aaaaaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.category-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.category-hero-decorator {
    position: absolute;
    right: -10%;
    top: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--primary-rgb, 255, 170, 0), 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .category-hero-glass {
        padding: 25px;
        flex-direction: column;
        text-align: center;
    }

    .category-hero-title {
        font-size: 2rem;
    }
}

/* ====== FAQ GRID (4 COLUMNS DESKTOP) ====== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

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

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

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

/* ====== FAQ CARD STYLES ====== */
.faq-card-hover {
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    height: 100%;
}

.faq-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px 0;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.faq-card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
    word-break: break-word;
}

.faq-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: color 0.3s;
}

.faq-card-hover:hover .faq-card-title {
    color: var(--primary, #06b6d4);
}

.faq-card-hover:hover .faq-card-footer {
    color: var(--primary, #06b6d4);
}

.faq-card-icon {
    transition: transform 0.3s;
}

.faq-card-hover:hover .faq-card-icon {
    transform: translateX(4px);
}

.faq-header-clean {
    margin-bottom: 30px;
    text-align: left;
}

.faq-title-clean {
    margin-bottom: 8px;
}

.faq-desc-clean {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 20px;
}