/* ==========================================================================
   Oyun Dünyası — landing page and game catalogue
   ========================================================================== */

.platform-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.platform-main {
    flex: 1;
    padding-top: var(--nav-height);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    padding-block: 54px 58px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20% 42% 30% -20%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(124, 92, 252, 0.16), transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    align-items: center;
    gap: clamp(32px, 4.5vw, 62px);
}

.hero-copy h1 {
    margin-top: 16px;
    max-width: 620px;
    font-size: clamp(2.75rem, 4.6vw, 4.15rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.hero-copy h1 .gradient-text {
    background: linear-gradient(105deg, #c4b5fd 8%, var(--color-accent) 52%, var(--color-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lead {
    margin-top: 20px;
    max-width: 550px;
    color: var(--color-text-secondary);
    font-size: 16.5px;
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 32px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.hero-facts li {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.hero-facts strong {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 13px;
    background:
        linear-gradient(155deg, rgba(28, 38, 59, 0.72), rgba(17, 24, 39, 0.7));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-collage::before {
    content: '';
    position: absolute;
    inset: 12% -4% -12% 8%;
    z-index: -1;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, rgba(124, 92, 252, 0.25), rgba(34, 211, 238, 0.1));
    filter: blur(38px);
    opacity: 0.55;
    pointer-events: none;
}

.hero-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-md);
    background: #0d1424;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.hero-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.hero-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7, 11, 23, 0.88) 100%);
    pointer-events: none;
}

.hero-tile:hover {
    border-color: rgba(124, 92, 252, 0.55);
    transform: translateY(-2px);
}

.hero-tile:hover img {
    transform: scale(1.045);
}

.hero-tile-label {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-text);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-tile-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent-2);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

/* ==========================================================================
   Game discovery
   ========================================================================== */

.games-section {
    padding-block: 46px 20px;
}

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

.game-card {
    --card-accent: var(--color-accent);
    --card-glow: rgba(124, 92, 252, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(28, 38, 59, 0.62), rgba(21, 29, 48, 0.94));
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    text-decoration: none;
    transition:
        transform 0.28s var(--ease),
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-glow);
    box-shadow:
        0 24px 48px -28px rgba(2, 6, 23, 0.95),
        0 0 0 1px var(--card-glow);
}

.game-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0b1220;
}

.game-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.game-card:hover .game-card-media img {
    transform: scale(1.045);
}

.game-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 23, 0.1) 55%, rgba(7, 11, 23, 0.55) 100%);
    pointer-events: none;
}

.game-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--card-glow);
    border-radius: 999px;
    background: rgba(11, 16, 32, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--card-accent);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.game-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 17px 18px 18px;
}

.game-card-body h3 {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.game-card-body p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}

.game-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.game-card-meta svg {
    width: 15px;
    height: 15px;
}

.game-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--card-accent);
    font-size: 13px;
    font-weight: 650;
}

.game-card-cta svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s var(--ease);
}

.game-card:hover .game-card-cta svg {
    transform: translateX(3px);
}

/* Per-game visual identity, used sparingly for tags and hover accents. */
.tone-violet {
    --card-accent: #b4a3ff;
    --card-glow: rgba(124, 92, 252, 0.34);
}

.tone-coral {
    --card-accent: #fdba8c;
    --card-glow: rgba(249, 115, 22, 0.3);
}

.tone-amber {
    --card-accent: #fcd34d;
    --card-glow: rgba(245, 158, 11, 0.28);
}

.tone-cyan {
    --card-accent: #7dd3fc;
    --card-glow: rgba(34, 211, 238, 0.28);
}

.tone-rose {
    --card-accent: #f9a8d4;
    --card-glow: rgba(244, 114, 182, 0.28);
}

.tone-emerald {
    --card-accent: #6ee7b7;
    --card-glow: rgba(16, 185, 129, 0.3);
}

