/* ─────────────────────────────────────────────
   games.gadplan.com — Games Page & Detail Page Styles
   ───────────────────────────────────────────── */

/* ── NAV ACTIVE STATE ── */
.nav-link-active {
    color: var(--green) !important;
    font-weight: 700 !important;
}

/* ── BREADCRUMB ── */
.breadcrumb-sep {
    color: var(--text-dim);
    margin: 0 8px;
}

.detail-breadcrumb-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border2);
    padding: 12px 0;
    margin-top: 68px;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.detail-breadcrumb a:hover {
    color: var(--green);
}

/* ── PAGE HERO (Games Catalog) ── */
.page-hero {
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
    padding: 120px 0 64px;
    text-align: center;
    border-bottom: 1px solid var(--border2);
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.page-hero-breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.page-hero-breadcrumb a:hover {
    color: var(--green);
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.page-hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.page-hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.phero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.phero-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.phero-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.phero-divider {
    width: 1px;
    height: 40px;
    background: var(--border2);
}

/* ── FILTER BAR ── */
.games-filter-section {
    padding: 32px 0;
    background: var(--bg);
    position: sticky;
    top: 68px;
    z-index: 40;
    border-bottom: 1px solid var(--border2);
}

.games-filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.games-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--border2);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.games-filter-btn .material-symbols-outlined {
    font-size: 16px;
}

.games-filter-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.games-filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

/* ── GAMES CATALOG GRID ── */
.games-catalog {
    padding: 56px 0 80px;
}

.games-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── CATALOG CARD ── */
.catalog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(58, 124, 58, 0.25);
}

/* Card Preview Area */
.catalog-card-preview {
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.preview-falling {
    background: linear-gradient(160deg, #edf0f7 0%, #e2e6f0 100%);
}

.preview-greeting {
    background: linear-gradient(160deg, #f7f9fc 0%, #edf0f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Falling Items Preview */
.catalog-falling-items {
    position: absolute;
    inset: 0;
}

.catalog-item {
    position: absolute;
    font-size: 2.2rem;
    animation: catalogFall 2.5s linear infinite;
    animation-delay: var(--d, 0s);
    left: var(--x, 50%);
    top: -40px;
}

.item-correct {
    filter: drop-shadow(0 0 8px rgba(58, 124, 58, 0.5));
}

.item-wrong {
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    opacity: 0.8;
}

@keyframes catalogFall {
    from {
        transform: translateY(-40px);
    }

    to {
        transform: translateY(220px);
    }
}

.catalog-score-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.catalog-score-val {
    color: var(--green);
    font-size: 1rem;
}

/* Greeting Preview */
.catalog-greeting-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    width: 220px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border2);
}

.cgc-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 8px;
}

.cgc-text {
    font-size: 0.75rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 12px;
}

.cgc-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cgc-chip {
    font-size: 0.6rem;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border2);
    color: var(--text-muted);
}

.cgc-chip-active {
    border-color: var(--green);
    color: var(--green);
    background: rgba(58, 124, 58, 0.08);
}

/* Stopwatch Preview */
.catalog-stopwatch-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.catalog-sw-time {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
}

.catalog-sw-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Card Info Area */
.catalog-card-info {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.catalog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-avail {
    background: rgba(58, 124, 58, 0.12);
    color: var(--green);
    border: 1px solid rgba(58, 124, 58, 0.3);
}

.catalog-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ctag {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--bg2);
    color: var(--text-muted);
    font-weight: 500;
}

.catalog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.catalog-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.catalog-price-row {
    margin-top: 4px;
}

