/* DOS Games - Clean Dark Theme */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Category filter tabs */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid rgba(77, 171, 247, 0.15);
}

.category-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: rgba(77, 171, 247, 0.1);
    border-color: rgba(77, 171, 247, 0.3);
    color: #4dabf7;
}

.category-btn.active {
    background: rgba(77, 171, 247, 0.15);
    border-color: #4dabf7;
    color: #4dabf7;
    font-weight: 600;
}

/* Category sections */
.category-section {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4dabf7;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(77, 171, 247, 0.2);
    scroll-margin-top: 80px;
}

/* Game cards grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

/* Individual game card */
.game-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: rgba(77, 171, 247, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Card top: cover + info side by side */
.game-card-top {
    display: flex;
    padding: 1rem;
    gap: 1rem;
}

.game-card-cover {
    width: 100px;
    min-width: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: #0d0d0d;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card-cover .no-cover {
    color: rgba(255, 255, 255, 0.2);
    font-size: 2rem;
}

.game-card-info {
    flex: 1;
    min-width: 0;
}

.game-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.game-card-year {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.game-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.game-card-rating.high {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.game-card-rating.medium {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.game-card-rating.low {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.game-card-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Gameplay section (expandable) */
.game-card-gameplay {
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}

.game-card-gameplay summary {
    font-size: 0.8rem;
    color: #4dabf7;
    cursor: pointer;
    font-weight: 600;
    padding: 0.25rem 0;
}

.game-card-gameplay summary:hover {
    color: #74c0fc;
}

.game-card-gameplay p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
}

/* Screenshots strip */
.game-card-screenshots {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 171, 247, 0.3) transparent;
}

.game-card-screenshots img {
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-card-screenshots img:hover {
    border-color: #4dabf7;
    transform: scale(1.05);
}

/* Store links */
.game-card-links {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid;
}

.store-link.steam {
    color: #c7d5e0;
    border-color: rgba(199, 213, 224, 0.3);
    background: rgba(199, 213, 224, 0.05);
}

.store-link.steam:hover {
    background: rgba(199, 213, 224, 0.15);
    border-color: rgba(199, 213, 224, 0.5);
}

.store-link.gog {
    color: #b48dde;
    border-color: rgba(180, 141, 222, 0.3);
    background: rgba(180, 141, 222, 0.05);
}

.store-link.gog:hover {
    background: rgba(180, 141, 222, 0.15);
    border-color: rgba(180, 141, 222, 0.5);
}

.store-link.dosgames {
    color: #4dabf7;
    border-color: rgba(77, 171, 247, 0.3);
    background: rgba(77, 171, 247, 0.05);
}

.store-link.dosgames:hover {
    background: rgba(77, 171, 247, 0.15);
    border-color: rgba(77, 171, 247, 0.5);
}

/* Screenshot lightbox */
.screenshot-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    cursor: pointer;
}

.screenshot-lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.screenshot-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Loading state */
.games-loading {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .games-container {
        padding: 1rem;
    }

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

    .game-card-cover {
        width: 80px;
        min-width: 80px;
    }

    .category-filters {
        gap: 0.35rem;
    }

    .category-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}
