/* scout.css — El Scout Supremo: Estilos de la Cabina y Detección Autónoma */

.scout-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.08);
}

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

.scout-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #d4af37;
    color: #0b1329;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.scout-title {
    margin: 4px 0 2px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.scout-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.scout-meta b {
    color: #e2e8f0;
}

.btn-scout-approve {
    background: #10b981;
    color: #ffffff;
    border: 1px solid #059669;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-scout-approve:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.scout-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.scout-match-pill {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.scout-match-pill .match-no {
    color: #d4af37;
    font-weight: 700;
    margin-right: 4px;
}

.scout-match-pill .match-vs {
    opacity: 0.6;
    font-size: 0.75rem;
    margin: 0 2px;
}

.scout-match-pill .match-stadium {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.natural-payment-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.natural-label {
    display: block;
    font-size: 0.9rem;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.natural-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.natural-input {
    flex: 1;
    min-width: 260px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.natural-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.natural-submit {
    white-space: nowrap;
}

.standings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.standings-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.standings-tab-btn.is-active {
    background: #d4af37;
    color: #0b1329;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.delta-gain {
    color: #10b981;
    font-weight: 800;
    font-size: 0.78rem;
    margin-left: 4px;
}

.delta-loss {
    color: #ef4444;
    font-weight: 800;
    font-size: 0.78rem;
    margin-left: 4px;
}

.delta-equal {
    color: #64748b;
    font-size: 0.78rem;
    margin-left: 4px;
}

.podium-card-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-card-story {
    background: #d4af37;
    color: #0b1329;
    font-weight: 800;
    border: 1px solid #b89628;
    border-radius: 8px;
    padding: 0.65rem 1.1rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-card-story:hover {
    background: #ffd700;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
    color: #000;
}

.btn-card-banner {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-card-banner:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ==========================================================================
   Experiencia Móvil Suprema: Ergonomía de Pulgar, Safe Area y Contraste
   ========================================================================== */

/* 1. Safe-area bottom buffer para que el dock inferior no tape nada */
#main-content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 20px)) !important;
}

/* 1b. Thumb-Zone Priority: Unificación de navegación en móvil */
@media (max-width: 768px) {
    .site-header .main-nav > a[href*="page=dashboard"],
    .site-header .main-nav > a[href*="page=jornada"] {
        display: none !important;
    }
    .site-header .header-inner {
        padding-bottom: 6px !important;
    }
    .site-header .main-nav {
        margin-left: auto;
    }
}

/* 2. Login móvil sin auto-scroll ni cortes */
@media (max-width: 640px) {
    .login-layout {
        display: flex !important;
        flex-direction: column !important;
        padding-top: 0.5rem !important;
    }
    .login-card {
        order: 1 !important;
        margin-top: 0 !important;
    }
    .login-scene {
        order: 2 !important;
        margin-top: 2rem !important;
        opacity: 0.85;
    }
    .login-card h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        line-height: 1.1;
    }
}

/* 3. Corrección de truncamiento en métricas de administración */
.metric-box, .stat-tile, .card-metric {
    min-width: 0;
    overflow: hidden;
}
.metric-box span, .stat-tile span {
    font-size: clamp(0.72rem, 2.4vw, 0.95rem);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 4. Alto contraste en Taquilla Inteligente */
.taquilla-natural-card {
    background: #0f2b1d !important;
    border: 1px solid #2e684a !important;
}
.taquilla-natural-card label span,
.taquilla-natural-hint {
    color: #f1f5f9 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
}
.taquilla-natural-card textarea,
.taquilla-natural-card input[type="text"] {
    background: #06150e !important;
    color: #ffffff !important;
    border: 1px solid #4a7c59 !important;
    font-size: 1rem !important;
}
.taquilla-natural-card textarea::placeholder,
.taquilla-natural-card input[type="text"]::placeholder {
    color: #cbd5e1 !important;
    opacity: 0.9 !important;
}

/* 5. Ergonomía táctil para botones principales */
button, .button, .pick-btn, .couch-dock-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 6. Matriz Emocional en Vivo & Web Share API */
.emotional-impact-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #0f2419 !important;
    border: 1px solid rgba(46, 204, 113, 0.4) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
}

.emotional-impact-banner.is-victory {
    background: linear-gradient(135deg, #2b2206 0%, #15321f 100%) !important;
    border: 1.5px solid #d4af37 !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.emotional-impact-banner.is-gain {
    background: linear-gradient(135deg, #09281a 0%, #061e13 100%) !important;
    border: 1.5px solid #10b981 !important;
}

.emotional-impact-banner.is-loss {
    background: linear-gradient(135deg, #2a0e0e 0%, #170707 100%) !important;
    border: 1.5px solid #ef4444 !important;
}

.emotional-impact-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.emotional-impact-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.emotional-impact-headline {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff !important;
}

.emotional-impact-sub {
    display: block;
    font-size: 0.78rem;
    color: #a7f3d0 !important;
    margin-top: 2px;
}

.emotional-impact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.emotional-pot-pill {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #d4af37;
    color: #fde047;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .emotional-impact-banner {
        padding: 8px 10px;
        margin: 6px 0;
        gap: 6px;
    }
    .emotional-impact-icon {
        font-size: 1.4rem;
    }
    .emotional-impact-headline {
        font-size: 0.88rem;
    }
    .emotional-impact-sub {
        font-size: 0.72rem;
    }
    .emotional-impact-actions {
        gap: 5px;
    }
    .emotional-impact-actions .button,
    .emotional-impact-actions .emotional-pot-pill {
        padding: 4px 6px;
        font-size: 0.75rem;
        min-height: 32px;
    }
}


.web-share-btn {
    border-color: rgba(46, 204, 113, 0.4) !important;
    color: #2ecc71 !important;
    white-space: nowrap;
}

/* Web Push Notifications & Radar Emocional */
.push-optin-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: fadeInPush 0.3s ease-out;
}

@keyframes fadeInPush {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.push-optin-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.push-optin-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.push-optin-text strong {
    display: block;
    font-size: 0.95rem;
    color: #f8fafc;
    font-weight: 700;
}

.push-optin-text p {
    margin: 2px 0 0 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.35;
}

.push-optin-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.push-preference-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    gap: 12px;
}

.push-preference-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.push-preference-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.push-preference-title {
    font-size: 0.95rem;
    color: #ffffff;
    display: block;
}

/* iOS/Android style Switch Toggle */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.switch-toggle input:checked + .switch-slider {
    background-color: #10b981;
}

.switch-toggle input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.switch-toggle input:disabled + .switch-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.push-status-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0.5rem 0;
    transition: color 0.2s ease;
}

.push-status-label.is-active {
    color: #34d399;
    font-weight: 600;
}

/* Live Standings FLIP Animation & Gold/Emerald Highlight */
.live-row-highlight {
    background-color: rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.standings-table tbody tr {
    will-change: transform;
}

.push-notice-text {
    margin: 0;
    font-size: 0.82rem;
}
.push-actions {
    margin-top: 1rem;
}
.push-test-btn[hidden] {
    display: none !important;
}