.catalog-price {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.catalog-price strong {
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
}

.catalog-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.catalog-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* ── CATALOG CTA ── */
.games-catalog-cta {
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
    border-top: 1px solid var(--border2);
    padding: 80px 0;
    text-align: center;
}

.catalog-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(58, 124, 58, 0.1);
    border: 2px solid rgba(58, 124, 58, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-cta-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.catalog-cta-inner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── GAME DETAIL PAGE ── */

/* Detail Hero */
.detail-hero {
    padding: 64px 0 80px;
    background: var(--bg);
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.detail-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dtag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(58, 124, 58, 0.1);
    color: var(--green);
    border: 1px solid rgba(58, 124, 58, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.detail-hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}

.detail-hero-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 28px;
}

.detail-price-from {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.detail-price-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.detail-price-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.detail-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.detail-hero-actions .btn .material-symbols-outlined {
    font-size: 20px;
}

.detail-hero-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Device Preview (Detail) */
.detail-hero-preview {
    display: flex;
    justify-content: center;
}

.detail-preview-device {
    position: relative;
    width: 340px;
}

.detail-preview-screen {
    background: #1a1f2e;
    border-radius: 24px;
    height: 440px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.05),
        0 32px 80px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-preview-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-preview-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(58, 124, 58, 0.15) 0%, transparent 70%);
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* ── DETAIL FEATURES ── */
.detail-features {
    padding: 80px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border2);
    border-bottom: 1px solid var(--border2);
}

.detail-section-title {
    margin-bottom: 48px;
}

.detail-section-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.detail-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.detail-feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border2);
    transition: all var(--transition);
}

.detail-feature-card:hover {
    border-color: rgba(58, 124, 58, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.dfc-icon {
    font-size: 32px;
    color: var(--green);
    margin-bottom: 16px;
    display: block;
}

.dfc-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dfc-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── DETAIL USE CASES ── */
.detail-usecases {
    padding: 80px 0;
    background: var(--bg);
}

.detail-usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.detail-uc-card {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border2);
    text-align: center;
    transition: all var(--transition);
}

.detail-uc-card:hover {
    border-color: rgba(58, 124, 58, 0.3);
    background: var(--bg-card);
}

.duc-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.duc-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.duc-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── DETAIL PROCESS ── */
.detail-process {
    padding: 80px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border2);
    border-bottom: 1px solid var(--border2);
}

.detail-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-step {
    flex: 1;
    min-width: 200px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ds-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--green);
    opacity: 0.6;
    line-height: 1;
}

.ds-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.ds-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.ds-connector {
    flex-shrink: 0;
    width: 32px;
    height: 2px;
    background: var(--border2);
}

/* ── DETAIL SPECS ── */
.detail-specs {
    padding: 80px 0;
    background: var(--bg);
}

.detail-specs-inner {
    max-width: 720px;
}

.detail-specs-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border2);
    transition: background var(--transition);
}

.detail-spec-row:last-child {
    border-bottom: none;
}

.detail-spec-row:nth-child(even) {
    background: var(--bg2);
}

.dsr-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dsr-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

/* ── DETAIL CTA ── */
.detail-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
    border-top: 1px solid var(--border2);
    text-align: center;
}

.detail-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.detail-cta-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.detail-cta-inner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.detail-cta-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.detail-cta-actions .btn .material-symbols-outlined {
    font-size: 20px;
}

.detail-cta-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.detail-cta-price strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* ── DETAIL RELATED ── */
.detail-related {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid var(--border2);
}

.detail-related-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.detail-related-card:hover {
    border-color: rgba(58, 124, 58, 0.3);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.drc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drc-icon .material-symbols-outlined {
    font-size: 28px;
}

.drc-info {
    flex: 1;
}

.drc-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.drc-price {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── GAMETICKER ANIMATIONS FOR CATALOG ── */
@keyframes gm-slot-spin {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-8px);
    }

    75% {
        transform: translateY(8px);
    }
}

@keyframes gm-wheel-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .games-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .detail-preview-device {
        width: 300px;
    }

    .detail-preview-screen {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 48px;
    }

    .page-hero-stats {
        gap: 20px;
    }

    .games-filter-section {
        padding: 16px 0;
        top: 68px;
    }

    .games-grid-full {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding: 40px 0 56px;
    }

    .detail-steps {
        flex-direction: column;
    }

    .ds-connector {
        width: 2px;
        height: 24px;
    }

    .detail-cta-inner h2 {
        font-size: 1.6rem;
    }

    .phero-num {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .games-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .games-filter-btn {
        flex-shrink: 0;
    }

    .catalog-actions {
        flex-direction: column;
    }
}