/* Hero Card - Sistema de Torneos */
.hero-card {
    background: #0c2340;
    border: 3px solid #00ffe7;
    box-shadow: 0 0 18px #00ffe7, 0 0 0 8px #1e3a5f;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.hero-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-icon {
    font-size: 1.8rem;
}

.hero-title {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.hero-subtitle {
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
}

/* Torneos Activos Card */
.torneos-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.torneos-header {
    background: #0c2340;
    border: 0;
    box-shadow: 0 0 18px #00ffe7, 0 0 0 8px #1e3a5f;
}

.torneos-header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(45, 90, 160, 0.3) 0%, transparent 50%);
    backdrop-filter: blur(1px);
}

.torneos-header-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.torneos-body {
    background: rgba(248, 250, 252, 0.8);
}

/* Tournament Cards */
.tournament-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 110, 255, 1);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tournament-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(30, 58, 95, 0.3);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(45, 90, 160, 0.6);
}

.tournament-card-header {
    background: #0c2340;
    position: relative;
    overflow: hidden;
    border-bottom: 9px solid #00ffe7;
    box-shadow: 0 0 18px #00ffe7;
}

.tournament-crown-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.tournament-crown-icon {
    color: #fbbf24;
    font-size: 1rem;
}

.tournament-logo {
    max-height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tournament-title {
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
}

.tournament-description {
    line-height: 1.6;
    font-size: 0.9rem;
    color: #334155;
}

.tournament-dates {
    background: rgba(30, 58, 95, 0.1);
    border: 1px solid rgba(45, 90, 160, 0.2);
}

.tournament-dates-icon {
    color: #1e3a5f;
}

.tournament-dates-text {
    color: #0c2340;
}

.tournament-format-badge {
    background: linear-gradient(45deg, #0c2340, #1e3a5f);
    color: white;
    font-size: 0.75rem;
}

.tournament-view-btn {
    background: linear-gradient(135deg, #0c2340 0%, #1e3a5f 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(12, 35, 64, 0.4);
    transition: all 0.3s ease;
}

.tournament-view-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(12, 35, 64, 0.5);
}

/* Alert Info */
.alert-torneos {
    background: rgba(30, 58, 95, 0.1);
    border: 1px solid rgba(45, 90, 160, 0.3);
    color: #1e3a5f;
}

    /* Mobile: show tournament cards in a single horizontal row (swipeable) */
    @media (max-width: 600px) {
        .torneos-body > .row {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 0.25rem;
            padding-bottom: 0.4rem;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            padding-left: 0.25rem;
        }

        .torneos-body > .row > .col-lg-4,
        .torneos-body > .row > .col-md-6 {
            flex: 0 0 96%;
            max-width: 96%;
            scroll-snap-align: start;
        }

        .torneos-body .tournament-card {
            height: 100%;
        }
    }
    /* Hint shown on mobile to indicate horizontal swipe */
    .torneos-swipe-hint{
        display:none;
        justify-content:center;
        align-items:center;
        gap:0.5rem;
        color: rgba(0,0,0,0.6);
        margin-top:0.5rem;
        font-size:0.9rem;
    }

    .torneos-swipe-hint .swipe-arrows{
        display:inline-block;
        font-size:1.05rem;
        color: rgba(0,0,0,0.55);
        transform: translateX(0);
        animation: swipeHint 1.2s ease-in-out infinite;
    }

    @keyframes swipeHint{
        0%{ transform: translateX(-6px); opacity:0.7 }
        50%{ transform: translateX(6px); opacity:1 }
        100%{ transform: translateX(-6px); opacity:0.7 }
    }

    @media (max-width: 600px){
        .torneos-swipe-hint{ display:flex; }
    }