/* =========================
   Tema EdmondUngureanu.ro
   Curatat & consolidat - 2025-11-12
   ========================= */

/* --- Variabile de tema --- */
:root {
  --bg:#0f172a;
  --fg:#e5e7eb;
  --muted:#94a3b8;
  --acc:#38bdf8;
  --card:#111827;
  --dur:2800ms;
  --delayEn:1300ms;
  --delayHeart:800ms;
}

* { box-sizing: border-box; }
html, body { height:100%; }

body {
  margin:0;
  font:16px/1.6 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--fg);
  background:linear-gradient(180deg,#0b1220,#0f172a 35%,#0b1220);
}

a { transition: color .2s ease, opacity .2s ease, background .2s ease; }

/* --- Header / identitate --- */
header {
  max-width:980px;
  margin:0 auto;
  padding:28px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.identity{
  display:flex; align-items:center; gap:14px;
  position:relative; padding-right:22px;
}
.identity::after{
  content:"";
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:1px; height:28px;
  background:linear-gradient(180deg, rgba(148,163,184,.0), rgba(148,163,184,.35), rgba(148,163,184,.0));
  opacity:.7;
}
.who strong{ font-size:18px; }
.who .muted{ display:block; margin-top:2px; }

.badge{
  display:inline-flex; align-items:center; gap:6px; margin-top:6px; padding:4px 10px; border-radius:999px;
  background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.35); color:#cfe9ff; font-size:12px; line-height:1;
  box-shadow:0 0 12px rgba(56,189,248,.25) inset;
}

/* --- Navigatie --- */
nav { display:flex; gap:22px; margin-left:0; }
nav a { color:var(--fg); text-decoration:none; opacity:.9; }
nav a:hover { color:var(--acc); }

