/* ==============================================
   IMMORTALS 2026 ARCHITECTURAL CSS - FULL BUILD
   [UPDATED: Donghua Preferat - Poza micșorată]
============================================== */

/* 0. RESET & GLOBAL FIXES */
.imm-ultimate-wrap,
.imm-ultimate-wrap * {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

.imm-ultimate-wrap {
    font-family: 'Outfit', sans-serif;
    background-color: #050507;
    background-image: radial-gradient(circle at 50% 0%, #1a1a24 0%, transparent 60%);
    min-height: 100vh;
    padding: 80px 20px 100px;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* 1. BUTON ACASĂ PLUTITOR */
.imm-home-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.imm-home-btn svg { width: 20px; height: 20px; fill: currentColor; }
.imm-home-btn:hover { background: #fff; color: #000; transform: translateY(-5px); box-shadow: 0 15px 30px rgba(255,255,255,0.3); }

/* 2. TITLURI SECȚIUNI */
.imm-section { margin-bottom: 100px; width: 100%; }
.imm-section-label {
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 18px; font-weight: 700;
    letter-spacing: 5px; text-transform: uppercase; color: #a1a1aa; text-align: center;
    margin-bottom: 60px; display: flex; align-items: center; gap: 20px; justify-content: center;
    position: relative; text-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.imm-section-label::before, .imm-section-label::after { 
    content: ''; flex: 1; max-width: 250px; height: 1px; 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3)); 
}
.imm-section-label::after { background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent); }

/* 3. GRID PRINCIPAL */
.imm-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
    max-width: 1400px; 
    margin: 0 auto; 
    perspective: 2000px; 
}

/* 4. GLASSMORPHISM CARD */
.imm-card {
    width: 320px; 
    background: rgba(15, 15, 20, 0.6); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); 
    border-radius: 28px; 
    position: relative; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d; 
    will-change: transform, box-shadow;
    opacity: 1; 
    transform: translateY(0) scale(1);
}

/* Fallback Animație JS */
.js-imm-ready .imm-card.imm-reveal { opacity: 0; transform: translateY(50px) scale(0.95); }
.js-imm-ready .imm-card.imm-reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* Glow Ambiental Card */
.imm-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
    background: radial-gradient(circle at 50% 0%, var(--glow, rgba(255,255,255,0.1)) 0%, transparent 60%),
                radial-gradient(circle at 50% 100%, var(--glow, rgba(255,255,255,0.1)) 0%, transparent 60%);
    opacity: 0.3; transition: opacity 0.5s ease; z-index: 0;
}
.imm-card:hover { 
    border-color: rgba(255,255,255,0.3); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 35px var(--glow, rgba(255,255,255,0.2)); 
    z-index: 10; 
}
.imm-card:hover::before { opacity: 0.8; }

/* ==============================================
   5. EFECTE VIZUALE ROLURI
============================================== */
.role-fx { 
    position: absolute; inset: 0; z-index: 3; 
    pointer-events: none; overflow: hidden; border-radius: 28px; 
}

/* DEVELOPER Gears */
.developer-fx .gear { position: absolute; font-size: 24px; opacity: 0; filter: drop-shadow(0 0 5px var(--glow)); animation: fallGear linear infinite; }
.developer-fx .g1 { left: 10%; animation-duration: 4s; animation-delay: 0s; font-size: 30px; }
.developer-fx .g2 { left: 80%; animation-duration: 5s; animation-delay: 1.5s; font-size: 20px; }
.developer-fx .g3 { left: 50%; animation-duration: 6s; animation-delay: 2.5s; font-size: 25px; }
.developer-fx .pc-icon { position: absolute; bottom: 180px; right: 20px; font-size: 35px; opacity: 0.8; filter: drop-shadow(0 0 10px var(--glow)); animation: floatPc 3s ease-in-out infinite; }
@keyframes fallGear { 0% { top: -30px; transform: rotate(0deg); opacity: 0; } 20% { opacity: 0.6; } 80% { opacity: 0.6; } 100% { top: 100%; transform: rotate(360deg); opacity: 0; } }
@keyframes floatPc { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* OWNER/FOUNDER Crown */
.founder-fx .crown { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); font-size: 45px; opacity: 0.9; filter: drop-shadow(0 0 15px gold); animation: floatCrown 4s ease-in-out infinite; z-index: 10; }
@keyframes floatCrown { 0%, 100% { transform: translate(-50%, 0) rotate(-5deg); filter: drop-shadow(0 0 15px gold); } 50% { transform: translate(-50%, -15px) rotate(5deg); filter: drop-shadow(0 0 30px gold); } }

