:root {
    --ps-blue: #0070d1;
    --ps-blue-hover: #005bb5;
    --bg-dark: #0f0f11;
    --card-bg: rgba(30, 30, 30, 0.85);
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
}

body {
    background: radial-gradient(circle at top, #1a1a24 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

h1 { 
    color: var(--text-light); 
    margin: 0 0 10px 0; 
    font-size: 2.5em; 
    text-transform: uppercase; 
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0, 112, 209, 0.5);
}

p.subtitle { color: var(--text-muted); margin: 0; font-size: 1.1em; }

/* Barra de Pesquisa */
.search-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: 2px solid #333;
    background-color: #1a1a1a;
    color: white;
    font-size: 1.1em;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--ps-blue);
    box-shadow: 0 0 15px rgba(0, 112, 209, 0.3);
}

.loja-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 25px; 
    max-width: 1300px; 
    width: 100%; 
}

/* Card do Jogo */
.game-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover, .game-card:focus-within {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 112, 209, 0.2);
    border-color: rgba(0, 112, 209, 0.5);
}

.cover-wrapper {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1f1f1f 0%, #121212 100%);
    position: relative;
    overflow: hidden;
}

.game-cover { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.game-card:hover .game-cover {
    transform: scale(1.05);
}

.game-info { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    justify-content: space-between; 
    background: linear-gradient(to top, #181818 0%, transparent 100%);
}

.game-title { 
    font-size: 1.2em; 
    font-weight: 700; 
    margin-bottom: 8px; 
    text-align: center; 
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.game-size { 
    font-size: 0.9em; 
    color: var(--text-muted); 
    text-align: center; 
    margin-bottom: 20px; 
    background: rgba(255,255,255,0.05);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    align-self: center;
}

.download-btn {
    background-color: var(--ps-blue);
    color: white;
    padding: 14px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    outline: none;
    border: none;
    cursor: pointer;
}

.download-btn:hover, .download-btn:focus { 
    background-color: var(--ps-blue-hover); 
    outline: 3px solid white; 
    transform: translateY(-2px);
}

/* Mensagens de Status */
#loading { 
    color: var(--ps-blue); 
    font-size: 1.2em; 
    font-weight: bold; 
    margin-top: 50px;
}

.erro-msg { color: #ff4444 !important; }

/* Adicione isso no seu style.css */
.btn-desbloqueio {
    background: #e63946;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s;
    outline: none;
}

.btn-desbloqueio:hover, .btn-desbloqueio:focus {
    background: #ff4d5e;
    outline: 3px solid white; /* Borda que aparece ao navegar com o controle */
    transform: scale(1.05);
}

/* Estilos para os Filtros */
.filtros-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.filtro-btn {
    background-color: #1e1e1e;
    color: var(--text-muted);
    border: 2px solid #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.filtro-btn:hover {
    background-color: #2a2a2a;
    color: white;
}

/* Estilo do botão que está selecionado */
.filtro-btn.active {
    background-color: var(--ps-blue);
    color: white;
    border-color: var(--ps-blue);
}

/* Borda de foco para navegar com o controle do PS4 */
.filtro-btn:focus {
    outline: 3px solid white;
    border-color: white;
}