/* ==========================================================================
 * Sportsbook (Apuestas Deportivas) — full-screen iframe modal
 * Palette: purple-dominant (#1a0a2e / #2d1150 / #3d1a6a) + gold accents.
 * NO cyan. Reuses the glassmorphism / cl-modal language of the site.
 * ====================================================================== */

.sportsbook-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    flex-direction: column;
    background: linear-gradient(160deg, #1a0a2e 0%, #2d1150 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sportsbook-modal.active {
    display: flex;
    opacity: 1;
}

.sportsbook-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.18);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    flex: 0 0 auto;
}

.sportsbook-modal__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #ECE6F7;
    letter-spacing: 0.01em;
}

.sportsbook-modal__title i {
    width: 20px;
    height: 20px;
    color: #FFD700;
}

.sportsbook-modal__badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.sportsbook-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.sportsbook-badge--betslip {
    color: #1a0a2e;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.sportsbook-badge--balance {
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.sportsbook-modal__controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.sportsbook-ctrl {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background: rgba(61, 26, 106, 0.55);
    color: #ECE6F7;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.sportsbook-ctrl:hover {
    background: rgba(61, 26, 106, 0.9);
    border-color: rgba(255, 215, 0, 0.45);
    transform: translateY(-1px);
}

.sportsbook-ctrl svg {
    width: 18px;
    height: 18px;
}

.sportsbook-modal__close {
    margin-left: 6px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background: rgba(61, 26, 106, 0.55);
    color: #ECE6F7;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.sportsbook-modal__close:hover {
    background: rgba(61, 26, 106, 0.9);
    transform: translateY(-1px);
}

.sportsbook-modal__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.sportsbook-iframe-container,
.sportsbook-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.sportsbook-iframe-container {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.sportsbook-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(160deg, #1a0a2e 0%, #2d1150 100%);
    color: #ECE6F7;
    z-index: 2;
}

.sportsbook-loading__spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.18);
    border-top-color: #FFD700;
    animation: sb-spin 0.9s linear infinite;
}

.sportsbook-loading__text {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #b9a9d6;
}

@keyframes sb-spin {
    to { transform: rotate(360deg); }
}

/* Floating-island nav button accent for sportsbook */
.island-btn[data-action="sportsbook"] i {
    color: inherit;
}

@media (max-width: 768px) {
    .sportsbook-modal__title { font-size: 0.95rem; }
    .sportsbook-modal__header { padding: 10px 12px; }
    /* Leave room for the floating island on mobile when content drives height */
    .sportsbook-iframe-container { padding-bottom: env(safe-area-inset-bottom, 0); }
}

/* ==========================================================================
 * "Próximamente" (coming soon) modal — centered glass card shown while the
 * sportsbook is gated off. Same purple/gold language; hidden by default.
 * ====================================================================== */
.sportsbook-soon {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 4, 22, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sportsbook-soon.active {
    display: flex;
    opacity: 1;
}

.sportsbook-soon__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 36px 28px 30px;
    text-align: center;
    border-radius: 22px;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: linear-gradient(160deg, rgba(45, 17, 80, 0.96) 0%, rgba(26, 10, 46, 0.98) 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 215, 0, 0.12);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.22s ease;
}

.sportsbook-soon.active .sportsbook-soon__card {
    transform: translateY(0) scale(1);
}

.sportsbook-soon__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(61, 26, 106, 0.5);
    color: #ECE6F7;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sportsbook-soon__close:hover {
    background: rgba(61, 26, 106, 0.9);
}

.sportsbook-soon__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: radial-gradient(circle at 50% 35%, rgba(255, 215, 0, 0.22), rgba(61, 26, 106, 0.4));
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.18);
}

.sportsbook-soon__icon i,
.sportsbook-soon__icon svg {
    width: 38px;
    height: 38px;
    color: #FFD700;
}

.sportsbook-soon__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a0a2e;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.sportsbook-soon__title {
    margin: 0 0 12px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #F4EEFF;
}

.sportsbook-soon__text {
    margin: 0 0 26px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.97rem;
    line-height: 1.6;
    color: #c4b4e0;
}

.sportsbook-soon__ok {
    display: inline-block;
    min-width: 160px;
    padding: 13px 28px;
    border: 0;
    border-radius: 14px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #1a0a2e;
    cursor: pointer;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 10px 24px rgba(255, 165, 0, 0.28);
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.sportsbook-soon__ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 165, 0, 0.4);
}

.sportsbook-soon__ok:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .sportsbook-soon__card { padding: 32px 20px 26px; }
    .sportsbook-soon__title { font-size: 1.25rem; }
    .sportsbook-soon__text { font-size: 0.92rem; }
}
