/**
 * Steam Integration Pro Extended - Luna Style
 * Diseño inspirado en Amazon Luna
 * Archivo: assets/css/steam-px-luna-style.css
 */

:root {
    /* Colores principales - Inspirados en Luna */
    --luna-purple-dark: #1a0933;
    --luna-purple: #4a1f88;
    --luna-purple-light: #6b3fb8;
    --luna-accent: #8b5cf6;
    --luna-green: #10b981;
    --luna-blue: #3b82f6;
    
    /* Backgrounds */
    --bg-primary: #0f0817;
    --bg-secondary: #1a0f2e;
    --bg-card: #1e1432;
    --bg-card-hover: #281d42;
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #a8a3b8;
    --text-muted: #6b6477;
    
    /* Bordes y sombras */
    --border-subtle: rgba(139, 92, 246, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    
    /* Tamaños */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== CONTAINER PRINCIPAL ===== */
.steamx-luna-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 20px 0;
    margin: 0;
}

/* ===== HERO BANNER (Estilo Luna) ===== */
.steamx-hero-banner {
    position: relative;
    height: 500px;
    margin-bottom: 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--luna-purple-dark), var(--luna-purple));
}

.steamx-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(8px);
}

.steamx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 8, 23, 0.95) 0%, rgba(15, 8, 23, 0.7) 50%, transparent 100%);
}

.steamx-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    max-width: 600px;
    z-index: 2;
}

.steamx-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.steamx-hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== SECTION HEADER ===== */
.steamx-section {
    margin-bottom: 48px;
}

.steamx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.steamx-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.steamx-section-nav {
    display: flex;
    gap: 8px;
}

.steamx-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.steamx-nav-btn:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--luna-accent);
    color: var(--luna-accent);
    transform: scale(1.1);
}

.steamx-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== HORIZONTAL SCROLL CONTAINER ===== */
.steamx-scroll-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.steamx-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0 16px 0;
}

.steamx-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* ===== GAME CARD (Estilo Luna) ===== */
.steamx-game-card-luna {
    flex: 0 0 320px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-subtle);
}

.steamx-game-card-luna:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--luna-accent);
    z-index: 10;
}

.steamx-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.steamx-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.steamx-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.steamx-card-badge.discount {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.steamx-card-content {
    padding: 16px;
}

.steamx-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.steamx-card-price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.steamx-price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.steamx-price-final {
    font-size: 20px;
    font-weight: 700;
    color: var(--luna-green);
}

/* ===== STATS CARDS ===== */
.steamx-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.steamx-stat-card-luna {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.steamx-stat-card-luna::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--luna-accent), var(--luna-purple-light));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.steamx-stat-card-luna:hover::before {
    transform: translateX(0);
}

.steamx-stat-card-luna:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--luna-accent);
}

.steamx-stat-icon-luna {
    font-size: 32px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px currentColor);
}

.steamx-stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.steamx-stat-value-luna {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 12px 0;
}

.steamx-stat-value-luna.highlight {
    background: linear-gradient(135deg, var(--luna-accent), var(--luna-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MODAL ===== */
.steamx-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.steamx-modal.active {
    opacity: 1;
    pointer-events: all;
}

.steamx-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.steamx-modal.active .steamx-modal-content {
    transform: scale(1);
}

.steamx-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.steamx-modal-close:hover {
    background: var(--luna-accent);
    transform: rotate(90deg);
}

.steamx-modal-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.steamx-modal-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
}

.steamx-modal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.steamx-modal-title {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    font-size: 36px;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.steamx-modal-body {
    padding: 30px;
}

.steamx-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.steamx-modal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.steamx-modal-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.steamx-modal-meta-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .steamx-hero-banner {
        height: 400px;
    }
    
    .steamx-hero-content {
        padding: 40px 24px;
    }
    
    .steamx-hero-title {
        font-size: 32px;
    }
    
    .steamx-section-header {
        padding: 0 16px;
    }
    
    .steamx-scroll-container {
        padding: 0 16px;
    }
    
    .steamx-game-card-luna {
        flex: 0 0 280px;
    }
    
    .steamx-stats-row {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    
    .steamx-modal-title {
        font-size: 24px;
        left: 20px;
        right: 20px;
    }
    
    .steamx-modal-body {
        padding: 20px;
    }
}

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

.steamx-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}
