@import url('tienda.css');

/* ============================================
   CENTRALRP - ARMAS.CSS
   Armas Custom - Showcase + Grid
   ============================================ */

/* === HERO ARMAS === */
.hero-armas {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 3rem;
    position: relative;
    overflow: hidden;
}

.hero-armas-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(255, 50, 50, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 30% 70%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.hero-armas-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-armas h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #ffaaaa 30%, var(--danger) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-armas p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === SHOWCASE SECTION === */
.showcase-section {
    padding: 3rem 5% 5rem;
    position: relative;
    z-index: 2;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.showcase-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--danger), var(--primary), var(--secondary));
    opacity: 0.6;
}

/* === VISUAL (Imagen) === */
.showcase-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 50, 50, 0.05) 0%, transparent 70%);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.weapon-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.weapon-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}

.rarity-glow {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    transition: all 0.6s ease;
    z-index: 0;
}

.rarity-glow.legendary { background: radial-gradient(circle, #ffd700, transparent 70%); opacity: 0.25; }
.rarity-glow.epic { background: radial-gradient(circle, #a855f7, transparent 70%); opacity: 0.25; }
.rarity-glow.rare { background: radial-gradient(circle, #3b82f6, transparent 70%); opacity: 0.25; }
.rarity-glow.common { background: radial-gradient(circle, #6b7280, transparent 70%); opacity: 0.15; }

.weapon-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.weapon-img.changing {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
}

.weapon-float-badge {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.weapon-float-badge.legendary { background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,170,0,0.1)); color: #ffd700; border-color: rgba(255,215,0,0.3); }
.weapon-float-badge.epic { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(139,92,246,0.1)); color: #c084fc; border-color: rgba(168,85,247,0.3); }
.weapon-float-badge.rare { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(37,99,235,0.1)); color: #60a5fa; border-color: rgba(59,130,246,0.3); }
.weapon-float-badge.common { background: linear-gradient(135deg, rgba(107,114,128,0.2), rgba(75,85,99,0.1)); color: #9ca3af; border-color: rgba(107,114,128,0.3); }

/* === INFO (Derecha) === */
.showcase-info {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.showcase-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.showcase-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === SELECTOR === */
.selector-box label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.custom-select-wrapper {
    position: relative;
}

/* FONDO GRIS CLARO PARA EL SELECT Y SUS OPCIONES */
.custom-select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.2rem;
    background: #e8e8e8 !important; /* Gris claro */
    border: 1px solid #cccccc;
    border-radius: var(--radius-sm);
    color: #1a1a1a !important; /* Texto oscuro */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: var(--transition);
}

.custom-select:hover, .custom-select:focus {
    border-color: var(--primary);
    background: #f0f0f0 !important;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.15);
}

/* OPCIONES DEL DROPDOWN - FONDO GRIS CLARO */
.custom-select option {
    background: #e8e8e8 !important;
    color: #1a1a1a !important;
    font-size: 0.95rem;
    padding: 0.8rem;
}

/* Hover en opciones (para navegadores que lo soportan) */
.custom-select option:hover,
.custom-select option:checked {
    background: #d0d0d0 !important;
    color: #000 !important;
}

.select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #555555;
    font-size: 0.8rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.custom-select-wrapper:focus-within .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* === STATS === */
.stats-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.stats-box h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
}

.stat-row {
    display: grid;
    grid-template-columns: 90px 1fr 35px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.stat-row:last-child { margin-bottom: 0; }

.stat-row > span:first-child {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-bar {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 20px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.stat-fill.damage { background: linear-gradient(90deg, #ff4757, #ff6b81); }
.stat-fill.fireRate { background: linear-gradient(90deg, #ffa502, #ffc048); }
.stat-fill.accuracy { background: linear-gradient(90deg, #2ed573, #7bed9f); }
.stat-fill.range { background: linear-gradient(90deg, #1e90ff, #70a1ff); }
.stat-fill.mobility { background: linear-gradient(90deg, #ff6b35, #f7931e); }

.stat-value {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
}

/* === TAGS === */
.weapon-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-permanent {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.tag-legendary {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* === PURCHASE BOX === */
.purchase-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.price-display {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.price-ars {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.price-usd {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-buy {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* === QUICK GRID === */
.quick-grid-section {
    padding: 2rem 5% 5rem;
    position: relative;
    z-index: 2;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-card {
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.quick-card:hover::before { transform: scaleX(1); }

.quick-card:hover, .quick-card.active {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: var(--shadow-glow);
}

.quick-card.active {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.quick-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.quick-card:hover img {
    transform: scale(1.1);
}

.quick-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-card .quick-price {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.quick-rarity {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    width: 8px; height: 8px;
    border-radius: 50%;
}

.logo img{
    width: 150px;
    right: 250px;
}

.quick-rarity.legendary { background: #ffd700; box-shadow: 0 0 8px #ffd700; }
.quick-rarity.epic { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.quick-rarity.rare { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.quick-rarity.common { background: #6b7280; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }
    
    .showcase-visual {
        height: 320px;
        order: -1;
    }
    
    .purchase-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .btn-buy { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-armas h1 { font-size: 2rem; }
    .showcase-container { padding: 1.5rem; }
    .showcase-header h2 { font-size: 1.5rem; }
    .stat-row { grid-template-columns: 70px 1fr 30px; gap: 0.6rem; }
    .price-ars { font-size: 1.4rem; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
}