:root {
    --gd-bg: #121212;
    --gd-bg-dark: #000000;
    --gd-bg-light: #1a1a1a;
    --gd-bg-card: #0d111b;
    --gd-bg-nav: #101624;
    --gd-bg-input: #141826;
    --gd-border: #202b45;
    --gd-border-light: #2a3758;
    --gd-border-card: #1f2533;
    --gd-accent: #3d72ff;
    --gd-accent-hover: #4f82ff;
    --gd-text: #f6f8fb;
    --gd-text-muted: #9ea8bb;
    --gd-text-dim: #a8b2c4;
    --gd-text-link: #dce7ff;
    --gd-text-link-hover: #ffffff;
    --gd-green: #22c55e;
    --gd-green-bg: rgba(34,197,94,.16);
    --gd-green-text: #86efac;
    --gd-red: #d63638;
    --gd-radius: 18px;
    --gd-radius-sm: 10px;
    --gd-radius-xs: 8px;
    --gd-max-width: 1320px;
    --gd-sticky-header-offset: 112px;
}

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

html {
    scroll-behavior: smooth;
    /* Hash ve scrollIntoView hedefleri sabit menünün altında kalmasın. */
    scroll-padding-top: var(--gd-sticky-header-offset);
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

@media (max-width: 960px) {
    :root {
        --gd-sticky-header-offset: 88px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gd-text);
    background: var(--gd-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.gamedrop-menu-open {
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid var(--gd-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gd-accent);
    text-decoration: none;
}

a:hover {
    color: var(--gd-accent-hover);
}

.gamedrop-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--gd-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 100000;
    font-weight: 700;
    border-radius: 0 0 4px 0;
}

.gamedrop-skip-link:focus {
    left: 0;
}

.gamedrop-main {
    min-height: 60vh;
}

.gamedrop-breadcrumb {
    max-width: var(--gd-max-width);
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--gd-text-dim);
}

.gamedrop-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.gamedrop-breadcrumb li {
    display: inline;
}

.gamedrop-breadcrumb a {
    color: var(--gd-accent);
}

.gamedrop-breadcrumb a:hover {
    color: #fff;
}

.gamedrop-header {
    background: var(--gd-bg);
    border-bottom: 1px solid var(--gd-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.gamedrop-header.is-scrolled {
    background: rgba(18, 18, 18, 0.88);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38);
}

.gamedrop-header__inner {
    max-width: var(--gd-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 16px;
}

.gamedrop-header__brand {
    flex-shrink: 0;
}

.gamedrop-header__site-title {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--gd-text);
    line-height: 1.2;
}

.gamedrop-header__name {
    font-size: 20px;
    font-weight: 800;
}

.gamedrop-header__tagline {
    font-size: 11px;
    color: var(--gd-text-muted);
    font-weight: 400;
}

.custom-logo-link,
.gamedrop-header__logo-link {
    display: flex;
    align-items: center;
}

.custom-logo,
.gamedrop-header__logo {
    height: 52px;
    width: auto;
    max-width: 240px;
    display: block;
}

@media (max-width: 960px) {
    .custom-logo,
    .gamedrop-header__logo {
        height: 44px;
        max-width: 180px;
    }
}

.gamedrop-header__menu {
    display: none;
}

.gamedrop-header__nav {
    min-width: 0;
}

.gamedrop-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: nowrap;
}

.gamedrop-nav-list > li {
    position: relative;
}

.gamedrop-nav-list li a {
    color: var(--gd-text-link);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    text-decoration: none;
    white-space: nowrap;
}

.gamedrop-nav-list li a:hover {
    color: #fff;
}

/* --- Alt menü (dropdown) — masaüstü --- */
.gamedrop-nav-list .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.7;
}

.gamedrop-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--gd-bg-nav, #141826);
    border: 1px solid var(--gd-border);
    border-radius: var(--gd-radius-xs);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 1001;
}

