mirror of
https://github.com/Zer0G0ld/ps4z.git
synced 2026-10-28 19:04:56 +01:00
425 lines
9.5 KiB
CSS
425 lines
9.5 KiB
CSS
:root {
|
|
--bg-main: #0f0f11;
|
|
--bg-header: #171a21;
|
|
--bg-card: #1a2530;
|
|
--bg-panel: #202d39;
|
|
--ps-blue: #0070d1;
|
|
--steam-blue: #66c0f4;
|
|
--green-btn: linear-gradient(to right, #4c6b22, #8bc34a);
|
|
--text-light: #c6d4df;
|
|
--text-muted: #8f98a0;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-main);
|
|
color: var(--text-light);
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* --- HEADER SUPERPSX --- */
|
|
.hub-header {
|
|
background-color: var(--bg-header);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 40px;
|
|
height: 70px;
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 1.5em;
|
|
font-weight: 900;
|
|
color: white;
|
|
letter-spacing: 2px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.nav-plataformas {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.nav-plataformas a {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
padding: 10px 15px;
|
|
font-weight: bold;
|
|
font-size: 0.9em;
|
|
text-transform: uppercase;
|
|
border-radius: 4px;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.nav-plataformas a:hover, .nav-plataformas a.active {
|
|
background-color: var(--bg-panel);
|
|
color: white;
|
|
}
|
|
|
|
.btn-jb {
|
|
background: #e63946;
|
|
color: white;
|
|
padding: 8px 15px;
|
|
text-decoration: none;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
font-size: 0.9em;
|
|
transition: 0.2s;
|
|
}
|
|
.btn-jb:hover { background: #ff4d5e; }
|
|
|
|
/* --- MAIN HUB --- */
|
|
.hub-main {
|
|
padding: 30px 40px;
|
|
max-width: 1500px;
|
|
margin: 0 auto;
|
|
flex-grow: 1;
|
|
width: 100%; /* Garante que ocupe a largura toda */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.search-box {
|
|
margin-bottom: 40px;
|
|
display: flex;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: calc(50% - 320px); /* Alinha com o ícone */
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-muted);
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
padding: 15px 25px 15px 50px; /* Aumenta o padding esquerdo pro texto não bater no ícone */
|
|
border-radius: 30px;
|
|
border: 2px solid var(--bg-panel);
|
|
background: #000;
|
|
color: white;
|
|
font-size: 1.1em;
|
|
outline: none;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.search-input:focus {
|
|
border-color: var(--steam-blue);
|
|
box-shadow: 0 0 15px rgba(102, 192, 244, 0.2);
|
|
}
|
|
|
|
/* --- PRATELEIRAS (SCROLL HORIZONTAL) --- */
|
|
.prateleira {
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
.prateleira-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
margin-bottom: 15px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.prateleira-header h2 {
|
|
margin: 0;
|
|
font-size: 1.5em;
|
|
font-weight: 400;
|
|
color: white;
|
|
}
|
|
|
|
.ver-mais {
|
|
color: var(--steam-blue);
|
|
text-decoration: none;
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
}
|
|
.ver-mais:hover { text-decoration: underline; }
|
|
|
|
.scroll-horizontal {
|
|
display: flex;
|
|
gap: 15px;
|
|
overflow-x: auto;
|
|
padding-bottom: 15px; /* Espaço para o scrollbar */
|
|
scroll-snap-type: x mandatory;
|
|
}
|
|
|
|
/* Esconde a barra de rolagem feia no PC, mas deixa ela bonita no PS4 */
|
|
.scroll-horizontal::-webkit-scrollbar {
|
|
height: 8px;
|
|
}
|
|
.scroll-horizontal::-webkit-scrollbar-track {
|
|
background: #000;
|
|
border-radius: 4px;
|
|
}
|
|
.scroll-horizontal::-webkit-scrollbar-thumb {
|
|
background: #333;
|
|
border-radius: 4px;
|
|
}
|
|
.scroll-horizontal::-webkit-scrollbar-thumb:hover {
|
|
background: var(--ps-blue);
|
|
}
|
|
|
|
/* --- CARDS --- */
|
|
.game-card {
|
|
background-color: var(--bg-card);
|
|
border-radius: 4px;
|
|
min-width: 180px; /* Fixa a largura do card na prateleira */
|
|
max-width: 180px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
scroll-snap-align: start;
|
|
}
|
|
|
|
.game-card:hover, .game-card:focus {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 0 15px rgba(102, 192, 244, 0.4);
|
|
outline: 2px solid var(--steam-blue);
|
|
}
|
|
|
|
.cover-wrapper {
|
|
position: relative;
|
|
/* Removi o padding-top que dava espaço para a tarja */
|
|
padding-top: 0;
|
|
background-color: #111;
|
|
aspect-ratio: 4 / 5;
|
|
border-radius: 4px; /* Arredonda as bordas da imagem */
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* A Tarja (PS4, PS3, PC) */
|
|
.cover-wrapper::before {
|
|
display: none;
|
|
}
|
|
|
|
.cover-wrapper::after {
|
|
display: none;
|
|
}
|
|
|
|
.game-cover {
|
|
width: 100%;
|
|
height: 100%; /* A imagem agora ocupa todo o espaço */
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.game-info {
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.game-title {
|
|
font-size: 0.9em;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
line-height: 1.2;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.download-btn {
|
|
background: var(--green-btn);
|
|
color: white;
|
|
padding: 8px;
|
|
text-decoration: none;
|
|
border-radius: 3px;
|
|
font-weight: bold;
|
|
font-size: 0.8em;
|
|
text-align: center;
|
|
pointer-events: none; /* Deixa o clique no card inteiro */
|
|
}
|
|
|
|
/* Cores das Tarjas por Plataforma */
|
|
.game-card.ps3-card .cover-wrapper::before { background-color: #000; }
|
|
.game-card.ps3-card .cover-wrapper::after { content: 'PS3'; -webkit-text-stroke: 1px #ccc; }
|
|
|
|
.game-card.pc-card .cover-wrapper::before { background: linear-gradient(to right, #171a21, #1b2838); border-bottom: 1px solid #66c0f4; }
|
|
.game-card.pc-card .cover-wrapper::after { content: 'PC'; color: #66c0f4; -webkit-text-stroke: 1px #66c0f4; }
|
|
|
|
.game-card.app-card .cover-wrapper::before { background-color: #2a475e; }
|
|
.game-card.app-card .cover-wrapper::after { content: 'APP'; color: #66c0f4; -webkit-text-stroke: 1px #66c0f4; }
|
|
/* Cabeçalho do Catálogo */
|
|
.catalogo-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.btn-toggle {
|
|
background-color: var(--bg-panel);
|
|
color: var(--steam-blue);
|
|
border: 1px solid rgba(102, 192, 244, 0.3);
|
|
padding: 8px 15px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.btn-toggle:hover, .btn-toggle:focus {
|
|
background-color: rgba(102, 192, 244, 0.2);
|
|
outline: 2px solid var(--steam-blue);
|
|
}
|
|
|
|
/* --- RESULTADOS DA BUSCA NA HOME --- */
|
|
#resultados-busca {
|
|
/* Herda o grid-view, mas garante que fique visível quando ativado */
|
|
margin-top: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* --- ESTILO PADRÃO (GRID / GRADE COMPACTA) --- */
|
|
.loja-container.grid-view {
|
|
display: grid;
|
|
/* Aumentei de 160px para 180px e o gap de 15px para 25px */
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: 25px;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* --- ESTILO ALTERNATIVO (LISTA CORRIGIDA) --- */
|
|
.loja-container.list-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Ajustes do Card no modo Lista */
|
|
.loja-container.list-view .game-card {
|
|
flex-direction: row;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
height: 90px; /* Card mais baixo na lista */
|
|
align-items: center;
|
|
display: flex; /* Força o flexbox */
|
|
}
|
|
|
|
.loja-container.list-view .cover-wrapper {
|
|
width: 70px;
|
|
min-width: 70px; /* Não deixa a imagem esmagar */
|
|
height: 100%;
|
|
padding-top: 0;
|
|
aspect-ratio: auto;
|
|
}
|
|
|
|
.loja-container.list-view .cover-wrapper::before { display: none; }
|
|
.loja-container.list-view .cover-wrapper::after { display: none; }
|
|
|
|
.loja-container.list-view .game-cover {
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.loja-container.list-view .game-info {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding: 0 20px;
|
|
gap: 15px; /* Espaço entre texto e botão */
|
|
}
|
|
|
|
.loja-container.list-view .game-title {
|
|
margin-bottom: 0;
|
|
font-size: 1em;
|
|
text-align: left;
|
|
-webkit-line-clamp: 1;
|
|
flex-grow: 1; /* Faz o título ocupar o espaço disponível */
|
|
}
|
|
|
|
.loja-container.list-view .download-btn {
|
|
width: 120px; /* Botão fixo na direita */
|
|
min-width: 120px;
|
|
padding: 10px;
|
|
}
|
|
|
|
/* --- RODAPÉ (FOOTER) --- */
|
|
.hub-footer {
|
|
background-color: var(--bg-header);
|
|
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
|
width: 100%;
|
|
padding: 40px 20px;
|
|
margin-top: 60px; /* Empurra o footer para baixo */
|
|
display: flex;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.footer-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
max-width: 1200px;
|
|
width: 100%;
|
|
gap: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer-logo {
|
|
font-size: 1.5em;
|
|
font-weight: 900;
|
|
color: white;
|
|
letter-spacing: 2px;
|
|
text-transform: uppercase;
|
|
text-shadow: 0 0 10px rgba(102, 192, 244, 0.3);
|
|
}
|
|
|
|
.footer-links {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.footer-links a {
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
font-size: 1em;
|
|
font-weight: bold;
|
|
transition: all 0.2s ease;
|
|
padding: 5px 10px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.footer-links a:hover, .footer-links a:focus {
|
|
color: white;
|
|
background-color: var(--bg-panel);
|
|
outline: 2px solid var(--steam-blue);
|
|
}
|
|
|
|
.footer-info p {
|
|
margin: 5px 0;
|
|
color: var(--text-muted);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Garante que o body empurre o footer para baixo */
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* O conteúdo principal vai crescer para empurrar o footer */ |