/* Arquivo: home.css
 * Coloque em: /wp-content/themes/SEU-TEMA-FILHO/home.css
 */

:root{
  --bg:#F5F7FA; --card:#fff; --text:#0B0F14; --muted:#5B6675; --line:#E6EBF2;
  --blue:#1E63FF; --green:#1F9D5A;
  --shadow:0 10px 30px rgba(0,0,0,.08); --radius:14px;
}

body.page-template-page-home{
  background:var(--bg);
  margin:0;
  color:var(--text);
  font-family:Segoe UI,Tahoma,Verdana,sans-serif;
}

.rh-wrap{ max-width:1100px; margin:0 auto; padding:18px; }

.rh-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.rh-card--big{ padding:18px; }

.rh-hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:12px;
  margin-top:8px;
}
@media (max-width: 920px){
  .rh-hero{ grid-template-columns:1fr; }
}

.rh-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(30,99,255,.10);
  color:var(--blue);
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(30,99,255,.18);
  width:fit-content;
}

.rh-hero h1{
  margin:10px 0 8px;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.02em;
}
@media (max-width: 520px){
  .rh-hero h1{ font-size:28px; }
}

.rh-sub{
  margin:0 0 14px;
  color:var(--muted);
  font-size:15px;
}

.rh-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}

.rh-btn{
  border-radius:12px;
  padding:11px 13px;
  font-weight:900;
  cursor:pointer;
  border:1px solid transparent;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.rh-btn-primary{
  background:var(--blue);
  color:#fff;
  box-shadow:0 8px 18px rgba(30,99,255,.22);
}
.rh-btn-outline{
  background:#fff;
  color:var(--blue);
  border-color:rgba(30,99,255,.35);
}
.rh-btn-ghost{
  background:#fff;
  color:var(--text);
  border-color:var(--line);
}

.rh-metrics{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.rh-metric{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:12px 14px;
}
.rh-metric__num{ font-size:24px; font-weight:950; }
.rh-metric__label{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin-top:2px;
}

.rh-quick{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
@media (max-width: 520px){
  .rh-quick{ grid-template-columns:1fr; }
}

.rh-q{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  text-decoration:none;
  color:var(--text);
  display:flex;
  gap:10px;
  align-items:center;
  transition: transform .08s ease, box-shadow .08s ease;
}
.rh-q:hover{
  transform: translateY(-1px);
  box-shadow:0 12px 26px rgba(0,0,0,.08);
}

.rh-q__icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,32,.06);
  font-size:18px;
}
.rh-q__txt b{ display:block; font-size:14px; }
.rh-q__txt span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  margin-top:2px;
}

.rh-steps{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.rh-steps li{ margin:8px 0; }
.rh-steps b{ color:var(--text); }

.rh-section{ margin-top:14px; }
.rh-section__head{ margin-bottom:10px; }
.rh-section__head h2{ margin:0; font-size:18px; }
.rh-section__head p{ margin:4px 0 0; color:var(--muted); }

.rh-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}
@media (max-width: 920px){
  .rh-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .rh-grid{ grid-template-columns:1fr; }
}

.rh-player{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  text-decoration:none;
  color:var(--text);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: transform .08s ease, box-shadow .08s ease;
}
.rh-player:hover{
  transform: translateY(-1px);
  box-shadow:0 14px 34px rgba(0,0,0,.10);
}

.rh-player__img{
  width:100%;
  height:160px;
  object-fit:cover;
  background:#fff;
}

.rh-player__body{ padding:12px 12px 14px; display:grid; gap:8px; }
.rh-player__name{ font-weight:950; font-size:14px; }

.rh-player__meta{ display:flex; gap:6px; flex-wrap:wrap; }

.rh-tag{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:11px;
  background:rgba(91,102,117,.12);
  color:var(--muted);
}
.rh-tag-blue{
  background:rgba(30,99,255,.12);
  color:var(--blue);
}

.rh-player__pts{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-top:2px;
}
.rh-badge{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(30,99,255,.12);
  color:var(--blue);
  font-weight:950;
  font-size:12px;
}
.rh-player__pts small{ color:var(--muted); font-weight:800; }

.rh-skeleton, .rh-empty{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
  color:var(--muted);
  font-weight:800;
  grid-column: 1 / -1;
}

.rh-final{ margin-top:14px; }
.rh-final__box{
  background:linear-gradient(135deg, rgba(30,99,255,.14), rgba(31,157,90,.10));
  border:1px solid rgba(30,99,255,.18);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow);
}
.rh-final__box h2{ margin:0; font-size:18px; }
.rh-final__box p{ margin:6px 0 0; color:var(--muted); }

/* ===== Ranking ===== */
.rh-rank{
  display:grid;
  gap:10px;
}

.rh-rank__row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
  box-shadow:var(--shadow);
  text-decoration:none;
  color:var(--text);
  transition: transform .08s ease, box-shadow .08s ease;
}
.rh-rank__row:hover{
  transform: translateY(-1px);
  box-shadow:0 14px 34px rgba(0,0,0,.10);
}

.rh-rank__pos{
  width:34px;
  height:34px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  background:rgba(30,99,255,.10);
  color:var(--blue);
  border:1px solid rgba(30,99,255,.18);
  flex:0 0 auto;
}

.rh-rank__img{
  width:44px;
  height:44px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--line);
  background:#fff;
  flex:0 0 auto;
}

.rh-rank__info{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  flex:1 1 auto;
}

.rh-rank__name{
  font-weight:950;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rh-rank__meta{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.rh-rank__pts{
  flex:0 0 auto;
}

/* ===== Modal Editar Perfil ===== */
.rh-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.rh-modal.is-open{ display:block; }

.rh-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(11, 15, 20, .55);
  backdrop-filter: blur(3px);
}

.rh-modal__card{
  position: relative;
  max-width: 520px;
  width: calc(100% - 24px);
  margin: 10vh auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 16px;
}

.rh-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.rh-modal__head h3{
  margin:0;
  font-size:16px;
  font-weight:950;
}

.rh-iconbtn{
  border:1px solid var(--line);
  background:#fff;
  border-radius: 12px;
  width:38px;
  height:38px;
  cursor:pointer;
  font-weight:950;
}

.rh-modal__text{
  margin:10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.rh-form{ display:grid; gap:10px; }
.rh-label{ font-size:12px; font-weight:900; color: var(--text); }

.rh-input{
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  font-weight: 700;
  background:#fff;
}

.rh-input:focus{
  border-color: rgba(30,99,255,.55);
  box-shadow: 0 0 0 4px rgba(30,99,255,.12);
}

.rh-btn-full{ width:100%; justify-content:center; }

.rh-msg{
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}


.hero {
  padding: 60px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: #e9f0ff;
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero-text p {
  font-size: 17px;
  color: #5b6675;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-outline {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: #fff;
}

.btn-ghost {
  border: 1px solid #e6ebf2;
  color: #111827;
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.stat-card strong {
  display: block;
  font-size: 28px;
}

.stat-card span {
  color: #5b6675;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 30px;
  }
}
