/* ====================================================================
   MEDFOCO • ATLAS DE OFTALMOLOGIA — PÁGINA PRINCIPAL
   Usado pelo shortcode [mf_oftalmo_atlas].
   Visual padronizado com o Guia de Zoonoses (paleta azul institucional).
   Escopado em .mf-atlas
   ==================================================================== */
/* ===== TOKENS (paleta azul — igual ao Guia de Zoonoses) ===== */
.mf-atlas{
  --mf-blue:#123763;
  --mf-blue-dark:#0e2a4d;
  --mf-blue-deep:#081a31;
  --mf-blue-light:#9db8d6;
  --mf-blue-50:#eef4fb;
  --mf-blue-100:#d6e4f5;
  --mf-accent:#0f9ea8;
  --mf-accent-dark:#0c7f87;
  --mf-ink:#102033;
  --mf-text:#334155;
  --mf-muted:#64748b;
  --mf-line:#e2e8f0;
  --mf-bg:#f6f8fb;
  --mf-card:#ffffff;
  --mf-shadow:0 1px 3px rgba(15,23,42,.05),0 6px 20px rgba(15,23,42,.07);
  --mf-shadow-hover:0 8px 18px rgba(15,23,42,.10),0 22px 48px rgba(15,23,42,.14);
  --mf-radius:14px;
  --mf-maxw:1180px;
  color:var(--mf-text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  box-sizing:border-box;
}
.mf-atlas *,.mf-atlas *::before,.mf-atlas *::after{box-sizing:border-box;}
.mf-atlas img{max-width:100%;display:block;}
.mf-atlas a,.mf-atlas a:hover,.mf-atlas a:visited,.mf-atlas a:focus{text-decoration:none !important;color:inherit;}

.mf-atlas .mf-wrap{max-width:var(--mf-maxw);margin:0 auto;padding:0 40px;}
@media(max-width:680px){.mf-atlas .mf-wrap{padding:0 18px;}}

/* ===== HERO (azul institucional — padrão Zoonoses) ===== */
.mf-atlas .mf-hero{
  background:linear-gradient(135deg,#123763 0%,#0e2a4d 48%,#081a31 100%);
  width:100%;position:relative;overflow:hidden;color:#fff;padding:36px 0 50px;
}
.mf-atlas .mf-hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(650px 360px at 88% -10%,rgba(15,158,168,.30),transparent 58%),
    radial-gradient(480px 340px at 5% 115%,rgba(157,184,214,.22),transparent 58%);
}
.mf-atlas .mf-hero::after{
  content:"";position:absolute;right:-100px;top:-100px;pointer-events:none;
  width:400px;height:400px;border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 0 0 55px rgba(255,255,255,.04),inset 0 0 0 36px rgba(255,255,255,.04);
}
.mf-atlas .mf-hero .mf-wrap{position:relative;z-index:2;}

.mf-atlas .mf-breadcrumb{
  display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  font-size:12.5px;color:rgba(255,255,255,.75);margin-bottom:28px;
}
.mf-atlas .mf-breadcrumb a{color:rgba(255,255,255,.75);transition:color .2s;}
.mf-atlas .mf-breadcrumb a:hover{color:#fff;}
.mf-atlas .mf-breadcrumb .sep{opacity:.45;}
.mf-atlas .mf-breadcrumb .cur{color:#fff;font-weight:600;}

.mf-atlas .mf-hero-tag{
  display:inline-flex;align-items:center;gap:7px;
  background:rgba(255,255,255,.13);backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.2);
  padding:5px 13px;border-radius:999px;
  font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  margin-bottom:14px;color:#fff;
}
.mf-atlas .mf-hero h1{
  font-size:clamp(32px,5vw,52px);line-height:1.05;
  margin:0 0 12px;color:#fff;font-weight:700;letter-spacing:-.01em;
}
.mf-atlas .mf-hero p.lead{
  font-size:clamp(14.5px,1.8vw,17px);color:rgba(255,255,255,.88);
  max-width:690px;margin:0 0 28px;line-height:1.58;
}

/* search */
.mf-atlas .mf-search{position:relative;max-width:590px;}
.mf-atlas .mf-search-box{
  display:flex;align-items:center;gap:10px;
  background:#fff;border-radius:13px;padding:5px 5px 5px 16px;
  box-shadow:0 12px 32px rgba(15,23,42,.24);
}
.mf-atlas .mf-search-box .fa-magnifying-glass{color:var(--mf-muted);font-size:17px;flex:0 0 auto;}
.mf-atlas .mf-search-box input{
  flex:1;border:none;outline:none;font-size:16px;font-weight:500;
  color:var(--mf-ink);background:transparent;padding:10px 0;
}
.mf-atlas .mf-search-box input::placeholder{color:#94a3b8;}
.mf-atlas .mf-search-btn{
  background:var(--mf-blue);color:#fff;border:none;cursor:pointer;
  padding:10px 18px;border-radius:9px;font-weight:600;font-size:13.5px;
  transition:background .2s;white-space:nowrap;
}
.mf-atlas .mf-search-btn:hover{background:var(--mf-blue-dark);}
.mf-atlas .mf-autocomplete{
  position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:30;
  background:#fff;border-radius:13px;box-shadow:0 16px 44px rgba(15,23,42,.22);
  overflow:hidden;display:none;border:1px solid var(--mf-line);
  max-height:360px;overflow-y:auto;
}
.mf-atlas .mf-autocomplete.show{display:block;}
.mf-atlas .mf-ac-item{
  display:flex;align-items:center;gap:11px;padding:10px 15px;cursor:pointer;
  border-bottom:1px solid var(--mf-bg);transition:background .15s;
}
.mf-atlas .mf-ac-item:last-child{border-bottom:none;}
.mf-atlas .mf-ac-item:hover,.mf-atlas .mf-ac-item.active{background:var(--mf-blue-50);}
.mf-atlas .mf-ac-item .dot{
  width:30px;height:30px;border-radius:8px;background:var(--mf-blue-50);
  display:flex;align-items:center;justify-content:center;color:var(--mf-blue);flex:0 0 auto;font-size:13px;
}
.mf-atlas .mf-ac-item .txt{font-size:14px;font-weight:500;color:var(--mf-ink);}
.mf-atlas .mf-ac-item .tagx{margin-left:auto;font-size:11px;color:var(--mf-muted);background:var(--mf-bg);padding:2px 8px;border-radius:999px;}
.mf-atlas .mf-ac-item mark{background:var(--mf-blue-100);color:var(--mf-blue-dark);border-radius:3px;padding:0 2px;}
.mf-atlas .mf-ac-empty{padding:16px;text-align:center;color:var(--mf-muted);font-size:14px;}

/* stat features (vidro fosco — padrão Zoonoses) */
.mf-atlas .mf-hero-stats{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px;}
.mf-atlas .mf-stat-card{
  background:rgba(255,255,255,.12);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;padding:12px 18px;display:flex;align-items:center;gap:12px;min-width:170px;
}
.mf-atlas .mf-stat-card .ico{
  width:40px;height:40px;border-radius:10px;flex:0 0 auto;
  background:rgba(255,255,255,.18);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:18px;
}
.mf-atlas .mf-stat-card b{display:block;font-size:14.5px;color:#fff;font-weight:700;line-height:1.2;}
.mf-atlas .mf-stat-card span{font-size:11.5px;color:rgba(255,255,255,.78);}

/* ===== SECTIONS ===== */
.mf-atlas .mf-section{padding:40px 0;width:100%;}
.mf-atlas .mf-section.alt{background:var(--mf-bg);}

.mf-atlas .mf-section-head{
  display:flex;align-items:center;gap:12px;margin-bottom:22px;flex-wrap:wrap;
}
.mf-atlas .mf-section-head .head-ico{
  width:42px;height:42px;border-radius:11px;flex:0 0 auto;
  background:var(--mf-blue-50);color:var(--mf-blue);
  display:flex;align-items:center;justify-content:center;font-size:19px;
}
.mf-atlas .mf-section-head h2{
  font-size:clamp(22px,2.8vw,28px);color:var(--mf-ink);margin:0;font-weight:800;letter-spacing:-.5px;
}
.mf-atlas .mf-section-head .sub{font-size:13.5px;color:var(--mf-muted);margin-top:2px;}

/* ===== CARD GRID (5 col) ===== */
.mf-atlas .mf-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;}
.mf-atlas .mf-card{
  background:var(--mf-card);border-radius:var(--mf-radius);border:1px solid var(--mf-line);
  box-shadow:var(--mf-shadow);overflow:hidden;display:flex;flex-direction:column;
  transition:transform .25s cubic-bezier(.2,.7,.3,1),box-shadow .25s,border-color .25s;
}
.mf-atlas .mf-card:hover{transform:translateY(-5px);box-shadow:var(--mf-shadow-hover);border-color:var(--mf-blue-light);}
.mf-atlas .mf-card-thumb{
  width:100%;aspect-ratio:16/10;overflow:hidden;position:relative;
  background:linear-gradient(135deg,var(--mf-blue-50),var(--mf-blue-100));
}
.mf-atlas .mf-card-thumb img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;background-color:var(--mf-blue-50);}
.mf-atlas .mf-card-thumb .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--mf-blue);opacity:.4;font-size:30px;}
.mf-atlas .mf-card-bar{
  position:absolute;bottom:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--mf-blue),var(--mf-accent));
  transform:scaleX(0);transform-origin:left;transition:transform .3s ease;z-index:1;
}
.mf-atlas .mf-card:hover .mf-card-bar{transform:scaleX(1);}
.mf-atlas .mf-card-body{padding:16px 16px 15px;display:flex;flex-direction:column;gap:8px;flex:1;}
.mf-atlas .mf-card h3{font-size:15.5px;color:var(--mf-ink);margin:0;font-weight:800;line-height:1.28;}
.mf-atlas .mf-card p{font-size:12.5px;color:var(--mf-muted);margin:0;line-height:1.55;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.mf-atlas .mf-card .mf-explore{
  display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--mf-accent);margin-top:4px;
}
.mf-atlas .mf-card .mf-explore i{transition:transform .2s;font-size:12px;}
.mf-atlas .mf-card:hover .mf-explore i{transform:translateX(4px);}
.mf-atlas .mf-noresult{
  grid-column:1/-1;text-align:center;padding:46px 20px;color:var(--mf-muted);
  background:#fff;border-radius:var(--mf-radius);border:1px dashed var(--mf-line);
}

