/* game-library/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --cyan: #00f3ff;
    --magenta: #ff00ff;
    --orange: #ff9900;
    --purple: #bc13fe;
    --bg-dark: #050510;
    --glass-bg: rgba(5, 5, 16, 0.7);
    --grid-line: rgba(0, 243, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    margin: 0;
    min-height: 100vh;
}

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

/* Header */
.main-header {
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
}

.back-link {
    position: absolute;
    top: -1rem;
    right: 0;
    color: #666;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--cyan);
}

.logo-area {
    margin-top: 2rem;
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 15px;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    background: linear-gradient(90deg, #fff, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--cyan);
    letter-spacing: 10px;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Header Controls */
.header-controls {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Search */
.search-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.search-wrapper:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.05);
}

.search-icon {
    color: var(--cyan);
    margin-right: 15px;
    opacity: 0.7;
}

#game-search {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    outline: none;
}

#game-search:focus {
    outline: none;
}

#game-search::placeholder {
    color: rgba(0, 243, 255, 0.3);
}

.clear-search {
    color: var(--cyan);
    opacity: 0;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
    padding: 5px;
    pointer-events: none;
}

.clear-search.visible {
    opacity: 0.5;
    pointer-events: auto;
}

.clear-search.visible:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Console Filters */
.console-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: #888;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    letter-spacing: 1px;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-chip.active {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.chip-count {
    margin-left: 8px;
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.filter-chip.active .chip-count {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
    font-weight: 700;
}

.filter-chip i {
    font-size: 1.1rem;
}

/* Grid & Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Smaller cards */
    gap: 2rem;
    margin-top: 4rem;
}

.game-card {
    background: #11111d; /* Slightly lighter than site background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.game-cover {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: brightness(0.9);
    transition: all 0.5s;
}

.crossplay-badge-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem; /* Smaller font */
    font-weight: 500;
    padding: 3px 10px; /* Reduced padding */
    border-radius: 100px;
    border: 1.5px solid var(--orange);
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
}

.crossplay-badge-pill i {
    color: var(--orange);
    font-size: 0.9rem;
}

.game-info {
    padding: 1rem; /* Smaller padding */
}

.game-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Smaller font */
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
    text-transform: lowercase; 
}

.game-consoles {
    display: flex;
    justify-content: flex-start;
    gap: 1rem; /* Tighter gap */
    padding-bottom: 0.2rem;
}

.console-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem; /* Slightly smaller icons to fit */
    transition: all 0.3s;
    background: transparent;
    width: auto;
    height: auto;
}

.console-circle.cyan { 
    color: var(--cyan); 
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.4));
}
.console-circle.magenta { 
    color: var(--magenta); 
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.4));
}
.console-circle.purple { 
    color: var(--purple); 
    filter: drop-shadow(0 0 8px rgba(188, 19, 254, 0.4));
}

.console-circle:hover {
    transform: scale(1.15);
}

/* Pagination */
.pagination {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.pag-btn {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyan);
    text-decoration: none;
    border: 1px solid var(--cyan);
    padding: 10px 25px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    transition: all 0.3s;
}

.pag-btn:hover:not(.disabled) {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 20px var(--cyan);
}

.pag-btn.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.pag-info {
    font-family: 'Orbitron', sans-serif;
    color: var(--magenta);
    letter-spacing: 2px;
}

/* Footer */
.main-footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .glitch-text { font-size: 3rem; letter-spacing: 5px; }
    .subtitle { font-size: 1rem; letter-spacing: 5px; }
    .game-grid { grid-template-columns: 1fr; }
}
