

@keyframes gcd-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gcd-page-wrap--loading .gcd-page-content { display: none !important; }
.gcd-skeleton { display: none; }
.gcd-page-wrap--loading .gcd-skeleton { display: block; }

.gcd-skeleton .skeleton {
    background: linear-gradient(
        90deg,
        var(--fe-color-bg-alt, #f1f5f9) 0%,
        var(--fe-color-border, #e2e8f0) 45%,
        var(--fe-color-bg-alt, #f1f5f9) 55%,
        var(--fe-color-bg-alt, #f1f5f9) 100%
    );
    background-size: 200% 100%;
    animation: gcd-skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: var(--fe-radius, 8px);
    pointer-events: none;
}

[data-theme="dark"] .gcd-skeleton .skeleton {
    background: linear-gradient(
        90deg,
        var(--fe-color-surface) 0%,
        var(--fe-color-border) 45%,
        var(--fe-color-surface) 55%,
        var(--fe-color-surface) 100%
    );
    background-size: 200% 100%;
}

.gcd-skeleton .skeleton-line { height: 1em; }

.gcd-skeleton .game-detail-page .container {
    width: 100%;
    max-width: var(--fe-main-max, 1100px);
    margin: 0 auto;
    padding: 0 var(--fe-spacing);
}

.gcd-skeleton__breadcrumb {
    width: 180px;
    height: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.gcd-skeleton__card {
    display: flex;
    gap: var(--fe-spacing-lg);
    margin-bottom: var(--fe-spacing-lg);
    padding: var(--fe-spacing-lg);
    background: var(--fe-color-bg-alt);
    border-radius: var(--fe-radius-lg);
}

.gcd-skeleton__card-img {
    width: 270px;
    height: 145px;
    flex-shrink: 0;
    display: block;
    border-radius: var(--fe-radius);
}

.gcd-skeleton__card--company .gcd-skeleton__card-img--logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

.gcd-skeleton__card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.gcd-skeleton__title { width: 70%; height: 1.75rem; display: block; }
.gcd-skeleton__line { height: 0.875rem; display: block; border-radius: 4px; }
.gcd-skeleton__line--80 { width: 80%; }
.gcd-skeleton__line--60 { width: 60%; }
.gcd-skeleton__line--100 { width: 100%; }
.gcd-skeleton__line--90 { width: 90%; }
.gcd-skeleton__line--85 { width: 85%; }
.gcd-skeleton__line--70 { width: 70%; }

.gcd-skeleton__about { margin-bottom: 1.5rem; }
.gcd-skeleton__about-title { width: 120px; height: 1.25rem; display: block; margin-bottom: 0.75rem; }
.gcd-skeleton__about .gcd-skeleton__line { margin-bottom: 0.5rem; }

.gcd-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.gcd-skeleton__grid-card { min-width: 0; }
.gcd-skeleton__grid-img {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border-radius: var(--fe-radius);
    margin-bottom: 0.5rem;
}
.gcd-skeleton__grid-line { width: 90%; height: 1rem; display: block; margin-bottom: 0.35rem; }
.gcd-skeleton__grid-meta { width: 60%; height: 0.875rem; display: block; }

.gc-news-load-skeleton {
    display: none;
    grid-template-columns: repeat(var(--gc-columns), 1fr);
    gap: var(--gc-gap);
    margin-top: var(--gc-gap);
}
.gc-news-load-skeleton.is-loading {
    display: grid;
}
.gc-news-load-skeleton .skeleton {
    background: linear-gradient(
        90deg,
        var(--fe-color-bg-alt, #f1f5f9) 0%,
        var(--fe-color-border, #e2e8f0) 45%,
        var(--fe-color-bg-alt, #f1f5f9) 55%,
        var(--fe-color-bg-alt, #f1f5f9) 100%
    );
    background-size: 200% 100%;
    animation: gcd-skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: var(--fe-radius, 8px);
}
[data-theme="dark"] .gc-news-load-skeleton .skeleton {
    background: linear-gradient(
        90deg,
        var(--fe-color-surface) 0%,
        var(--fe-color-border) 45%,
        var(--fe-color-surface) 55%,
        var(--fe-color-surface) 100%
    );
    background-size: 200% 100%;
}
.gc-news-load-skeleton__card { min-width: 0; }
.gc-news-load-skeleton__img {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border-radius: var(--fe-radius);
    margin-bottom: 0.5rem;
}
.gc-news-load-skeleton__line { width: 90%; height: 1rem; display: block; margin-bottom: 0.35rem; }
.gc-news-load-skeleton__meta { width: 60%; height: 0.875rem; display: block; }

@media (max-width: 768px) {
    .gcd-skeleton__card { flex-direction: column; }
    .gcd-skeleton__card-img { width: 100%; height: 180px; }
    .gcd-skeleton__card--company .gcd-skeleton__card-img--logo { width: 100px; height: 100px; }
    .gcd-skeleton__grid { grid-template-columns: 1fr; }
}

.game-detail-page {
    padding: var(--fe-spacing) 0;
    min-height: 50vh;
    width: 100%;
}

.game-detail-page .container {
    width: 100%;
    max-width: var(--fe-main-max, 1100px);
    margin: 0 auto;
    padding: 0 var(--fe-spacing);
}

.gcd-page {
    padding: var(--fe-spacing) 0;
    min-height: 50vh;
    width: 100%;
}

.gcd-page .gcd-container {
    width: 100%;
    max-width: var(--fe-main-max, 1100px);
    margin: 0 auto;
    padding: 0 var(--fe-spacing);
}

.page-breadcrumb {
    margin: 0 0 var(--fe-spacing);
}

.page-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.page-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.page-breadcrumb__separator {
    color: var(--fe-color-text-muted);
    user-select: none;
}

.page-breadcrumb__link {
    color: var(--fe-color-text-muted);
    text-decoration: none;
    transition: color var(--fe-transition);
}

.page-breadcrumb__link:hover {
    color: var(--fe-color-primary);
}

.page-breadcrumb__link--home {
    display: inline-flex;
    align-items: center;
}

.page-breadcrumb__current {
    color: var(--fe-color-text);
    font-weight: 600;
}

.gcd-games-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--fe-color-border);
    border-radius: var(--fe-radius);
    overflow: hidden;
    background: var(--fe-color-surface);
}

.gcd-games-list__head {
    display: none;
}

.gcd-game-row {
    display: grid;
    /* Orta sütun: platform ikonları sabit alanda ortada — satırlar hizalı */
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 11.5rem) max-content;
    grid-template-areas: "name platforms date";
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--fe-color-border);
    transition: background 0.15s;
}

.gcd-game-row:last-child {
    border-bottom: none;
}

.gcd-game-row:hover {
    background: var(--fe-color-bg-alt);
}

.gcd-game-row__name {
    grid-area: name;
    font-weight: 600;
    color: var(--fe-color-text);
    min-width: 0;
}

.gcd-game-row:hover .gcd-game-row__name {
    color: var(--fe-color-primary);
}

.gcd-game-row__platforms {
    grid-area: platforms;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 0;
}

.gcd-game-row__platforms .game-list-item__platform {
    flex-shrink: 0;
}

.gcd-game-row__empty {
    color: var(--fe-color-text-muted);
    font-size: 0.875rem;
}

.gcd-game-row__date {
    grid-area: date;
    color: var(--fe-color-text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
    min-width: 0;
    padding-left: 0.5rem;
}

@media (min-width: 640px) {
    .gcd-games-list__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 11.5rem) max-content;
        grid-template-areas: "name platforms date";
        align-items: center;
        gap: 0.75rem 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--fe-color-text-muted);
        background: var(--fe-color-bg-alt);
        border-bottom: 1px solid var(--fe-color-border);
    }

    .gcd-games-list__head-name { grid-area: name; }
    .gcd-games-list__head-platforms {
        grid-area: platforms;
        text-align: center;
        justify-self: stretch;
    }
    .gcd-games-list__head-date {
        grid-area: date;
        text-align: right;
        justify-self: end;
        padding-left: 0.5rem;
    }
}

@media (max-width: 639px) {
    .gcd-games-list {
        border: none;
        border-radius: 0;
        background: transparent;
        gap: 0.5rem;
    }

    .gcd-game-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "name platforms";
        padding: 0.75rem 1rem;
        gap: 0.75rem 1rem;
        border: 1px solid var(--fe-color-border);
        border-radius: var(--fe-radius);
        background: var(--fe-color-surface);
        border-bottom: none;
    }

    .gcd-game-row:last-child {
        border-bottom: 1px solid var(--fe-color-border);
    }

    .gcd-game-row__name {
        font-size: 0.9375rem;
        font-weight: 600;
    }

    .gcd-game-row__platforms {
        justify-content: center;
        align-items: center;
    }

    .gcd-game-row__date {
        display: none;
    }
}

.game-about {
    display: block;
    width: 100%;
    margin-bottom: var(--fe-spacing-lg);
}

.game-about__section {
    margin-bottom: var(--fe-spacing-lg);
}

.game-about__section:last-child {
    margin-bottom: 0;
}

.game-about__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fe-color-text);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--fe-color-border);
}

