/* ============================================================
   🎁 SORTEOS YOUTUBE — PREMIUM UI
   Usa variables del main.css: --mlf-primary, --mlf-radius, etc.
============================================================ */

.raffle-page {
    position: relative;
}

.raffle-hero-premium {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #faf7ff 55%, #f6f3ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(124, 58, 237, 0.08);
    overflow: hidden;
}

.raffle-hero-icon {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mlf-primary), var(--mlf-primary-dark));
    color: #fff;
    box-shadow: 0 18px 35px rgba(124, 58, 237, 0.28);
}

.raffle-soft-badge {
    background: rgba(124, 58, 237, 0.09);
    color: var(--mlf-primary);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.raffle-admin-card {
    border-radius: 26px;
    overflow: hidden;
}

.raffle-admin-head {
    background: linear-gradient(135deg, var(--mlf-primary), var(--mlf-primary-dark));
    color: #fff;
    padding: 22px;
}

.raffle-admin-head h4,
.raffle-admin-head p {
    color: #fff;
}

.raffle-form-box {
    padding: 24px;
}

.raffle-input-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.09);
    color: var(--mlf-primary);
    flex-shrink: 0;
}

.raffle-locked-card {
    background: linear-gradient(135deg, #fff, #faf7ff);
    border: 1px dashed rgba(124, 58, 237, 0.35);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
}

.raffle-history-wrapper {
    display: grid;
    gap: 18px;
}

.raffle-history-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: var(--mlf-shadow);
    overflow: hidden;
    transition: all .25s ease;
}

.raffle-history-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mlf-shadow-hover);
}

.raffle-video-thumb {
    position: relative;
    width: 220px;
    min-height: 135px;
    overflow: hidden;
    background: #111;
    flex-shrink: 0;
}

.raffle-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.raffle-history-card:hover .raffle-video-thumb img {
    transform: scale(1.06);
    opacity: .92;
}

.raffle-youtube-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.raffle-status-badge {
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .75rem;
    font-weight: 800;
}

.raffle-stat-mini {
    background: #faf7ff;
    border-radius: 16px;
    padding: 10px 12px;
    min-width: 90px;
    text-align: center;
}

.raffle-stat-mini strong {
    display: block;
    font-size: 1.1rem;
    color: var(--mlf-text);
    line-height: 1;
}

.raffle-stat-mini span {
    font-size: .75rem;
    color: var(--mlf-text-light);
}

.raffle-title-link {
    color: var(--mlf-text);
    text-decoration: none !important;
    font-weight: 800;
    line-height: 1.25;
}

.raffle-title-link:hover {
    color: var(--mlf-primary);
}

.raffle-empty-state {
    background: linear-gradient(135deg, #fff, #faf7ff);
    border: 1px dashed rgba(124, 58, 237, .32);
    border-radius: 24px;
    padding: 44px 28px;
    text-align: center;
}

.raffle-empty-icon {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, .09);
    color: var(--mlf-primary);
    font-size: 2rem;
}

.raffle-action-btn {
    white-space: nowrap;
}

@media (max-width: 991px) {
    .raffle-video-thumb {
        width: 100%;
        height: 210px;
    }

    .raffle-history-card .d-flex {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .raffle-hero-premium {
        padding: 24px;
        border-radius: 22px;
    }

    .raffle-video-thumb {
        height: 180px;
    }

    .raffle-form-box {
        padding: 20px;
    }
}

/* ============================================================
   🎁 DETALLE DEL SORTEO — PREMIUM
============================================================ */

.raffle-detail-hero {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fbf8ff 60%, #f6f3ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(124, 58, 237, 0.08);
}

.raffle-detail-thumb {
    position: relative;
    min-height: 320px;
    height: 100%;
    background: #111827;
    overflow: hidden;
}

.raffle-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, opacity .35s ease;
}

.raffle-detail-hero:hover .raffle-detail-thumb img {
    transform: scale(1.04);
    opacity: .94;
}

