/* Global Styles - Império Style */
:root {
    --gold: #C5A059;
    --dark-gold: #8E6E3A;
    --ruby: #A01515;
    --black: #050505;
    --dark-gray: #0F0F0F;
    --border-color: #222;
    --text-muted: #888;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(197, 160, 89, 0.15);
}

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

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

h1, h2, h3, .logo-text {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

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

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(160, 21, 21, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
header {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    color: #bbb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

/* Auth Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
}

.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    line-height: 1;
    transition: 0.3s;
}

.points-badge:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--gold);
}

.points-badge i {
    width: 18px;
    height: 18px;
    color: var(--gold);
    display: flex;
    align-items: center;
}

.points-badge span {
    position: relative;
    top: 1px; /* Micro-ajuste para centralização visual perfeita */
}

.btn-logout {
    color: #666;
    transition: 0.3s;
}

.btn-logout:hover {
    color: var(--ruby);
}

.btn-primary {
    background: linear-gradient(135deg, #C5A059 0%, #F1C40F 50%, #C5A059 100%);
    background-size: 200% auto;
    color: #000;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 60px 0;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--dark-gray);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

/* Ranking */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    transition: 0.3s;
}

.ranking-item:hover {
    background: rgba(197, 160, 89, 0.05);
}

.rank-pos {
    font-weight: 800;
    color: #555;
    font-size: 0.8rem;
    width: 25px;
}

.top-1 .rank-pos { color: var(--gold); }
.top-1 { border: 1px solid var(--glass-border); background: linear-gradient(90deg, rgba(197, 160, 89, 0.05), transparent); }

.rank-name {
    flex-grow: 1;
    font-size: 0.9rem;
    font-weight: 600;
}

.rank-points {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-list li {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Store Content */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.store-filter {
    display: flex;
    gap: 15px;
}

.filter-btn {
    background: var(--dark-gray);
    border: 1px solid #333;
    color: #888;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(197, 160, 89, 0.05);
}

/* Grid & Cards */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.item-card {
    background: var(--dark-gray);
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

.border-glow {
    border: 1px solid var(--dark-gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

.item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--ruby);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.item-img-container {
    height: 180px;
    background: #080808;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.item-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(160, 21, 21, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.item-img-container img {
    max-width: 140px;
    transition: 0.5s;
}

.item-card:hover .item-img-container img {
    transform: scale(1.1);
}

.item-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.item-info p {
    font-size: 0.8rem;
    color: #777;
    height: 40px;
    overflow: hidden;
    margin-bottom: 20px;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #222;
    margin-top: auto;
}

.price {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-buy {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy:hover:not(:disabled) {
    background: var(--gold);
    color: #000;
}

.btn-buy:disabled {
    border-color: #333;
    color: #444;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: #030303;
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.logo-small {
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 15px;
}

footer p {
    color: #555;
    font-size: 0.75rem;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #333;
}

.social-links i {
    cursor: pointer;
    transition: 0.3s;
}

.social-links i:hover {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: 2;
    }
}

/* Stock & Price alignment */
.price-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #888;
}

.stock-info i {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.out-of-stock {
    opacity: 0.6;
    filter: grayscale(1);
}