.game-about__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--fe-color-text);
}

.game-about__text p {
    margin: 0 0 0.75rem 0;
}

.game-about__text p:last-child {
    margin-bottom: 0;
}

.gcd-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.gcd-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--fe-color-text-muted);
}

.gcd-about {
    margin-top: var(--fe-spacing-lg);
}

.gcd-about__section {
    margin-bottom: var(--fe-spacing-lg);
}

.gcd-about__section:last-child {
    margin-bottom: 0;
}

.gcd-about__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fe-color-text);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--fe-color-border);
}

.gcd-about__text {
    font-size: 0.9375rem;
    color: var(--fe-color-text);
    line-height: 1.7;
    margin: 0;
}

.gcd-about__text p {
    margin: 0 0 1rem 0;
}

.gcd-about__text p:last-child {
    margin-bottom: 0;
}

.gcd-about__text a {
    color: var(--fe-color-primary);
    text-decoration: underline;
}

.gcd-about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gcd-about .game-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--fe-color-bg-alt);
    border: 1px solid var(--fe-color-border);
    color: var(--fe-color-text);
}

[data-theme="dark"] .gcd-about .game-badge {
    background: var(--fe-color-surface);
}

.gcd-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--fe-spacing) 0;
    color: var(--fe-color-text);
}