.gamedrop-nav-list > li:hover > .sub-menu,
.gamedrop-nav-list > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gamedrop-nav-list .sub-menu li a {
    display: block;
    padding: 8px 16px;
}

.gamedrop-nav-list .sub-menu li a:hover {
    background: var(--gd-bg-light, #1a2238);
    color: #fff;
}

/* İkinci ve sonraki seviyeler için yan açılım */
.gamedrop-nav-list .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
}

/* --- Alt menü — mobil (girintili, açık) --- */
.gamedrop-header__menu .gamedrop-nav-list .sub-menu {
    list-style: none;
}

.gamedrop-header__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.gamedrop-header__toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.gamedrop-header__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gd-text);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
    transform-origin: center;
}

.gamedrop-header__toggle[aria-expanded="true"] .gamedrop-header__toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.gamedrop-header__toggle[aria-expanded="true"] .gamedrop-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.gamedrop-header__toggle[aria-expanded="true"] .gamedrop-header__toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.gamedrop-mobile-nav-backdrop {
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(5, 8, 13, 0.55);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.gamedrop-mobile-nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.gamedrop-header__menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--gd-bg);
    border-bottom: 1px solid var(--gd-border);
    padding: 12px 20px;
    max-width: 100vw;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.gamedrop-footer {
    background: var(--gd-bg-dark);
    color: #fff;
    padding: 14px 20px;
    margin-top: 24px;
    border-top: 1px solid var(--gd-border);
}

.gamedrop-footer__inner {
    max-width: var(--gd-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
}

.gamedrop-footer__copy {
    margin: 0;
    color: var(--gd-text-muted);
    font-size: 13px;
}

.gamedrop-footer__copy a {
    color: var(--gd-text-link);
    text-decoration: none;
    font-weight: 700;
}

.gamedrop-footer__copy a:hover {
    color: #fff;
}

.gamedrop-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gamedrop-footer__legal a {
    color: var(--gd-text-dim);
    font-size: 13px;
    text-decoration: none;
}

.gamedrop-footer__legal a:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .gamedrop-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.gamedrop-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.gamedrop-footer__list li a {
    color: var(--gd-text-link);
    font-size: 14px;
    text-decoration: none;
}

.gamedrop-footer__list li a:hover {
    color: #fff;
}

.gamedrop-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gamedrop-footer__links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #283450;
    border-radius: var(--gd-radius-xs);
    background: var(--gd-bg-nav);
    color: var(--gd-text-link);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.gamedrop-footer__links a:hover {
    border-color: var(--gd-accent);
    color: #fff;
}


.gamedrop-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gd-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    transition: opacity 0.2s, visibility 0.2s;
}

