/* Games page specific styles */

.category-section {
    margin-bottom: var(--space-xl);
}

@media (min-width: 600px) {
    .category-section {
        margin-bottom: var(--space-2xl);
    }
}

.category-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 600px) {
    .category-title {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }
}

.games-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 600px) {
    .games-stack {
        gap: var(--space-xl);
    }
}

/* Game card - horizontal layout */
.game-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    text-align: center;
}

@media (min-width: 600px) {
    .game-card {
        text-align: left;
    }
}

@media (min-width: 600px) {
    .game-card {
        flex-direction: row;
        min-height: 320px;
        align-items: stretch;
    }
}

/* Image container - 30% width, centered content */
.game-card-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: var(--space-sm);
    background: rgba(0,0,0,0.2);
}

@media (min-width: 600px) {
    .game-card-image-link {
        width: 30%;
        min-height: 320px;
        padding: var(--space-lg);
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
    }
}

/* Image - fully visible, no cropping */
.game-card-image {
    display: block;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 600px) {
    .game-card-image {
        width: auto;
        max-width: 100%;
        max-height: none;
        height: 100%;
        display: block;
    }
}

.game-card-image-link:hover .game-card-image {
    opacity: 0.9;
}

.game-card-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 600px) {
    .game-card-content {
        flex: 1;
        padding: var(--space-xl);
    }
}

.game-card-content h2 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

@media (min-width: 600px) {
    .game-card-content h2 {
        font-size: 1.5rem;
    }
}

.game-card-content p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

@media (min-width: 600px) {
    .game-card-content p {
        font-size: 0.95rem;
        margin-bottom: var(--space-lg);
        line-height: 1.7;
    }
}

.store-links {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.store-links:last-child {
    margin-bottom: 0;
}

@media (min-width: 600px) {
    .store-links {
        justify-content: flex-start;
    }
}

.store-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.store-link:hover {
    border-color: var(--color-accent);
    background: var(--color-surface);
}

.store-link img {
    width: 20px;
    height: 20px;
}

.store-icon-svg {
    width: 20px;
    height: 20px;
}

/* Featured store link (Limited Edition) */
.store-link-featured {
    background: var(--color-bg-alt);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.store-link-featured:hover {
    background: var(--color-surface);
    border-color: var(--color-accent-hover);
    color: var(--color-accent-hover);
}

.store-link-featured img {
    filter: brightness(0) saturate(100%) invert(73%) sepia(47%) saturate(497%) hue-rotate(11deg) brightness(93%) contrast(92%);
}

/* Make Steam icon white */
.store-link img[src$="steam.png"] {
    filter: brightness(0) invert(1);
}

.game-year {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
}
