/* Store360 - Main Stylesheet */
/* Cores: Verde #00FF00, Branco #FFFFFF, Preto #000000, Cinza Chumbo #6B7280 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00FF00;
    --secondary: #FFFFFF;
    --text: #FFFFFF;
    --text-light: #B0B8C8;
    --bg-dark: #0F0F0F;
    --bg-darker: #050505;
    --border: #1F1F1F;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: fit-content;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

.navbar-logo .logo {
    width: auto;
    max-width: 150px;
    height: 40px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.navbar-logo a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--primary);
}

.navbar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid rgba(0, 255, 0, 0.45);
    border-radius: 9px;
    background: rgba(0, 255, 0, 0.06);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggle-line {
    width: 23px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-toggle.active .navbar-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .navbar-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-menu {
    flex: 1;
    display: flex;
    gap: 2rem;
}

.navbar-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.navbar-menu a:hover {
    color: var(--primary);
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* Search */
.navbar-search {
    flex: 0.5;
    display: flex;
}

.navbar-search form {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--primary);
}

.search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--text);
    transform: scale(1.1);
}

/* User Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login, .btn-register {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-login:hover {
    background: var(--primary);
    color: var(--text);
}

.btn-register {
    background: var(--primary);
    color: var(--text);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3);
}

.user-greeting {
    color: var(--primary);
    font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 300px);
    padding-bottom: 2rem;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 255, 0, 0.2));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 4rem;
    color: var(--secondary);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== GAMES SECTION ===== */
.games-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--text);
}

.btn-view-all {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-all:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.game-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9/12;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.btn-play {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.4);
}

.game-card-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.game-category {
    font-size: 0.85rem;
    color: var(--primary);
}

.game-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: auto;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.categories-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-darker);
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 0, 0.1);
}

.category-icon {
    font-size: 2rem;
}

.category-name {
    color: var(--text);
    font-weight: 600;
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #FF0000;
    color: #FF0000;
}

.alert-info {
    background: rgba(100, 200, 255, 0.1);
    border: 1px solid #64C8FF;
    color: #64C8FF;
}

/* ===== Scroll Bar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ===== GAME DETAIL PAGE ===== */
.game-detail-page {
    --detail-surface: #111713;
    --detail-surface-soft: #171d19;
    --detail-border: rgba(255, 255, 255, 0.09);
    --detail-muted: #aeb8b0;
    width: 100%;
}

.game-detail-page .game-banner {
    position: relative;
    width: 100%;
    min-height: 340px;
    overflow: hidden;
    background: #090b0a;
}

.game-detail-page .banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.game-detail-page .game-banner-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 5, 5, 0.86) 100%),
        linear-gradient(90deg, rgba(5, 5, 5, 0.8) 0%, rgba(5, 5, 5, 0.12) 70%);
}

.game-detail-page .game-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    min-height: 340px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
}

.game-detail-page .game-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    color: #fff;
    background: rgba(5, 5, 5, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.game-detail-page .game-back-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.game-detail-page .game-container {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: -125px auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1.5rem;
    align-items: start;
}

.game-detail-page .game-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-detail-page .game-header-card,
.game-detail-page .game-content-card,
.game-detail-page .game-widget {
    background: rgba(17, 23, 19, 0.97);
    border: 1px solid var(--detail-border);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.game-detail-page .game-header-card {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 1.75rem;
}

.game-detail-page .game-cover-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #0a0d0b;
    border: 1px solid var(--detail-border);
}

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

.game-detail-page .game-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-detail-page .game-category-badge {
    align-self: flex-start;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.75rem;
    color: var(--primary);
    background: rgba(0, 255, 0, 0.08);
    border: 1px solid rgba(0, 255, 0, 0.28);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.game-detail-page .game-info h1 {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.game-detail-page .game-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.game-detail-page .game-meta-item {
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--detail-border);
    border-radius: 10px;
    min-width: 0;
}

.game-detail-page .game-meta-item span {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--detail-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-detail-page .game-meta-item strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.game-detail-page .game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.game-detail-page .game-actions .btn-primary,
.game-detail-page .game-actions .btn-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-detail-page .game-actions .btn-primary {
    color: #061006;
}

.game-detail-page .game-content-card {
    padding: 1.6rem;
}

.game-detail-page .game-content-card h2,
.game-detail-page .game-widget h2,
.game-detail-page .related-games h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.2;
}

.game-detail-page .game-description,
.game-detail-page .game-story,
.game-detail-page .requirements-content {
    color: #d9dfda;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.game-detail-page .game-empty-text {
    color: var(--detail-muted);
    font-style: italic;
}

.game-detail-page .game-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-detail-page .game-section-heading h2 {
    margin: 0;
}

.game-detail-page .game-section-heading span,
.game-detail-page .game-section-heading a {
    color: var(--detail-muted);
    font-size: 0.9rem;
}

.game-detail-page .game-section-heading a {
    color: var(--primary);
    text-decoration: none;
}

.game-detail-page .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.game-detail-page .gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #090b0a;
    border: 1px solid var(--detail-border);
}

.game-detail-page .gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.game-detail-page .gallery-item:hover img {
    transform: scale(1.035);
}

.game-detail-page .game-sidebar {
    position: sticky;
    top: 105px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-detail-page .game-widget {
    padding: 1.25rem;
}

.game-detail-page .game-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--detail-border);
}

.game-detail-page .game-stat-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.game-detail-page .game-stat-row span {
    color: var(--detail-muted);
}

.game-detail-page .game-stat-row strong {
    color: #fff;
}

.game-detail-page .game-spec-list {
    margin: 0;
}

.game-detail-page .game-spec-list > div {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--detail-border);
}

.game-detail-page .game-spec-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.game-detail-page .game-spec-list dt {
    margin-bottom: 0.2rem;
    color: var(--detail-muted);
    font-size: 0.8rem;
}

.game-detail-page .game-spec-list dd {
    margin: 0;
    color: #fff;
    overflow-wrap: anywhere;
}

.game-detail-page .download-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.game-detail-page .btn-download {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    color: #071007;
    background: var(--primary);
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}

.game-detail-page .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 0, 0.22);
}

.game-detail-page .download-empty-state {
    padding: 1.1rem;
    text-align: center;
    color: var(--detail-muted);
    background: rgba(255, 255, 255, 0.035);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 10px;
}

.game-detail-page .download-empty-state span {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.6rem;
}

.game-detail-page .download-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

.game-detail-page .download-info {
    margin: 0.9rem 0 0;
    color: var(--detail-muted);
    font-size: 0.78rem;
    text-align: center;
}

.game-detail-page .related-games {
    max-width: 1400px;
    margin: 2.5rem auto 0;
    padding: 0 2rem;
}

.game-detail-page .related-games .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Backup e importação em massa de jogos */
.backup-panel { margin-bottom: 1.5rem; }
.backup-panel > p { margin: .5rem 0 1.25rem; color: var(--text-muted, #666); }
.backup-warning { margin: 1rem 0; padding: .9rem 1rem; border-radius: 8px; background: rgba(255, 193, 7, .14); border: 1px solid rgba(255, 193, 7, .45); }
.backup-result { margin-top: 1rem; padding: 1rem; border-radius: 8px; background: rgba(40, 167, 69, .12); border: 1px solid rgba(40, 167, 69, .35); }
.backup-result ul { margin: .75rem 0 0 1.25rem; }
