/* ================================================
   ESPANOLGAMES.ES — CATEGORY
   File: assets/css/category.css
   ================================================ */

/* ===== DARK ORANGE THEME - CATEGORY PAGE ===== */
:root {
    --orange: #ff4400;
    --dark: #0a0a0a;
    --card-bg: #111;
    --border: #2a2a2a;
    --text-light: #f0f0f0;
    --text-dim: #a0a0a0;
}

.category-page {
    background: var(--dark);
    min-height: 100vh;
    padding: 40px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.category-hero {
    background: linear-gradient(145deg, #111, #000);
    border: 1px solid var(--orange);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.category-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.category-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    color: var(--text-dim);
}

.category-meta i {
    color: var(--orange);
    margin-right: 8px;
}

.category-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #111;
    padding: 15px;
    border-radius: 50px;
}

.filter-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
}

.filter-btn:hover {
    border-color: var(--orange);
    color: white;
}

.filter-btn.active {
    background: var(--orange);
    color: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.game-card:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
}

.game-card a {
    text-decoration: none;
    color: inherit;
}

.game-cover {
    position: relative;
    padding-top: 133%;
    overflow: hidden;
}

.game-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 68, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-overlay i {
    color: white;
    font-size: 48px;
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 13px;
}

.game-meta i {
    color: var(--orange);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-link {
    padding: 12px 20px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: var(--orange);
    color: white;
}

.page-link.active {
    background: var(--orange);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 80px;
    background: #111;
    border-radius: 24px;
}

.empty-state i {
    font-size: 64px;
    color: var(--orange);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .category-filters { flex-direction: column; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}