/* TRANSLATOR Kanji */
.translator-fx .kanji { position: absolute; font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 900; color: rgba(255,255,255,0.5); text-shadow: 0 0 10px var(--glow); animation: floatKanji ease-in-out infinite; }
.translator-fx .k1 { top: 30%; left: -10px; animation-duration: 5s; }
.translator-fx .k2 { top: 60%; right: -5px; font-size: 20px; animation-duration: 4s; animation-delay: 1s; }
.translator-fx .k3 { top: 15%; right: 20%; font-size: 24px; animation-duration: 6s; animation-delay: 2s; }
@keyframes floatKanji { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; } 50% { transform: translateY(-20px) scale(1.1); opacity: 0.7; } }

/* ENCODER Video Scan */
.encoder-fx .scanline { position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: rgba(255,255,255,0.7); box-shadow: 0 0 15px var(--glow); opacity: 0.6; animation: scanDown 3s linear infinite; }
.encoder-fx .film { position: absolute; bottom: 150px; left: -10px; font-size: 40px; opacity: 0.4; transform: rotate(-90deg); filter: drop-shadow(0 0 8px var(--glow)); animation: spinFilm 10s linear infinite; }
@keyframes scanDown { 0% { top: 0; opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { top: 100%; opacity: 0; } }
@keyframes spinFilm { 0% { transform: rotate(-90deg) translateY(0); } 50% { transform: rotate(-90deg) translateY(10px); } 100% { transform: rotate(-90deg) translateY(0); } }

/* ==============================================
   6. AVATAR & BANNER (Imaginea Principală de Sus)
============================================== */
.imm-card-banner { 
    width: 100%; 
    height: 230px; 
    position: relative; 
    overflow: hidden; 
    flex-shrink: 0; 
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); 
    z-index: 1; 
}
.imm-card-banner img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    object-position: center 20% !important; 
    display: block !important; 
    filter: brightness(0.85) saturate(1.1); 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s; 
}
.imm-card:hover .imm-card-banner img { transform: scale(1.08); filter: brightness(1.1) saturate(1.3); }

/* Overlay gradient pe poză */
.imm-card-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 15, 20, 1) 0%, transparent 80%); }

.imm-status { position: absolute; top: 16px; right: 16px; width: 14px; height: 14px; border-radius: 50%; background: #444; border: 2px solid rgba(15, 15, 20, 0.8); z-index: 4; transition: 0.4s; }
.imm-status.online { background: #10b981; box-shadow: 0 0 15px #10b981, 0 0 30px #10b981; animation: pingOnline 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes pingOnline { 75%, 100% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); } }

/* ==============================================
   7. DETALII CARD (TEXT & STATS)
============================================== */
.imm-card-body { 
    padding: 0 24px 28px; display: flex; flex-direction: column; align-items: center; 
    width: 100%; position: relative; z-index: 2; flex: 1; margin-top: -20px; 
}

.imm-name { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 900; letter-spacing: -0.5px; text-align: center; margin-bottom: 12px; background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6)); }