.raffle-detail-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .72));
}

.raffle-thumb-content {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    color: #fff;
}

.raffle-thumb-content small,
.raffle-thumb-content span,
.raffle-thumb-content strong {
    color: #fff;
}

.raffle-play-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--mlf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
    margin-bottom: 14px;
}

.raffle-detail-content {
    padding: 34px;
}

.raffle-video-title {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--mlf-text);
}

.raffle-question-box {
    background: #fff;
    border: 1px solid rgba(124, 58, 237, .10);
    border-left: 5px solid var(--mlf-primary);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(124, 58, 237, .06);
}

.raffle-question-box p {
    margin-bottom: 0;
    color: var(--mlf-text-light);
}

.raffle-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.raffle-kpi-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, .08);
    box-shadow: var(--mlf-shadow);
    padding: 22px;
    height: 100%;
    transition: all .25s ease;
}

.raffle-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mlf-shadow-hover);
}

.raffle-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(124, 58, 237, .09);
    color: var(--mlf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.raffle-kpi-card h3,
.raffle-kpi-card h5 {
    margin-bottom: 2px;
}

.raffle-winner-premium {
    background:
        radial-gradient(circle at top right, rgba(255, 193, 7, .18), transparent 35%),
        linear-gradient(135deg, #fff 0%, #fffaf0 100%);
    border: 1px solid rgba(255, 193, 7, .22);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 14px 35px rgba(255, 193, 7, .10);
}

.raffle-winner-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.raffle-winner-empty {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .09);
    color: var(--mlf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    margin: 0 auto 18px;
}

.raffle-admin-panel {
    background: linear-gradient(135deg, #ffffff, #faf7ff);
    border: 1px solid rgba(124, 58, 237, .12);
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--mlf-shadow);
}

.raffle-comment-list {
    display: grid;
    gap: 14px;
}

.raffle-comment-card {
    background: #fff;
    border: 1px solid rgba(124, 58, 237, .08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(124, 58, 237, .05);
    transition: all .25s ease;
}

.raffle-comment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mlf-shadow-hover);
}

.raffle-comment-card.is-winner {
    border-color: rgba(255, 193, 7, .45);
    background: linear-gradient(135deg, #fff, #fffaf0);
}

.raffle-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.raffle-comment-avatar-empty {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .09);
    color: var(--mlf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.raffle-comment-text {
    color: var(--mlf-text-light);
    font-size: .95rem;
    line-height: 1.55;
}

.raffle-modal-winner {
    background:
        radial-gradient(circle at top, rgba(124, 58, 237, .10), transparent 38%),
        #fff;
    border-radius: 22px;
}

@media (max-width: 991px) {
    .raffle-detail-thumb {
        min-height: 240px;
    }

    .raffle-detail-content {
        padding: 26px;
    }

    .raffle-video-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 576px) {
    .raffle-detail-hero {
        border-radius: 22px;
    }

    .raffle-detail-content {
        padding: 22px;
    }

    .raffle-detail-thumb {
        min-height: 210px;
    }

    .raffle-detail-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   🎁 AJUSTES FINOS DETALLE SORTEO
============================================================ */

.raffle-winner-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.10);
    color: var(--mlf-primary);
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
}

.raffle-comment-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.raffle-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    min-height: 32px;
    white-space: nowrap;
}

.raffle-mini-badge.valid {
    background: #198754;
    color: #fff;
}

.raffle-mini-badge.invalid {
    background: #dc3545;
    color: #fff;
}

.raffle-mini-badge.likes {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.raffle-mini-badge.winner {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
}

.raffle-comment-card .badge {
    box-shadow: none !important;
}

.raffle-comment-card h6 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.raffle-winner-premium h3 {
    word-break: break-word;
}

@media (max-width: 576px) {
    .raffle-comment-meta-badges {
        gap: 6px;
    }

    .raffle-mini-badge {
        font-size: 0.74rem;
        padding: 5px 8px;
        min-height: 30px;
    }
}
