/* MagineerLabs - Estilos de la aplicación */

:root {
    --pred-bg: #f8f9fa;
    --pred-card: #fff;
    --pred-border: #dee2e6;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--pred-bg);
}

/* ===== Vista de predicción - Estilo moderno ===== */
.prediccion-page {
    font-family: 'Outfit', system-ui, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.prediccion-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(165deg, #1a1a2e 0%, #16213e 35%, #0f3460 70%, #1a1a2e 100%);
}

.prediccion-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(233, 69, 96, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.prediccion-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.prediccion-header {
    margin-bottom: 2rem;
}

.prediccion-titulo {
    font-size: 1.5rem;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

/* Reveal container - centrado */
.prediccion-reveal {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
}

/* Flip 3D - voltear como papel */
.prediccion-flip {
    perspective: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prediccion-flip-inner {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.prediccion-flip.revelado .prediccion-flip-inner {
    transform: rotateY(180deg);
}

.prediccion-flip-front,
.prediccion-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 1rem;
}

.prediccion-flip-front {
    transform: rotateY(0deg);
}

.prediccion-flip-back {
    transform: rotateY(180deg);
}

.prediccion-flip-front .misterio-icon {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2) 0%, rgba(100, 116, 139, 0.15) 100%);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: all 0.4s ease;
}

.prediccion-reveal:hover .misterio-icon {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.25) 0%, rgba(100, 116, 139, 0.2) 100%);
    border-color: rgba(148, 163, 184, 0.45);
    transform: scale(1.03);
}

.prediccion-flip-front .misterio-question {
    font-size: 4rem;
    font-weight: 300;
    color: rgba(203, 213, 225, 0.9);
    text-shadow: 0 0 30px rgba(148, 163, 184, 0.3);
}

.prediccion-flip-front .misterio-hint {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(148, 163, 184, 0.8);
    letter-spacing: 0.02em;
}

.prediccion-reveal.revelado {
    cursor: default;
}

.prediccion-footer {
    margin-top: 2rem;
    text-align: center;
}

.prediccion-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(203, 213, 225, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.prediccion-instagram:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.prediccion-instagram .instagram-logo {
    flex-shrink: 0;
}

.carta-prediccion {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 3rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    min-width: 170px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.carta-prediccion.text-danger .carta-valor,
.carta-prediccion.text-danger .carta-pinta {
    color: #f87171 !important;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
}

.carta-prediccion.text-dark .carta-valor,
.carta-prediccion.text-dark .carta-pinta {
    color: #e2e8f0 !important;
    text-shadow: 0 0 20px rgba(226, 232, 240, 0.2);
}

.carta-valor {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.carta-pinta {
    font-size: 4.25rem;
    line-height: 1.1;
    margin-top: -0.1em;
}

.prediccion-texto {
    padding: 2rem 2.25rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.4;
}

.card {
    border-radius: 10px;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
}
