/* ==========================================================================
   PROIECTIO HIGH-VOLTAGE 3D CARDS & DOPAMINE ENGINE STYLES
   ========================================================================== */

:root {
    --glow-cyan: rgba(0, 195, 255, 0.45);
    --glow-gold: rgba(245, 158, 11, 0.5);
    --glow-purple: rgba(139, 92, 246, 0.5);
    --glow-emerald: rgba(16, 185, 129, 0.5);
    --glow-magenta: rgba(236, 72, 153, 0.5);
    --glow-glitch: rgba(234, 179, 8, 0.6);
}

/* --- BARRA DE TELEMETRÍA SUPERIOR & HUD FE --- */
.telemetry-bar {
    background: #050811;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.75rem;
    position: sticky;
    top: 57px;
    z-index: 990;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    gap: 10px;
}

.telemetry-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-minds-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 195, 255, 0.1);
    border: 1px solid rgba(0, 195, 255, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    color: #00c3ff;
    font-weight: bold;
    letter-spacing: 1px;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #ff3b30;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
    box-shadow: 0 0 8px #ff3b30;
}

@keyframes live-pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* Ticker de Actividad Comunitaria */
.telemetry-center {
    flex: 1;
    min-width: 250px;
    max-width: 550px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    color: #8e9bb0;
    font-size: 0.72rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ticker-tag {
    color: #00c3ff;
    font-weight: bold;
    margin-right: 5px;
}

/* HUD Saldo FE */
.fe-hud-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(8, 28, 46, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(0, 195, 255, 0.4);
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.15);
    transition: all 0.25s ease;
    user-select: none;
}

.fe-hud-box:hover {
    transform: translateY(-2px);
    border-color: #00c3ff;
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.4);
}

.fe-hud-icon {
    font-size: 0.9rem;
    animation: coin-spin 6s infinite linear;
}

.fe-hud-amount {
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.fe-hud-unit {
    color: #00c3ff;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Toast flotante de +FE (Lectura Cómoda y Alto Contraste) */
.fe-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(6, 12, 22, 0.94);
    border: 1px solid #00c3ff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 195, 255, 0.35), inset 0 0 15px rgba(0, 195, 255, 0.12);
    backdrop-filter: blur(12px);
    z-index: 10000;
    animation: toast-pop 4.6s forwards ease-out;
    pointer-events: none;
    font-family: 'Consolas', 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes toast-pop {
    0% { opacity: 0; transform: translateY(25px) scale(0.92); }
    8% { opacity: 1; transform: translateY(0) scale(1.02); }
    12% { transform: translateY(0) scale(1); }
    88% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* --- GRID DE TARJETAS 3D HIGH-VOLTAGE --- */
.cards-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 25px;
    max-width: 1280px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.proiect-3d-card {
    position: relative;
    height: 440px;
    background: #080c14;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

/* Spotlight Glow dinámico que sigue al cursor */
.proiect-3d-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--card-glow, var(--glow-cyan)),
        transparent 75%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.proiect-3d-card:hover::before {
    opacity: 0.5;
}

/* Borde perimetral dinámico */
.proiect-3d-card:hover {
    border-color: rgba(0, 195, 255, 0.6);
    box-shadow: 0 20px 45px rgba(0, 195, 255, 0.25);
}

/* Media Box (Video / Póster) */
.card-media-box {
    position: relative;
    width: 100%;
    height: 60%;
    overflow: hidden;
    background: #000;
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.proiect-3d-card:hover .card-video {
    opacity: 1;
}

.proiect-3d-card:hover .card-poster {
    transform: scale(1.06);
}

/* Info & Content Box */
.card-info-box {
    position: relative;
    padding: 18px;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.8) 0%, #050811 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 4;
    transform: translateZ(20px);
}

.card-badge-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.card-badge {
    font-family: 'Consolas', monospace;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-nivel7 {
    background: rgba(0, 195, 255, 0.15);
    color: #00c3ff;
    border: 1px solid #00c3ff;
}

.badge-popular {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid #10b981;
}

.badge-epico {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.badge-sensorial {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid #ec4899;
}

.badge-lore {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid #a78bfa;
}

.badge-glitch {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid #eab308;
    animation: badge-glitch-pulse 2s infinite;
}

@keyframes badge-glitch-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(234, 179, 8, 0.3); }
    50% { box-shadow: 0 0 15px rgba(234, 179, 8, 0.8); }
}

.card-title-3d {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.card-desc-3d {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.card-fe-cost {
    font-family: 'Consolas', monospace;
    font-size: 0.75rem;
    color: #00c3ff;
    font-weight: bold;
}

.card-cta-btn {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-cta-btn::after {
    content: "→";
    transition: transform 0.2s ease;
}

.proiect-3d-card:hover .card-cta-btn::after {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .telemetry-bar { font-size: 0.65rem; padding: 8px 12px; }
    .telemetry-center { order: 3; width: 100%; max-width: 100%; margin-top: 4px; }
    .cards-showcase-grid { grid-template-columns: 1fr; }
    .proiect-3d-card { height: 380px; }
}
