:root {
    --bg-main: #050608;
    --bg-elevated: #101218;
    --bg-soft: #171a22;
    --accent: #ffcc00;
    --accent-soft: #ffe680;
    --danger: #ff4b4b;
    --text-main: #f5f5ff;
    --text-soft: #b5b7c0;
    --border-soft: #262837;
    --radius-lg: 18px;
    --radius-md: 12px;
    --transition-fast: 0.2s ease;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #191b28 0, #050608 55%);
    color: var(--text-main);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden; /* sağa kaymayı engelle */
}

/* Kar efekti */
.snow-container {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #ffffff;
    opacity: 0.75;
    font-size: 8px;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    to {
        transform: translateY(110vh);
        opacity: 0;
    }
}

/* TOPBAR */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: rgba(5, 6, 8, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: #050608;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 600;
    font-size: 18px;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-soft);
}

.topbar-center {
    flex: 1;
    max-width: 520px;
    margin: 0 20px;
}

.search-box {
    position: relative;
    background: #0d0f14;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    padding: 4px 12px;
    gap: 8px;
}

.search-box i {
    color: var(--text-soft);
    font-size: 14px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Butonlar */

.btn-ghost,
.btn-cart,
.btn-primary,
.btn-outline {
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    font-size: 13px;
}

.btn-ghost {
    padding: 6px 14px;
    background: rgba(16, 18, 24, 0.9);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
    background: #1f2230;
    transform: translateY(-1px);
}

.btn-cart {
    position: relative;
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: #111111;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.65);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

.btn-primary {
    padding: 10px 18px;
    background: linear-gradient(135deg, #ffc800, #ff9300);
    color: #18120a;
    font-weight: 600;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.8);
}

.btn-outline {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.btn-primary.full-width,
.btn-outline.full-width {
    width: 100%;
}

/* LAYOUT */

.layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 20px 28px;
}

/* SIDEBAR (masaüstü) */

.sidebar {
    background: rgba(8, 9, 14, 0.96);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.sidebar-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::before {
    content: "●";
    color: var(--accent);
    font-size: 10px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.category-item span {
    font-size: 14px;
}

.category-item:hover {
    background: #151824;
}

.category-item.active {
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.18), rgba(255, 203, 0, 0.02));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
}

.cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #11131c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
}

/* Farklı oyun renkleri */
.cat-icon.valorant { background: #ff4655; }
.cat-icon.pubg { background: #f39c12; }
.cat-icon.growtopia { background: #27ae60; }
.cat-icon.brawlstars { background: #f1c40f; }
.cat-icon.steam { background: #2980b9; }
.cat-icon.roblox { background: #8e44ad; }

.sidebar-extra {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extra-btn {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #10121c;
    color: var(--text-main);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* CONTENT */

.content {
    position: relative;
    z-index: 2;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.hero-text {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(16, 18, 28, 0.96));
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.hero-text h1 {
    margin: 0 0 10px;
    font-size: 26px;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-soft);
}

.hero-badges span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(8, 10, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* HERO KART */

.hero-card {
    background: radial-gradient(circle at top, #2a2f41 0, #0a0b11 62%);
    border-radius: var(--radius-lg);
    padding: 16px 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.hero-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-card li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.hero-card li:last-child {
    border-bottom: none;
}

.status {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.status-ok {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-low {
    background: rgba(241, 196, 15, 0.09);
    color: #f1c40f;
}

/* MOBILE KATEGORİLER (dikey) */

.mobile-categories {
    display: none;
    margin-bottom: 10px;
}

.mobile-cat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #10121c;
    color: var(--text-soft);
    font-size: 13px;
    cursor: pointer;
}

.mobile-category-item .cat-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.mobile-category-item.active {
    background: linear-gradient(135deg, #ffc800, #ff9300);
    color: #18120a;
}

/* PRODUCTS */

.section-header {
    margin-bottom: 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-soft);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.product-card {
    background: #10121b;
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 204, 0, 0.6);
}

.product-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 204, 0, 0.14);
    color: var(--accent-soft);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
}

.product-game {
    font-size: 11px;
    color: var(--text-soft);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 12px;
}

.product-price {
    font-weight: 600;
}

.product-instant {
    font-size: 11px;
    color: #2ecc71;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card button {
    margin-top: 6px;
    align-self: stretch;
}

/* FAQ */

.faq-section {
    margin-top: 28px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.faq-item {
    background: #10121a;
    border-radius: var(--radius-md);
    padding: 12px 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.faq-item h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

.faq-item p {
    margin: 0;
    color: var(--text-soft);
}

/* MODALS */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.modal-content {
    position: relative;
    z-index: 31;
    background: #0c0d13;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.modal-cart {
    width: min(420px, 92vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-auth {
    width: min(420px, 92vw);
}

.modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-soft);
    font-size: 22px;
    cursor: pointer;
}

.modal-body {
    padding: 12px 16px 14px;
    overflow-y: auto;
}

.modal-footer {
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Cart */

#cartItems {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

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

.cart-summary {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

/* Auth modal */

.modal-tabs {
    display: flex;
    padding: 8px 10px 0;
    gap: 8px;
}

.auth-tab {
    flex: 1;
    padding: 8px 0;
    border-radius: 999px;
    border: none;
    background: #171824;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 13px;
}

.auth-tab.active {
    background: linear-gradient(135deg, #ffc800, #ff9900);
    color: #18120a;
    font-weight: 600;
}

.auth-body {
    padding-top: 8px;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.auth-form.active {
    display: flex;
}

.auth-form label {
    font-size: 12px;
}

.auth-form input {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090a10;
    color: var(--text-main);
}

.auth-note {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--text-soft);
}

/* FOOTER */

.footer {
    padding: 10px 20px 18px;
    font-size: 12px;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #050609;
}

.footer-links {
    display: flex;
    gap: 10px;
}

.footer a {
    color: var(--text-soft);
    text-decoration: none;
}

/* Responsive */

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

    .sidebar {
        position: static;
        max-height: none;
        order: 2;
    }

    .content {
        order: 1;
    }

    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .topbar-center {
        display: none;
    }

    .layout {
        padding: 14px 10px 24px;
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none; /* mobilde sol kategori panelini gizle */
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .mobile-categories {
        display: block; /* mobilde kategori şeridini göster */
    }

    .desktop-products-header {
        display: none; /* Popüler ürünler başlığını gizle */
    }
}
