/* public/css/home-modern.css */
/* ============================================
   DISEÑO IMPACTANTE - CON-TOR STYLE
   Neón, Glow, Glassmorphism, Actitud
   ============================================ */

:root {
    --gold: #FFD700;
    --gold-neon: #FFD700;
    --gold-dark: #DAA520;
    --gold-glow: rgba(255, 215, 0, 0.4);
    --gold-glow-strong: rgba(255, 215, 0, 0.6);
    --dark-bg: #0a0c0e;
    --dark-card: rgba(26, 29, 32, 0.8);
    --dark-card-solid: #1a1d20;
    --dark-border: #2a2d32;
    --text-muted: #A0A0A0;
    --text-light: #E5E5E5;
}

/* ============================================
   HERO SECTION - IMPACTANTE
   ============================================ */
.hero-modern {
    background: radial-gradient(ellipse at 30% 40%, rgba(255,215,0,0.15) 0%, #0a0c0e 70%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--gold);
}

/* Efecto de líneas de fondo */
.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255, 215, 0, 0.03) 40px,
        rgba(255, 215, 0, 0.03) 80px
    );
    pointer-events: none;
    animation: rotateGrid 60s linear infinite;
}

@keyframes rotateGrid {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Círculo de neón detrás */
.hero-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
        letter-spacing: -2px;
    }
}

.text-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    display: inline-block;
}

.text-gold::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(8px);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Buscador - estilo neón */
.search-container {
    max-width: 600px;
    margin: 2.5rem auto;
    position: relative;
    z-index: 1;
}

.search-box {
    display: flex;
    background: rgba(26, 29, 32, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 5px 20px rgba(0,0,0,0.3);
    transform: scale(1.02);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 24px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.search-box input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border: none;
    padding: 0 32px;
    color: #0a0c0e;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 1px;
}

.search-box button:hover {
    background: linear-gradient(135deg, #FFE066, #FFA500);
    transform: scale(1.05);
}

/* Stats - con glow */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width 0.3s ease;
}

.stat-item:hover::before {
    width: 80%;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   TORNEOS DESTACADOS - CARDS CON ACTITUD
   ============================================ */
.featured-section {
    background: linear-gradient(180deg, #0a0c0e 0%, #0F1113 100%);
    padding: 70px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 3px;
}

.view-all {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.view-all::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.view-all:hover {
    color: #FFE066;
}

.view-all:hover::after {
    transform: translateX(5px);
}

/* Grid de torneos */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Tarjeta CON ACTITUD - Glassmorphism + Neón */
.tournament-card {
    background: rgba(26, 29, 32, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(255, 215, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en las esquinas */
.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,215,0,0.05), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tournament-card:hover::before {
    opacity: 1;
}

.tournament-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.2);
}

/* Categoría y precio */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255,215,0,0.3);
}

/* Título */
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    letter-spacing: -0.3px;
}

.card-platform {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    border-left: 2px solid var(--gold);
    padding-left: 8px;
}

/* Detalles */
.card-details {
    margin: 1rem 0;
}

.card-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.card-detail:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.card-detail span:first-child {
    width: 25px;
    font-size: 1rem;
}

/* Botón - con actitud */
.btn-card {
    display: block;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,215,0,0.02));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn-card:hover {
    background: var(--gold);
    color: #0a0c0e;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.3);
}

.btn-card:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   CATEGORÍAS - CON ACTITUD
   ============================================ */
.categories-section {
    background: linear-gradient(180deg, #0F1113 0%, #0a0c0e 100%);
    padding: 70px 0;
}

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

.category-card {
    background: rgba(26, 29, 32, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.3));
}

.category-card h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #0a0c0e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.3);
}

/* ============================================
   CTA SECTION - IMPACTANTE
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0c0e, #0F1113);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.05), transparent);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.cta-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(218,165,32,0.02));
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-gold-large {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #0a0c0e;
    font-weight: bold;
    padding: 14px 42px;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255,215,0,0.3);
}

.btn-gold-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.5);
    background: linear-gradient(135deg, #FFE066, #FFA500);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stats-container {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 30px;
    }
    
    .search-box input {
        border-radius: 30px 30px 0 0;
        text-align: center;
    }
    
    .search-box button {
        border-radius: 0 0 30px 30px;
        padding: 12px;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-card h2 {
        font-size: 1.5rem;
    }
    
    .cta-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .stats-container {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
}