/* 
   DESIGN SYSTEM PREMIUM (INSPIRADO NA NOVAGAMES)
   Paleta: Roxo & Rosa
*/

:root {
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --store-accent: #8b5cf6; /* Roxo */
    --store-pink: #ec4899;   /* Rosa */
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-sutil: #262626;
    --border-highlight: #3f3f46;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --container-max: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Containers */
.header-container, main, .footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    height: 90px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-sutil);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--store-pink);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: #fff;
}

/* Search Bar */
.search-container {
    background: var(--bg-card);
    border: 1px solid var(--border-sutil);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--store-accent);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

/* Game Cards (Store Grid) */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border-sutil);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.store-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.store-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

.store-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.store-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-gradient);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
}

.badge-discount {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger-color);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 900;
    z-index: 2;
}

/* Menu Dropdown de Categorias */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: #0a0a0a;
    border: 1px solid #262626;
    border-radius: 1.25rem;
    padding: 0.75rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

/* Ponte invisível para evitar que o menu feche ao mover o mouse */
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    transform: translateX(5px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.store-card-content {
    padding: 1.5rem;
}

.store-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--success-color);
}

.stock-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.in-stock { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.out-of-stock { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }

/* Buttons */
.btn-buy {
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 800;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

/* Bundle Section */
.bundle-container {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.bundle-info h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.bundle-games {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.bundle-game-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bundle-pricing {
    text-align: right;
    min-width: 240px;
}

.bundle-pricing .current-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--success-color);
    margin: 0.25rem 0;
}

/* Reviews */
.reviews-section {
    margin-top: 6rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-sutil);
    padding-bottom: 1.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.review-item {
    background: var(--bg-card);
    border: 1px solid var(--border-sutil);
    border-radius: 1.25rem;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: #fff;
}

.review-stars {
    color: var(--warning-color);
    font-size: 1.1rem;
}

.review-comment {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Similar Games */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.similar-grid .store-card-image {
    aspect-ratio: 3/4;
    height: 340px;
    border-radius: 1rem;
    overflow: hidden;
}

/* Login/Register/Account Cards */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent);
}

.login-card, .register-card {
    background: var(--bg-card);
    border: 1px solid var(--border-sutil);
    padding: 3.5rem;
    border-radius: 2rem;
    width: 100%;
    max-width: 500px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: #000;
    border: 1px solid var(--border-sutil);
    padding: 1rem;
    border-radius: 0.75rem;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--store-accent);
}

/* Product Page Layout */
.product-container {
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 4rem;
    margin: 4rem auto;
    align-items: start;
}

.product-image-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-image-side img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Cards de Informação (Download, Prazo, etc) */
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
    transition: background 0.3s ease;
}

.info-card-v2 i { font-size: 1.5rem; color: var(--store-accent); margin-bottom: 0.5rem; display: block; }
.info-card-v2 span { display: block; font-size: 0.8rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.info-card-v2 small { font-size: 0.7rem; color: var(--text-muted); line-height: 1.2; display: block; }

/* Buy Card (Agora como bloco na direita) */
.buy-card-v3 {
    background: linear-gradient(145deg, #16161d 0%, #0d0d10 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 2.5rem;
    border-radius: 1.5rem;
    margin-top: 2rem;
}

.product-title-v2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffd166;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

/* Botões Flutuantes */
.social-floating {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.social-icon:hover { transform: scale(1.1) translateY(-5px); }

.social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-telegram { background: #0088cc; }
.social-whatsapp { background: #25d366; }

/* Estilo da lista de segurança */
.security-list {
    list-style: none;
    padding: 0;
}

.security-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.security-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--success-color);
}

/* Steam Content Formatting */
.steam-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.steam-details img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.steam-details h2, .steam-details h1 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.steam-details p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.steam-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.bb_tag { color: var(--store-accent); font-weight: 700; }

/* Custom Scrollbar para a descrição */
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.custom-scroll::-webkit-scrollbar-thumb { background: var(--border-highlight); border-radius: 10px; }

/* Responsividade */
@media (max-width: 992px) {
    .product-container { grid-template-columns: 1fr; gap: 3rem; }
    .bundle-container { flex-direction: column; text-align: center; }
    .bundle-pricing { text-align: center; min-width: 100%; }
    .similar-grid { grid-template-columns: repeat(2, 1fr); }
    .header-container { flex-direction: column; height: auto; padding: 1rem; }
    nav { margin-top: 1rem; gap: 1rem; }
}