/* --- Logo cu glow --- */
.logo{
  position: relative;
  width: 130px;
  height: 110px;
  border-radius: 22px;
  overflow: hidden;
  display: block;

  background-image: url('/poza.php?v=7');
  background-size: cover;
  background-position: 58% 42%;
  background-repeat: no-repeat;

  border: 3px solid var(--acc);
  box-shadow: 0 0 25px rgba(56,189,248,.6);
  animation: pulseGlowLogo 6s ease-in-out infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Animație logo (box-shadow) */
@keyframes pulseGlowLogo {
  0%   { box-shadow:0 0 18px rgba(56,189,248,.4), 0 0 28px rgba(56,189,248,.2); }
  50%  { box-shadow:0 0 38px rgba(56,189,248,.85), 0 0 60px rgba(56,189,248,.55); }
  100% { box-shadow:0 0 18px rgba(56,189,248,.4), 0 0 28px rgba(56,189,248,.2); }
}

/* --- Layout principal --- */
main { max-width:980px; margin:0 auto; padding:32px 20px 64px; }

.hero {
  padding:28px;
  background:rgba(17,24,39,.6);
  border:1px solid rgba(148,163,184,.15);
  border-radius:16px;
  backdrop-filter: blur(6px);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

h1 { margin:0 0 8px 0; font-size:34px; line-height:1.2; letter-spacing:.3px; }
.sub { color:var(--muted); margin:0 0 16px 0; }

section { margin-top:28px; }
.grid { display:grid; gap:16px; grid-template-columns:repeat(12,1fr); }
.card { grid-column: span 12; background:rgba(17,24,39,.6); border:1px solid rgba(148,163,184,.15); border-radius:14px; padding:18px; }
.muted { color:var(--muted); }
footer { max-width:980px; margin:0 auto; padding:32px 20px; color:var(--muted); font-size:14px; }

/* --- CTA / butoane --- */
.cta { display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.btn { padding:10px 16px; border-radius:10px; border:1px solid rgba(148,163,184,.25); background:#111827; color:var(--fg); text-decoration:none; }
.btn.primary { background:var(--acc); color:#031525; border:none; font-weight:600; }
.btn.rca{
  background:linear-gradient(90deg,#0ea5e9,#3b82f6);
  color:#ffed4a !important;
  text-shadow:0 0 12px rgba(255,241,100,0.8);
  border:none;
  font-weight:700;
  text-transform:none !important;
  box-shadow:0 0 20px rgba(59,130,246,.4);
  transition:all .3s ease;
}
.btn.rca:hover{
  background:linear-gradient(90deg,#38bdf8,#60a5fa);
  transform:scale(1.05);
  box-shadow:0 0 30px rgba(56,189,248,.7);
}

/* --- Accente vizuale --- */
.accent { color:#fff6a2; text-shadow:0 0 12px rgba(255,255,150,.9); font-weight:800; }
.accent2{ color:#ffe55c; text-shadow:0 0 10px rgba(255,220,80,.8); font-weight:700; }

.divider{
  width:70px; height:3px; margin:12px auto;
  background:linear-gradient(90deg,#38bdf8,#3b82f6);
  border-radius:3px; box-shadow:0 0 12px rgba(56,189,248,.6);
  transition:all .3s ease;
}
.divider:hover{ width:100px; box-shadow:0 0 16px rgba(56,189,248,.9); }

/* CTA text accent */
.cta small, .cta span, .cta p {
  color:#ffb300 !important;
  text-shadow:0 0 10px rgba(255,191,0,0.7);
}

/* --- Dedicație (vechiul bloc bilingv – păstrat) --- */
.dedicatie{ margin:8px 0 6px 0; line-height:1.55; text-align:left; font-family:'Inter',sans-serif; letter-spacing:.2px; position:relative; max-width:540px; }
.ded-ro{ display:block; font-size:15.5px; color:#93c5fd; font-weight:600; animation:fadeUp var(--dur) ease-out 1; }
.lin-ro{ display:block; margin-top:2px; font-size:14px; color:#93c5fd; opacity:.95; animation:fadeUp var(--dur) ease-out 1; animation-delay:.25s; }
.ded-en{ display:block; margin-top:6px; font-size:13.5px; color:#c6d5ff; opacity:.85; font-style:italic; animation:fadeUp var(--dur) ease-out 1; animation-delay:var(--delayEn); }
.heart{ display:inline-block; margin:6px 8px 0 0; font-size:14px; color:#8ec5ff; transform-origin:center; animation:heartBeat 1400ms ease-out 1; animation-delay:var(--delayHeart); }
.sr-only{ position:absolute; left:-9999px; }
.dedicatie::after{ content:""; display:block; width:64px; height:1px; margin-top:6px; background:linear-gradient(90deg,transparent,#60a5fa,transparent); opacity:.9; }

/* --- Rol / subtitluri --- */
.rol {
  color: #a5b4fc;
  text-shadow:
    0 0 4px rgba(99,102,241,.6),
    0 0 10px rgba(99,102,241,.45),
    0 0 18px rgba(99,102,241,.35);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 2px;
  margin-bottom: 2px;
  line-height: 1.2;
  opacity: 0;
  animation: fadeInSoft 2.4s ease-out .3s forwards, softPulse 10s ease-in-out 3s infinite;
}

/* --- Keyframes generale --- */
@keyframes fadeInSoft {
  0%   { opacity:0; text-shadow:0 0 0 rgba(99,102,241,0); transform:translateY(6px); }
  60%  { opacity:1; text-shadow:0 0 14px rgba(99,102,241,.6); transform:translateY(0); }
  100% { opacity:1; text-shadow:0 0 8px rgba(99,102,241,.4); }
}

@keyframes softPulse {
  0%, 100% {
    text-shadow: 0 0 6px rgba(99,102,241,.25),
                 0 0 12px rgba(99,102,241,.25),
                 0 0 20px rgba(99,102,241,.15);
  }
  50% {
    text-shadow: 0 0 12px rgba(99,102,241,.6),
                 0 0 24px rgba(99,102,241,.5),
                 0 0 32px rgba(99,102,241,.35);
  }
}

@keyframes softBreathe{ 0%,100%{ text-shadow:0 0 6px rgba(147,197,253,.18);} 50%{ text-shadow:0 0 16px rgba(147,197,253,.36);} }
.dedicatie.drift .ded-ro, .dedicatie.drift .lin-ro{ animation:softBreathe 12s ease-in-out infinite 3s; }

@keyframes fadeUp{ 0%{ opacity:0; transform:translateY(8px);} 60%{ opacity:1; transform:translateY(0);} 100%{ opacity:.98;} }
@keyframes heartBeat{ 0%{ transform:scale(0.6); opacity:0;} 40%{ transform:scale(1.25); opacity:1; text-shadow:0 0 14px rgba(255,120,160,.45);} 100%{ transform:scale(1); opacity:.95; text-shadow:none;} }
@keyframes avatarPulse{ 0%{ transform:scale(1); box-shadow:0 0 0 rgba(147,197,253,0);} 35%{ transform:scale(1.02); box-shadow:0 0 28px rgba(147,197,253,.45);} 100%{ transform:scale(1); box-shadow:0 0 8px rgba(147,197,253,.18);} }

/* --- CTA Title --- */
.cta-title{ line-height:1.25; text-align:center; text-wrap:balance; font-size:clamp(16px, 2.1vw, 20px); }
@media (min-width: 900px){ .cta-title{ white-space:nowrap; } }

/* --- Responsive header/nav --- */
@media (max-width: 768px) {
  header{
    display:grid;
    grid-template-columns: auto 1fr;
    align-items:start;
    gap:16px;
    max-width:980px; margin:0 auto; padding:28px 20px;
  }
  header .identity{
    grid-column:1; grid-row:1;
    display:flex; align-items:center; gap:14px;
    padding-right:0;
  }
  .identity::after{ display:none; }
  header nav{
    grid-column:2; grid-row:1;
    justify-self:end;
    display:flex; flex-direction:column; gap:8px;
    margin:0;
    font-size:15px;
  }
  header nav a{ line-height:1.2; }
  .who .rol, .who .muted{ margin-top:4px; margin-bottom:2px; line-height:1.2; }
  .who .badge{ margin-top:8px; margin-bottom:6px; }
}

@media (max-width: 480px){
  .logo{ width:130px; height:110px; }
  .logo img{ object-position:60% 44%; }
}

/* =========================
   Pop-up Contact (vechi)
   ========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
}
.modal-content {
  background-color: #111827;
  color: #e5e7eb;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  animation: slideUpFade 0.45s ease;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.modal-content {
  background-color: #111827;
  color: #e5e7eb;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  animation: slideUpFade 0.45s ease;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* pt iPhone, poți adăuga și asta aici */
}

/* 👇 blocul pentru mobil îl pui exact aici */
@media (max-width: 640px) {
  .modal-content {
    width: 90%;
    max-height: 85vh;
  }
}

.close { 
  float: right; 
  color: #aaa; 
  font-size: 26px; 
  cursor: pointer; 
}



.close { float: right; color: #aaa; font-size: 26px; cursor: pointer; }
.close:hover { color: var(--acc); }

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #1e293b;
  color: #e5e7eb;
  font-size: 15px;
}
.modal-content textarea { resize: none; height: 100px; }

/* Butoane modal vechi */
.btn-trimite {
  background-color: var(--acc);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  transition: all 0.25s ease-in-out;
}
.btn-trimite:hover {
  background-color: #0ea5e9;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

.btn-inchide {
  background-color: #1e293b;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  color: #e5e7eb;
  cursor: pointer;
  margin-left: 10px;
  font-weight: 500;
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.25);
  transition: all 0.25s ease-in-out;
}
.btn-inchide:hover {
  background-color: #334155;
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

/* Animație apariție modal */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Focus vizibil câmpuri */
.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border: 2px solid var(--acc);
  background: #0f172a;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5),
              inset 0 0 6px rgba(56, 189, 248, 0.2);
  transition: all 0.25s ease-in-out;
}

/* =========================
   Dialog Contact accesibil (nou)
   ========================= */
#contactDialog[hidden]{ display:none; }
#contactDialog{
  position:fixed; inset:0; z-index:9999;
  display:grid; place-items:center;
}
.contact__overlay{
  position:absolute; inset:0;
  background:rgba(2,6,23,.65);
  backdrop-filter:saturate(140%) blur(2px);
}
.contact__card{
  position:relative;
  background:#0b1220; color:#e5e7eb;
  width:min(92vw, 560px);
  border-radius:14px; padding:18px 18px 16px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  border:1px solid rgba(148,163,184,.18);
}
.contact__x{
  position:absolute; top:8px; right:10px;
  width:32px; height:32px; border-radius:8px;
  font-size:22px; line-height:28px;
  background:#0f172a; color:#e5e7eb; border:1px solid rgba(148,163,184,.18);
  cursor:pointer;
}
.contact__x:hover{ background:#111827; }
#contactTitle{ margin:6px 0 2px 0; font-size:20px; font-weight:700; }
.contact__help{ margin:0 0 10px 0; font-size:13px; color:#94a3b8; }

.contact__label{ display:block; font-size:14px; margin:10px 0 6px; }
.contact__label input,
.contact__label textarea{
  width:100%; padding:10px 12px; border-radius:10px;
  border:1px solid rgba(148,163,184,.25);
  background:#0f172a; color:#e5e7eb;
  outline:none;
}
.contact__label input:focus,
.contact__label textarea:focus{
  border-color:var(--acc); box-shadow:0 0 0 3px rgba(56,189,248,.18);
}

.contact__actions{ display:flex; gap:10px; margin-top:12px; }
.contact__btn{
  appearance:none; border:0; cursor:pointer;
  padding:10px 14px; border-radius:10px;
  background:#1f2937; color:#e5e7eb; font-weight:600;
  border:1px solid rgba(148,163,184,.18);
}
.contact__btn:hover{ background:#243042; }
.contact__btn--primary{
  background:linear-gradient(180deg,#38bdf8,#2563eb);
  border-color:transparent; color:#fff;
}
.contact__btn--primary[aria-busy="true"]{ opacity:.7; pointer-events:none; }

.contact__live{ min-height:18px; font-size:13px; color:#93c5fd; margin:6px 0; }

/* Honeypot */
.contact__hp{ position:absolute; left:-999em; width:1px; height:1px; opacity:0; }

/* Fix iPhone: previne zoom pe focus */
#contactDialog input,
#contactDialog textarea,
#contactDialog select,
#contactDialog button {
  font-size: 16px !important;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Tastatura: spatiu corect si scroll */
@supports (height: 100dvh) {
  #contactDialog .contact__card { max-height: 90dvh; overflow-y: auto; }
}
@supports not (height: 100dvh) {
  #contactDialog .contact__card { max-height: 90vh; overflow-y: auto; }
}

/* Ecrane mici */
@media (max-width: 600px) {
  #contactDialog .contact__card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    padding-bottom: env(safe-area-inset-bottom);
  }
  #contactDialog input,
  #contactDialog textarea { width: 100%; }
}

/* Blocheaza scroll fundal cand dialogul e deschis */
body.modal-open { overflow: hidden; touch-action: none; }

/* =========================
   Semnătură (badge) în hero
   ========================= */
.hero-name-wrap { position: relative; display: inline-block; padding-top: 36px; }
.edmond-signature {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -8px);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--acc);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 9999px;
  padding: 6px 16px 7px;
  letter-spacing: 0.3px;
  box-shadow: 0 0 12px rgba(56,189,248,0.25);
  text-align: center;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  z-index: 3;
  animation: fadeInSoft 1.2s ease;
  max-width: 95vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .hero-name-wrap { padding-top: 42px; }
  .edmond-signature {
    font-size: 14px;
    padding: 5px 12px;
    transform: translate(-50%, -6px);
  }
}

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

/* Buton Misiunea mea lângă nume */
.btn-misiune {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 14px;
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-misiune:hover {
  background: #38bdf8;
  color: #0f172a;
}


.misiune-inima {
  font-size: 15px;
  color: #a5b4fc;
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.4;
}

/* Efect glow + animație lentă pentru textul de suflet */
.misiune-inima {
  font-size: 15px;
  color: #a5b4fc;
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.45;
  text-shadow: 0 0 6px rgba(165,180,252,0.4),
               0 0 12px rgba(165,180,252,0.25);
  animation: misiuneGlow 6s ease-in-out infinite;
}

@keyframes misiuneGlow {
  0%, 100% {
    text-shadow: 0 0 6px rgba(165,180,252,0.35),
                 0 0 12px rgba(165,180,252,0.20);
    opacity: 0.95;
  }
  50% {
    text-shadow: 0 0 10px rgba(165,180,252,0.75),
                 0 0 20px rgba(165,180,252,0.45);
    opacity: 1;
  }
}






/* =========================
   Dedicație „scris de mână”
   ========================= */
/* (asigură-te că fontul Great Vibes e încărcat din <head>) */
.dedicatie-container {
  position: relative;
  text-align: center;
  margin: 50px 0 30px;
}
/* === dedicatie familie (aliniere stanga + text mai mic, cu fade-in) === */
.dedicatie-suflet {
  text-align: justify !important;
  text-align-last: left;
  letter-spacing: 0.1px;
  font-size: 16px !important;
  line-height: 1;
  max-width: 500px;
  margin: 0.3em 0 0em 0px !important; /* ajustat exact la poza */
  padding-right: 10px;
  color: #a5b4fc;
  animation: fadeInText 1.6s ease-out forwards, pulseGlowText 5s ease-in-out infinite 1.6s;
}

.no-break { white-space: nowrap; }


.inima-dreapta {
  position: static;
  display: inline;
  margin-left: 8px;
  margin-top: -2px;
  font-size: 16px;
  animation: pulseHeart 2s infinite;
  vertical-align: baseline;
}

/* Animații dedicație (text) */
@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlowText {
  0%, 100% { text-shadow: 0 0 10px rgba(56,189,248,.5), 0 0 18px rgba(56,189,248,.25); }
  50%      { text-shadow: 0 0 18px rgba(56,189,248,.8), 0 0 28px rgba(56,189,248,.4); }
}
@keyframes pulseHeart {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.25); opacity: 1; }
}
.inima-dreapta {
  animation: pulseHeart 2.8s ease-in-out infinite; /* mai lent, mai natural */
}

/* =========================
   Buton Contact: vizibilitate by breakpoint
   ========================= */
/* Desktop (≥768px): ascunde butonul mare din hero; foloseste in meniu */
@media (min-width: 768px) {
  .hero .btn.primary { display: none; }
  nav #btnContact {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(56,189,248,.35);
    transition: all 0.25s ease;
  }
  nav #btnContact:hover {
    background: linear-gradient(180deg,#38bdf8,#2563eb);
    color: #fff;
    box-shadow: 0 0 16px rgba(56,189,248,.55);
  }
}

/* Mobil (<768px): buton mare in hero; in meniu dispare */
@media (max-width: 767px) {
  nav #btnContact { display: none; }
  .hero .btn.primary{
    display:inline-flex; align-items:center; justify-content:center;
    font-size:17px; padding:12px 22px; border-radius:10px;
    background: linear-gradient(90deg,#38bdf8,#2563eb); color:#fff;
    box-shadow:0 0 20px rgba(56,189,248,.40);
  }
}


/* pune asta DUPA orice alte stiluri globale de <a> */
.dedicatie-suflet a.link-rca,
.dedicatie-suflet a.link-rca:link,
.dedicatie-suflet a:visited {
  color: #3dd5c0;         /* turcoaz calm */
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(61,213,192,.5);
  transition: all .4s ease;
}

.dedicatie-suflet a:hover,
.dedicatie-suflet a:focus {
  color: #5ef0db;         /* un pic mai deschis la hover */
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(94,240,219,.9), 0 0 20px rgba(94,240,219,.6);
  transform: scale(1.02);
}
body{outline:3px solid red!important}






/* Tooltip rosu RcaPedia */
.tooltip-rca{ 
  position: relative; 
  display: inline-block;           /* important la link-uri inline */
  text-decoration: none;
  color: #38bdf8;
  font-weight: 600;
}

.tooltip-rca .tooltiptext{
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: #ef4444;             /* rosu */
  color: #fff;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);

  /* ascuns implicit */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  /* animatie */
  transition: opacity .3s ease, box-shadow .3s ease;
}

.tooltip-rca:hover .tooltiptext{
  visibility: visible !important;  /* fortam in caz de override */
  opacity: 1 !important;
  box-shadow: 0 0 18px rgba(255,60,60,.9), 0 0 30px rgba(255,100,100,.6);
  text-shadow: 0 0 8px #fff;
}




/* Badge RCApedia in linie cu titlul "AI la vedere." */
.ai-title{
  display:flex;
  align-items:center;
  gap:.6em;          /* distanța dintre text și badge */
  flex-wrap:wrap;    /* pe mobil poate coborî pe rândul 2 */
  margin-bottom:.5rem;
}

.rcapedia-inline-badge a{
  display:inline-block;
  background:#ef4444;
  color:#fff !important;     /* anulează mov/albastru de link */
  font-weight:700;
  font-size:13px;
  padding:4px 10px;
  border-radius:8px;
  text-decoration:none;
  box-shadow:0 0 15px rgba(255,60,60,.7);
  transition:transform .2s ease, box-shadow .3s ease;
  white-space:nowrap;
  animation:pulseRCA 2.5s ease-in-out infinite;
}

.rcapedia-inline-badge a:hover{
  transform:scale(1.05);
  box-shadow:0 0 25px rgba(255,80,80,1);
}

@keyframes pulseRCA{
  0%,100%{ box-shadow:0 0 10px rgba(255,60,60,.5); }
  50%    { box-shadow:0 0 25px rgba(255,60,60,.9); }
}


