/* =========================
   ÜZENŐFAL – HÁTTÉRKÉPES STÍLUS
   ========================= */

.news-wall{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,.6);
  max-width:100%;
}

/* háttérkép */
.news-wall::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    url("../img/orszagalma.jpg") center center / cover no-repeat;
  opacity: 0.55;
  z-index:0;
}

/* sötét overlay olvashatóság miatt */
.news-wall::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.45) 0%,
      rgba(0,0,0,.35) 40%,
      rgba(0,0,0,.85) 100%
    );
  z-index:1;
}

/* tartalom a kép felett */
.news-wall > *{
  position:relative;
  z-index:2;
}

/* fejléc */
.news-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  min-width:0;
}

.news-title b{
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.4px;
}

/* meta */
.news-meta{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.15);
  color:#fff;
}

/* szöveg */
.news-body{
  font-size:15px;
  line-height:1.6;
  font-weight:500;
  color:#fff;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.news-empty{
  color: rgba(255,255,255,.7);
  font-size:13px;
}

.news-icon{
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  opacity: .95;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.55));
}

@media (max-width: 640px){
  .news-icon{ width: 20px; height: 20px; }
}

/* =========================
   FIX: LANDSCAPE PHONE OVERFLOW
   ========================= */

/* 1) Mindent tartsunk a viewporton belül */
html, body { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

/* 2) Ha keskeny a kijelző (pl. telefon landscape), ne legyen 2 oszlopos layout */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}

/* 4) Kártyák/üzenőfal ne tudjon “szélesedni” hosszú szövegtől */
.card, .news-wall { max-width: 100%; }
.news-body{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== HEADER MENU ===== */
.header-right.nav{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

.menu-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#000;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.25px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e5e5e5;
  background:#fff;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}

.menu-btn::before{
  content:"☰";
  display:inline-block;
  margin-right:8px;
  font-size:20px;
  line-height:1;
  transition:transform .25s ease;
}

.menu-btn:hover{
  border-color: var(--red);
  color: var(--red);
  background: rgba(196,22,28,.08);
}

.menu-btn[aria-expanded="true"]{
  border-color: var(--red);
  color: var(--red);
  background: rgba(196,22,28,.12);
}

.menu-btn[aria-expanded="true"]::before{
  transform: rotate(90deg);
}

.mobile-menu{
  position:absolute;
  right:14px;
  top: calc(100% + 10px);
  min-width: 190px;
  background:#fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  padding: 8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index: 999;
}

.mobile-link{
  color:#000;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.25px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e5e5e5;
  background:#fff;
  transition:.15s ease;
}

.mobile-link:hover{
  border-color: var(--red);
  color: var(--red);
}

.mobile-link.is-active{
  border-color: var(--red);
  color: var(--red);
  background: rgba(196,22,28,.08);
}

.mobile-link.admin-entry{
  font-weight: 1000;
}

[hidden] { display: none !important; }

@media (max-width: 640px){
  .menu-btn{
    padding:8px 10px;
    font-size:13px;
  }

  .menu-btn::before{
    font-size:18px;
  }

  .mobile-menu{
    right:0;
    left:auto;
    min-width:170px;
    max-width:min(240px, calc(100vw - 32px));
  }

  .mobile-link{
    padding:9px 10px;
    font-size:13px;
  }
}

/* =========================
   PLAYER CARD – BACKGROUND IMAGE
   ========================= */

#playerCard{
  position: relative;
  overflow: hidden;
  background: none;
  max-width:100%;
}

#playerCard::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.58)),
    url("../img/bg-meccsek.jpeg") center / cover no-repeat;
  z-index:0;
  filter: saturate(0.9) contrast(1.05);
}

#playerCard::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,.65) 100%
  );
  z-index:1;
}

#playerCard > *{
  position: relative;
  z-index:2;
}

/* üveg-fejléc */
#playerCard .card-header{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
}

/* ✅ belső elemek ne lógjanak ki */
#playerCard .card-body{ overflow: hidden; }
#playerCard .kv,
#playerCard .form-row{
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