.tone-purple {
    --card-accent: #c084fc;
    --card-glow: rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how-section {
    padding-block: 58px 24px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.step-card {
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(21, 29, 48, 0.55);
}

.step-index {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border: 1px solid rgba(124, 92, 252, 0.28);
    border-radius: 11px;
    background: var(--color-accent-soft);
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 700;
}

.step-card:nth-child(2) .step-index {
    border-color: rgba(34, 211, 238, 0.26);
    background: var(--color-accent-2-soft);
    color: #67e8f9;
}

.step-card h3 {
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.step-card p {
    color: var(--color-text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ==========================================================================
   Games catalogue
   ========================================================================== */

.catalog-head {
    padding-block: 52px 30px;
    border-bottom: 1px solid var(--color-border);
}

.catalog-head-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.catalog-head h1 {
    margin-top: 12px;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.catalog-head p {
    margin-top: 10px;
    max-width: 560px;
    color: var(--color-text-secondary);
    font-size: 15px;
}

.catalog-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
    width: min(360px, 100%);
}

.catalog-search svg {
    position: absolute;
    left: 14px;
    width: 17px;
    height: 17px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.catalog-search input {
    width: 100%;
    min-height: 44px;
    padding: 11px 54px 11px 41px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(21, 29, 48, 0.86);
    color: var(--color-text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search input::placeholder {
    color: var(--color-text-muted);
}

.catalog-search input:focus {
    outline: none;
    border-color: rgba(124, 92, 252, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.14);
}

.catalog-search button {
    position: absolute;
    right: 5px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-xs);
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease;
}

.catalog-search button:hover {
    background: var(--color-accent-strong);
}

.catalog-search button svg {
    position: static;
    width: 16px;
    height: 16px;
    color: currentColor;
}

.catalog-body {
    padding-block: 30px 72px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.catalog-toolbar strong {
    color: var(--color-text);
    font-weight: 600;
}

.catalog-toolbar a {
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.catalog-toolbar a:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 56px 24px;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-lg);
    background: rgba(21, 29, 48, 0.5);
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 650;
}

.empty-state p {
    margin-bottom: 18px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    background: rgba(21, 29, 48, 0.72);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pagination a:hover {
    border-color: rgba(124, 92, 252, 0.5);
    background: rgba(124, 92, 252, 0.14);
    color: #fff;
}

.pagination .current {
    border-color: transparent;
    background: linear-gradient(135deg, #8d72ff, var(--color-accent));
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(124, 92, 252, 0.9);
}

.pagination .disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==========================================================================
   Navbar gold price widget
   ========================================================================== */

.nav-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    margin-left: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(21, 29, 48, 0.6);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.nav-gold-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.nav-gold-value {
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.nav-gold-unit {
    font-size: 11px;
    color: var(--color-text-muted);
}

.nav-gold-change {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.nav-gold-change.is-up {
    color: #22c55e;
}

.nav-gold-change.is-down {
    color: #ef4444;
}

.nav-gold-change.is-neutral {
    color: var(--color-text-muted);
}

@media (max-width: 880px) {
    .nav-gold {
        display: none;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    margin-top: 30px;
    border-top: 1px solid var(--color-border);
    background: rgba(11, 16, 32, 0.55);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-block: 28px;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.site-footer-brand .site-nav-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.site-footer-brand .site-nav-mark svg {
    width: 18px;
    height: 18px;
}

.site-footer-brand strong {
    color: var(--color-text);
    font-weight: 600;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.site-footer-links a {
    color: var(--color-text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer-links a:hover {
    color: var(--color-text);
}

.site-footer-copy {
    color: var(--color-text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 34px;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 4.6vw, 3.5rem);
    }
}

@media (max-width: 880px) {
    .hero {
        padding-block: 42px 48px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .hero-copy {
        max-width: 660px;
    }

    .hero-visual {
        width: min(100%, 620px);
    }

    .hero-lead {
        max-width: 620px;
    }

    .how-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-head-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-search {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 680px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero {
        padding-block: 34px 38px;
    }

    .hero-copy h1 {
        font-size: clamp(2.25rem, 10.5vw, 3rem);
    }

    .hero-lead {
        margin-top: 16px;
        font-size: 15.5px;
    }

    .hero-actions {
        margin-top: 24px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .hero-facts {
        gap: 8px 18px;
        margin-top: 26px;
        padding-top: 15px;
    }

    .hero-collage {
        gap: 9px;
        padding: 9px;
        border-radius: var(--radius-lg);
    }

    .hero-tile {
        border-radius: 11px;
    }

    .hero-tile-label {
        left: 9px;
        bottom: 7px;
        font-size: 11px;
    }

    .section {
        padding-block: 46px;
    }

    .games-section {
        padding-top: 34px;
    }

    .games-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .game-card-body {
        padding: 15px 16px 16px;
    }

    .how-section {
        padding-top: 44px;
    }

    .catalog-head {
        padding-block: 38px 26px;
    }

    .catalog-body {
        padding-block: 24px 56px;
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

@media (max-width: 420px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-facts {
        flex-direction: column;
        gap: 6px;
    }
}
