@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
:root {
    --color-primary-rgb: 249, 65, 68;
    --color-primary-hex: #f94144;
    --color-background-dark-rgb: 12, 11, 10;
    --color-background-dark-hex: rgb(12, 11, 10);
    --color-background-light-rgb: 251, 249, 247;
    --color-background-light-hex: #fbf9f7;
    --color-accent-yellow-rgb: 229, 186, 37;
    --color-accent-yellow-hex: #e5ba25;
    --color-neutral-gray-rgb: 217, 217, 217;
    --color-neutral-gray-hex: #D9D9D9;
    --color-error-red-rgb: 154, 3, 30;
    --color-error-red-hex: #9A031E;
    --gray-soft-hex: #555;
    --color-primary-dark-hex: #00adf7;
    --color-primary-dark-rgb: 0, 173, 247;
    --color-neutral-gray-hex: #D9D9D9;
    --color-text-dark: #002947;
    --color-secondary-blue-hex: #666666;
    --s: #e9687b;
    --shadow: 3px 3px 8px rgba(184, 185, 190, .6),
        -3px -3px 8px rgba(255, 255, 255, .9);

    /* Radius & spacing */
    --radius: 10px;
    --card-radius: 16px;
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    text-decoration: none;
}

body {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    background-color: var(--color-background-light-hex);
    color: var(--color-text-dark);
    line-height: 1.25;
    /* letter-spacing: -.01em; */
    font-weight: 500;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'calt';
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--color-primary-rgb), .25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-primary-rgb), .4);
}

::-webkit-scrollbar-track {
    background: transparent;
}

.loader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-neutral-gray-hex);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    cursor: progress;

    opacity: 0;
    z-index: 9999;

}

.loader img {
    width: 100px;
}

.loader .info {
    font-size: 1.3rem;
    font-weight: 600;
}

.loader .spinner {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 10px;

    overflow: hidden;

}

.loader .spinner::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: #2d9e00;
    height: 100%;
    box-shadow: inset 4px 4px 4px rgba(242, 254, 255, 0.5), inset -4px -4px 4px rgba(242, 254, 255, .5), -4px 4px #2d9e00;
    animation: loader 5s both ease;


}

@keyframes loader {
    100% {
        width: 100%;
        border-radius: 0px;
    }

    50% {
        width: 50%;
        border-radius: 5px;
    }

    0% {
        width: 5%;
        border-radius: 16px;
    }
}


/* ---------------------------
    MOBİL BUTON
---------------------------- */
.sidebar-mobile-button {
    display: none;
    
}


/* ---------------------------
    SIDEBAR
---------------------------- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;

    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.70),
            rgba(241, 245, 249, 0.65));
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(148, 163, 184, 0.35);

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 20px 14px;
    gap: 24px;

    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    transition: 0.35s ease;
    z-index: 9998;
}

/* Mobilde gizli başlayacak */
@media (max-width: 850px) {
    .sidebar {
        transform: translateX(-110%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-mobile-button {
        display: block;
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.7);
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(148, 163, 184, 0.4);
        backdrop-filter: blur(8px);
        cursor: pointer;
        transition: 0.25s ease;
        font-size: 18px;
    }

    .sidebar-mobile-button:hover {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
}

/* ---------------------------
    LOGO
---------------------------- */
.sidebar .logo img {
    width: 120px;
    user-select: none;
}

/* ---------------------------
    LİNKLER
---------------------------- */
.sidebar .links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.sidebar .links a {
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: 0.20s ease;
}

.sidebar .links a:hover {
    background: rgba(255, 255, 255, 0.65);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

/* AKTİF OLAN LİNK */
.sidebar .links .active {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

/* ---------------------------
    FOOTER
---------------------------- */
.sidebar footer {
    margin-top: auto;
    font-size: 11px;
    text-align: center;
    color: #475569;
    opacity: 0.8;
    line-height: 1.4;
}


main {
    margin-left: 18rem;
}

@media (max-width: 900px) {
    main {
        margin-left: 0;
    }






}

@keyframes menu {
    0% {
        left: -18rem;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 0;
        opacity: 1;
    }
}

section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

section .title {
    font-size: 2rem;
    font-weight: 800;
    position: relative;
}

section .title::before {
    content: "";
    width: 10%;
    height: 5px;
    border-radius: 8px;
    position: absolute;
    bottom: -5px;
    background-color: #f94144;
}

.cards {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px;

}

/* KART GENEL */
.card.game-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, #ffffff, #f7f9ff);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    border-color: rgba(59, 130, 246, 0.5);
}

/* OYUN İKONU */
.card.game-card .ico {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card.game-card .ico img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 0%, #e0f2fe, #f1f5f9);
    padding: 10px;
}

/* SINIF ROZETİ */
.card.game-card .game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.25);
    backdrop-filter: blur(8px);
}

/* BİLGİ ALANI */
.card.game-card .info {
    grid-column: 2 / 3;
}

.card.game-card .info h1 {
    font-size: 18px;
    margin: 0 0 4px;
    color: #111827;
    font-weight: 700;
}

.card.game-card .info p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #4b5563;
}

/* META (SINIF / YAPIMCI) */
.card.game-card .meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.card.game-card .meta span {
    font-size: 13px;
    color: #374151;
}

.card.game-card .meta strong {
    color: #ef4444;
}

/* UYUMLULUK BLOĞU */
.card.game-card .compat {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(148, 163, 184, 0.7);
}

.card.game-card .compat-title {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card.game-card .compat ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* UYUMLULUK ETİKETLERİ (PİLL) */
.card.game-card .compat ul li {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* YEŞİL */
.card.game-card .compat ul li.compatible {
    background: rgba(16, 185, 129, 0.06);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.45);
}

/* KIRMIZI */
.card.game-card .compat ul li.incompatible {
    background: rgba(248, 113, 113, 0.08);
    color: #b91c1c;
    border-color: rgba(248, 113, 113, 0.55);
}

/* BUTON ALANI */
.card.game-card .btns {
    grid-column: 1 / 3;
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.card.game-card .btns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: inset 2px 2px 4px rgba(242, 254, 255, 0.5), inset -2px -2px 4px rgba(242, 254, 255, .5), 0 6px 18px rgba(37, 99, 235, 0.45);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.card.game-card .btns a::after {
    content: "▶";
    font-size: 11px;
}

.card.game-card .btns a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.60), inset 1px 1px 4px rgba(242, 254, 255, 0.5), inset -1px -1px 4px rgba(242, 254, 255, .5);
    filter: brightness(1.03);
}

.card.game-card .btns a:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.40), inset 1px 1px 4px rgba(242, 254, 255, 0.5), inset -1px -1px 4px rgba(242, 254, 255, .5);
}