.gcd-list-view {
    display: flex;
    flex-direction: column;
    gap: var(--fe-spacing);
}

.gcd-list-view .gcl-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--fe-spacing);
    padding: var(--fe-spacing);
    text-align: left;
}

.gcd-list-view .gcl-card__img {
    width: 90px;
    min-width: 90px;
    height: 50px;
    aspect-ratio: auto;
}

.gcd-list-view .gcl-card__body {
    flex: 1;
    min-width: 0;
}

.gcd-list-view .gcl-card__title {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.gcd-list-view--codes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gcd-list-view--codes .gcl-card--code {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--fe-color-text);
    border-radius: var(--fe-radius);
    border: none;
    border-bottom: 1px solid var(--fe-color-border);
    background: transparent;
}

.gcd-list-view--codes .gcl-card--code:last-child {
    border-bottom: none;
}

.gcd-list-view--codes .gcl-card--code:hover {
    color: var(--fe-color-primary);
}

.gcd-list-view--codes .gcl-card--code .gcl-card__title {
    flex: 1;
    margin: 0;
    font-size: 0.9375rem;
}

.gcd-list-view--codes .gcl-card--code .gcl-card__date {
    font-size: 0.875rem;
    color: var(--fe-color-text-muted);
}

.game-news-load-wrap {
    margin: var(--fe-spacing-lg) 0 0 0;
    text-align: center;
}

.game-news-load-more {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fe-color-primary);
    background: transparent;
    border: 2px solid var(--fe-color-primary);
    border-radius: var(--fe-radius);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.game-news-load-more:hover {
    color: #fff;
    background: var(--fe-color-primary);
}

.game-news-load-more:disabled,
.game-news-load-more--all-shown {
    color: var(--fe-color-text-muted);
    border-color: var(--fe-color-border);
    cursor: default;
}

.game-news-load-more:disabled:hover,
.game-news-load-more--all-shown:hover {
    color: var(--fe-color-text-muted);
    background: transparent;
}

.gcd-empty {
    color: var(--fe-color-text-muted);
    font-size: 0.9375rem;
    margin: 0;
    padding: var(--fe-spacing-lg) 0;
}

@media (max-width: 768px) {
    .gcd-list-view .gcl-card {
        flex-direction: column;
        align-items: stretch;
    }

    .gcd-list-view .gcl-card__img {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 270 / 145;
    }
}

.game-lists {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.game-lists__item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    align-items: baseline;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--fe-color-border);
}

.game-lists__item:first-child {
    border-top: 1px solid var(--fe-color-border);
}

.game-lists__rank {
    grid-row: 1 / 3;
    align-self: start;
    padding-top: 0.1em;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fe-color-text-muted);
    line-height: 1.4;
    text-align: right;
}

.game-lists__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fe-color-primary, #3b82f6);
    text-decoration: none;
    line-height: 1.4;
}

.game-lists__link:hover {
    text-decoration: underline;
}

.game-lists__desc {
    grid-column: 2;
    margin: 0.2rem 0 0 0;
    font-size: 0.8125rem;
    color: var(--fe-color-text-muted);
    line-height: 1.4;
}
