/* ===================================
   WIDGETS SYSTEM - WebEngine CMS
   Estilos para widgets en hero section
   =================================== */

/* --- CONTENEDORES PRINCIPALES --- */
.hero-widgets-frame {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 0 15px;
}

.hero-widget-box {
    min-width: 250px;
    max-width: 250px;
    flex-shrink: 0;
}

.hero-logo-core {
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-widget-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
    padding: 0 15px;
}

/* --- WIDGET CARD (Wanted / Vicio) --- */
.hero-card {
    background: linear-gradient(135deg, #2a1a4a, #180f2d);
    border: 1px solid rgba(180, 130, 255, 0.35);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: #e8d5ff;
    font-family: 'Lato', Arial, sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.hero-card.no-effects {
    transition: none;
}

.hero-card.no-effects:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* --- IMAGEN DE CLASE --- */
.hero-card .class-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 70px;
    height: 70px;
    opacity: 0.4;
    z-index: 1;
}

.hero-card .class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.hero-card .title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    text-align: center;
    opacity: 0.95;
}

.hero-card .subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
    opacity: 0.8;
}

.hero-card .player {
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-card .meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.hero-card .meta span {
    display: block;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    text-align: center;
}

/* --- WIDGET BADGE (Online) --- */
.hero-badge {
    background: linear-gradient(135deg, #1a4a2a, #0f2d18);
    border: 1px solid rgba(255, 221, 162, 0.25);
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    color: #f1e7cf;
    font-family: 'Lato', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.hero-badge:hover {
    transform: scale(1.05);
}

.hero-badge.no-effects {
    transition: none;
}

.hero-badge.no-effects:hover {
    transform: none;
}

.hero-badge .k {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-badge .v {
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-widgets-frame {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-widget-box {
        max-width: 100%;
        width: 100%;
    }

    .hero-logo-core {
        max-width: 100%;
        width: 100%;
        order: -1; /* Logo primero en móvil */
    }
}

@media (max-width: 768px) {
    .hero-card {
        padding: 14px;
    }

    .hero-card .title {
        font-size: 12px;
    }

    .hero-card .player {
        font-size: 16px;
    }

    .hero-badge {
        padding: 10px 20px;
    }

    .hero-badge .k {
        font-size: 11px;
    }

    .hero-badge .v {
        font-size: 18px;
    }
}

/* --- CLASES DE ESPACIADO DINÁMICO --- */
.hero-section.has-widgets {
    padding-bottom: 20px;
}

.hero-section.no-widgets {
    padding-bottom: 15px;
}