/* ===== INFO FINAL (azul institucional — padrão Zoonoses) ===== */
.mf-atlas .mf-info{
  position:relative;overflow:hidden;width:100%;
  background:linear-gradient(135deg,#081a31 0%,#0e2a4d 55%,#123763 130%);
  color:#fff;padding:60px 0;
}
.mf-atlas .mf-info::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(500px 300px at 10% 0%,rgba(15,158,168,.18),transparent 58%),
    radial-gradient(500px 340px at 96% 110%,rgba(157,184,214,.20),transparent 58%);
}
.mf-atlas .mf-info .mf-wrap{position:relative;z-index:2;}
.mf-atlas .mf-info-head{text-align:center;max-width:720px;margin:0 auto 44px;}
.mf-atlas .mf-info-head .mf-hero-tag{margin-bottom:14px;}
.mf-atlas .mf-info-head h2{font-size:clamp(24px,3.5vw,36px);margin:0 0 12px;color:#fff;font-weight:700;}
.mf-atlas .mf-info-head p{color:rgba(255,255,255,.82);font-size:15.5px;margin:0;}
.mf-atlas .mf-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.mf-atlas .mf-info-tile{
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);
  border-radius:var(--mf-radius);padding:26px 22px;backdrop-filter:blur(4px);
  transition:transform .25s,background .25s;
  text-align:center;display:flex;flex-direction:column;align-items:center;
}
.mf-atlas .mf-info-tile:hover{transform:translateY(-4px);background:rgba(255,255,255,.11);}
.mf-atlas .mf-info-tile .ico{
  width:46px;height:46px;border-radius:12px;
  background:linear-gradient(135deg,var(--mf-blue),var(--mf-accent));
  display:flex;align-items:center;justify-content:center;color:#fff;margin-bottom:14px;font-size:20px;
}
.mf-atlas .mf-info-tile h3{font-size:17px;margin:0 0 8px;color:#fff;font-weight:600;}
.mf-atlas .mf-info-tile p{color:rgba(255,255,255,.76);font-size:13.5px;margin:0;line-height:1.55;}

/* ===== RESPONSIVE ===== */
@media(max-width:1100px){
  .mf-atlas .mf-grid{grid-template-columns:repeat(3,1fr);}
  .mf-atlas .mf-info-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  .mf-atlas .mf-grid{grid-template-columns:repeat(2,1fr);gap:14px;}
  .mf-atlas .mf-card h3{font-size:14px;}
  .mf-atlas .mf-card p{display:none;}
  .mf-atlas .mf-card-thumb{aspect-ratio:4/3;}
  .mf-atlas .mf-info-grid{grid-template-columns:1fr;}
  .mf-atlas .mf-hero-stats{gap:10px;}
  .mf-atlas .mf-stat-card{flex:1;min-width:0;flex-direction:column;text-align:center;padding:12px 8px;gap:7px;}
  .mf-atlas .mf-stat-card b{font-size:13.5px;}
  .mf-atlas .mf-stat-card span{font-size:10.5px;}
  .mf-atlas .mf-search-btn{padding:10px 13px;}
}

/* ===== ACRÉSCIMOS DA VERSÃO EM ARQUIVOS ===== */
/* acessos reais nos "mais pesquisados" e contador de artigos nas regiões */
.mf-atlas .mf-card .mf-card-views,
.mf-atlas .mf-card .mf-card-count{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;color:var(--mf-muted);font-weight:500;min-height:18px;
}
.mf-atlas .mf-card .mf-card-views i,
.mf-atlas .mf-card .mf-card-count i{font-size:11px;}
.mf-atlas .mf-card .mf-card-count b{color:var(--mf-blue);font-weight:700;}

/* card "% imagens adicionadas" (junto dos quadros do topo) */
.mf-atlas .mf-stat-img-txt{min-width:96px;}
.mf-atlas .mf-stat-bar{display:block;height:4px;margin-top:6px;border-radius:99px;background:rgba(255,255,255,.2);overflow:hidden;}
.mf-atlas .mf-stat-bar span{display:block;height:100%;margin:0;border-radius:inherit;background:#5eead4;}
@media(max-width:640px){
  .mf-atlas .mf-stat-img-txt{min-width:0;width:100%;}
}