.gamedrop-scroll-top[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gamedrop-scroll-top:hover {
    background: var(--gd-accent-hover);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-form label {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.search-form .search-field {
    background: var(--gd-bg-nav);
    border: 1px solid var(--gd-border);
    border-radius: var(--gd-radius-xs) 0 0 var(--gd-radius-xs);
    color: var(--gd-text);
    padding: 8px 12px;
    font-size: 14px;
    width: 0;
    opacity: 0;
    transition: width 0.2s, opacity 0.2s;
}

.search-form:focus-within .search-field,
.gamedrop-header__inner .search-form .search-field {
    width: 150px;
    opacity: 1;
}

.search-form .search-submit {
    background: var(--gd-accent);
    border: none;
    border-radius: 0 var(--gd-radius-xs) var(--gd-radius-xs) 0;
    color: #fff;
    padding: 0;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.search-form .search-submit svg {
    display: block;
}

@media (max-width: 960px) {
    .gamedrop-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        min-height: 56px;
        height: auto;
        gap: 12px;
        padding: 8px 12px;
    }

    .gamedrop-header__brand {
        min-width: 0;
        grid-column: 1;
    }

    .custom-logo {
        max-width: 112px;
    }

    .gamedrop-header__menu.is-open {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .gamedrop-header__nav {
        width: 100%;
    }

    .gamedrop-header__menu .gamedrop-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .gamedrop-header__menu .gamedrop-nav-list li a {
        display: block;
        padding: 10px 12px;
        color: var(--gd-text-link);
        font-size: 15px;
        font-weight: 600;
        border-radius: var(--gd-radius-xs);
        text-decoration: none;
        white-space: normal;
        word-break: break-word;
    }

    .gamedrop-header__menu .gamedrop-nav-list li a:hover {
        background: var(--gd-bg-light);
        color: #fff;
    }

    .gamedrop-header__menu .gamedrop-nav-list .sub-menu {
        position: static;
        min-width: 0;
        margin: 2px 0 6px 12px;
        padding: 0 0 0 10px;
        border: 0;
        border-left: 2px solid var(--gd-border);
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .gamedrop-header__menu .gamedrop-nav-list .sub-menu li a {
        font-size: 14px;
        font-weight: 500;
        opacity: 0.92;
    }

    .gamedrop-header__search {
        display: block;
        width: 100%;
        order: -1;
    }

    .gamedrop-header__toggle {
        grid-column: 2;
        justify-self: end;
        align-self: center;
    }

    .gamedrop-header__search .search-form {
        width: 100%;
    }

    .gamedrop-header__search .search-field {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        opacity: 1;
    }

    .gamedrop-header__search .search-submit {
        flex: 0 0 auto;
    }

    .gamedrop-header__lang {
        padding: 14px 0 4px;
        margin-top: 8px;
        border-top: 1px solid var(--gd-border-light);
    }
}

@media (min-width: 961px) {
    .gamedrop-header__menu {
        position: static;
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
        padding: 0;
        max-height: none;
        overflow: visible;
        border: 0;
        background: transparent;
        z-index: auto;
    }

    .gamedrop-header__nav,
    .gamedrop-header__search,
    .gamedrop-header__lang {
        flex: 0 0 auto;
    }

    .gamedrop-header__toggle {
        display: none;
    }
}

@media (max-width: 680px) {
    .gamedrop-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* --- 404 --- */
.gamedrop-no-results {
    max-width: var(--gd-max-width);
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.gamedrop-no-results__code {
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 8px;
    background: linear-gradient(135deg, var(--gd-accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
}

.gamedrop-no-results__title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--gd-text);
}

.gamedrop-no-results__text {
    font-size: 15px;
    color: var(--gd-text-muted);
    margin: 0 auto 32px;
    max-width: 480px;
    line-height: 1.6;
}

.gamedrop-no-results .search-form {
    max-width: 400px;
    margin: 0 auto 40px;
    display: flex;
    border: 1px solid var(--gd-border);
    border-radius: var(--gd-radius);
    overflow: hidden;
    transition: border-color 0.2s;
    background: var(--gd-bg-nav);
}

.gamedrop-no-results .search-form:focus-within {
    border-color: var(--gd-accent);
}

.gamedrop-no-results .search-form label {
    flex: 1;
    display: flex;
    margin: 0;
}

.gamedrop-no-results .search-form .search-field {
    width: 100%;
    opacity: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gd-text);
    border-radius: 0;
    outline: none;
}

.gamedrop-no-results .search-form .search-field::placeholder {
    color: var(--gd-text-dim);
}

.gamedrop-no-results .search-form .search-submit {
    border-radius: 0;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    background: var(--gd-accent);
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 0.2s;
}

.gamedrop-no-results .search-form .search-submit:hover {
    background: var(--gd-accent-hover);
}

.gamedrop-no-results__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}

.gamedrop-no-results__nav a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid var(--gd-border);
    border-radius: var(--gd-radius-sm);
    background: var(--gd-bg-nav);
    color: var(--gd-text-link);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.gamedrop-no-results__nav a:hover {
    border-color: var(--gd-accent);
    background: rgba(61, 114, 255, 0.08);
    color: #fff;
}