/* olvashatóság */
#playerCard .kv{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 12px;
}

#playerCard .form-row{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 12px;
  border-top: none;
}

/* extra: a forma badge-ek se tudjanak kilógni */
#playerCard .form{ max-width: 100%; }

/* =========================================================
   ✅ PLAYER CARD ANIMÁCIÓ
   ========================================================= */

#playerCard .player-content{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height .45s ease,
    opacity .22s ease,
    transform .22s ease,
    filter .18s ease;
  will-change: max-height, opacity, transform;
}

#playerCard.is-open .player-content{
  opacity: 1;
  transform: translateY(0);
}

#playerCard .player-content.is-fading{
  opacity: .18;
  transform: translateY(2px);
  filter: blur(.35px);
}

/* =========================
   MECCSEK KÁRTYA HÁTTÉR
   ========================= */

.matches-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  max-width:100%;
}

.matches-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/mezek.png") center center / cover no-repeat;
  opacity: 0.55;
  z-index: 0;
  border-radius: inherit;
}

.matches-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.9) 100%
  );
  z-index: 1;
  border-radius: inherit;
}

.matches-card .card-header,
.matches-card .card-body{
  position: relative;
  z-index: 2;
}

/* EXTRA: nagyon alacsony landscape footer (biztonsági) */
@media (orientation: landscape) and (max-height: 450px){
  .footer-inner{
    height:auto;
    min-height:80px;
    padding:8px 12px;
  }
  .partner-logo{
    height:36px;
    max-width:16vw;
  }
  .footer-players{
    height:60px;
    max-width:30vw;
  }
}

/* =========================
   KOMMENTFAL
   ========================= */

.comment-wall-layout{
  max-width: 860px;
  margin: 0 auto;
}

.comment-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.comment-form-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field label{
  font-size:13px;
  color:var(--muted);
}

.field input,
.field textarea{
  width:100%;
  background: rgba(0,0,0,.4);
  border:1px solid var(--line2);
  border-radius:12px;
  color:#fff;
  padding:12px 14px;
  font:inherit;
  outline:none;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(196,22,28,.65);
  box-shadow: 0 0 0 1px rgba(196,22,28,.25);
}

.field textarea{
  resize: vertical;
  min-height: 120px;
}

.comment-form-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.comment-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
  color:var(--muted);
}

.comments-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.comment-item{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px;
}

.comment-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  flex-wrap:wrap;
}

.comment-name{
  font-weight:800;
  font-size:14px;
}

.comment-date{
  font-size:12px;
  color:var(--muted);
}

.comment-message{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.55;
  font-size:14px;
}

@media (max-width: 640px){
  .comment-form-bottom{
    align-items:stretch;
  }

  .comment-form-bottom .btn{
    width:100%;
  }
}


/* =========================
   FORUM PAGINATION – SIMPLE + COMPACT
   ========================= */
.comment-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  gap:6px;
  width:100%;
  margin-top:14px;
}

.page-btn,
.page-indicator{
  min-height:32px;
  padding:5px 9px;
  border-radius:8px;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
  flex:0 0 auto;
}

.page-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid var(--line2);
  background:var(--panel);
  color:var(--text);
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}

.page-btn:hover:not(:disabled){
  border-color:rgba(196,22,28,.35);
  background:var(--panel2);
}

.page-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.page-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  font-size:11px;
  line-height:1;
}

.page-indicator{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line2);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}

@media (max-width: 640px){
  .comment-pagination{
    gap:4px;
  }

  .page-btn,
  .page-indicator{
    min-height:28px;
    padding:4px 7px;
    font-size:11px;
    border-radius:7px;
  }

  .page-btn{
    gap:4px;
  }

  .page-btn-icon{
    width:12px;
    height:12px;
    font-size:10px;
  }
}




/* =========================
   INDEX UTILITY CLASSES
   ========================= */
.stack-gap-card{
  margin-top:14px;
}

.matches-list{
  margin-top:10px;
}

.player-card-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.player-card-name{
  font-size:16px;
  font-weight:800;
  letter-spacing:.2px;
}