.imm-roles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; width: 100%; }
.imm-badge { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; border: 1px solid var(--badge-c, #dc2626); color: #fff; background: linear-gradient(90deg, rgba(0,0,0,0.8), rgba(0,0,0,0.4)); box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 15px var(--glow, rgba(220,38,38,0.5)); display: flex; align-items: center; gap: 6px; text-shadow: 0 0 5px rgba(255,255,255,0.5); }

.imm-quote { font-size: 14px; font-style: italic; font-weight: 400; color: #d4d4d8; text-align: center; line-height: 1.6; padding: 16px 20px; background: rgba(255,255,255,0.04); border-radius: 16px; width: 100%; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.08); min-height: 60px; display: flex; align-items: center; justify-content: center; position: relative; backdrop-filter: blur(8px); box-shadow: inset 0 2px 10px rgba(0,0,0,0.3); }
.imm-quote::before { content: '"'; position: absolute; top: 8px; left: 12px; font-size: 35px; color: var(--badge-c, #fff); opacity: 0.3; font-family: serif; }

.imm-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); margin: 20px 0; }

.imm-stats { display: flex; width: 100%; background: rgba(0,0,0,0.4); border-radius: 16px; padding: 14px 0; margin-bottom: 22px; border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 5px 15px rgba(0,0,0,0.5); }
.imm-stat { flex: 1; text-align: center; }
.imm-stat + .imm-stat { border-left: 1px solid rgba(255,255,255,0.1); }
.imm-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 900; color: var(--badge-c, #fff); display: block; line-height: 1; margin-bottom: 6px; text-shadow: 0 0 20px var(--glow); }
.imm-stat-label { font-size: 10px; letter-spacing: 1.5px; color: #a1a1aa; text-transform: uppercase; font-weight: 700; }

.imm-reg { text-align: center; margin-bottom: 22px; }
.imm-reg-date { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: #fff; display: block; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.imm-reg-label { font-size: 10px; letter-spacing: 1.5px; color: #71717a; text-transform: uppercase; font-weight: 700;}

/* ==============================================
   8. DONGHUA PREFERAT (POZA MICȘORATĂ AICI)
============================================== */
.imm-anime { display: flex; align-items: center; gap: 12px; width: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.5)); border-radius: 20px; padding: 12px; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,0.15); margin-bottom: 24px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); overflow: hidden; position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.imm-anime::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transform: translateX(-100%); transition: 0.6s ease; }
.imm-anime:hover { background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(0,0,0,0.7)); border-color: var(--badge-c, #fff); transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 20px var(--glow); }
.imm-anime:hover::before { transform: translateX(100%); }

/* Containerul pozei de la Donghua Preferat (Micșorat) */
.imm-anime-img-wrap { 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    flex-shrink: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.8); 
    border: 1px solid rgba(255,255,255,0.2); 
}
/* Poza de la Donghua Preferat (Micșorată de tot) */
.imm-anime-img { 
    width: 36px; /* Super mică acum! */
    height: 52px; 
    object-fit: cover; 
    display: block; 
    transition: 0.4s; 
}
.imm-anime:hover .imm-anime-img { transform: scale(1.15); filter: contrast(1.1); }

.imm-anime-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.imm-anime-label { font-size: 9px; letter-spacing: 2px; color: var(--badge-c, #fff); text-transform: uppercase; margin-bottom: 4px; font-weight: 800; text-shadow: 0 0 10px var(--glow); }
.imm-anime-title { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 900; background: linear-gradient(90deg, #ffffff, #d4d4d8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* SOCIALS */
.imm-socials { display: flex; gap: 14px; justify-content: center; width: 100%; margin-top: auto; }
.imm-social-btn { width: 46px; height: 46px; border-radius: 16px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; text-decoration: none; color: #d4d4d8; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.imm-social-btn:hover { background: var(--badge-c, #dc2626); color: #fff; transform: translateY(-6px) rotate(8deg) scale(1.1); box-shadow: 0 12px 25px var(--glow); border-color: transparent; }
.imm-social-btn svg { width: 20px; height: 20px; fill: currentColor; transition: 0.3s; }

/* 9. RESPONSIVE MOBILE */
@media (max-width: 768px) { 
    .imm-grid { gap: 25px; } 
    .imm-card { width: 100%; max-width: 350px; } 
    .imm-card-banner { height: 230px; } 
    .imm-home-btn { bottom: 20px; right: 20px; padding: 10px 20px; } 
}