/* ============================================================
   WOI RPG System – Szintrendszer stílusok
   ============================================================ */

/* ── Profil oldal ──────────────────────────────────────────── */
.woi-profile-wrap {
  display: block;
  padding: 0;
}

/* Tab navigáció */
.woi-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(201,164,80,.2);
  margin-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: transparent !important;
}
.woi-tabs-nav::-webkit-scrollbar { display: none; }

.woi-tab-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 14px 22px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
  color: #9a8f85 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  margin-bottom: -1px !important;
  line-height: 1 !important;
  transition: color .2s ease, border-color .2s ease !important;
}
.woi-tab-btn:hover {
  background: transparent !important;
  color: #c9a450 !important;
  border-color: transparent !important;
}
.woi-tab-btn.active {
  background: transparent !important;
  color: #c9a450 !important;
  border-bottom-color: #c9a450 !important;
}

/* Tab panelek */
.woi-tabs-content { padding-top: 4px; }

.woi-tab-panel { display: none; padding: 24px 0; }
.woi-tab-panel.active { display: block; }

/* Szint kártya */
.woi-profile-level-card {
  background: linear-gradient(135deg, #1c1613, #251e1b);
  border: 1px solid rgba(201,164,80,.35);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.woi-profile-level-card::before {
  content: '⚔';
  position: absolute;
  right: 24px;
  top: 16px;
  font-size: 80px;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
}

.woi-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.woi-profile-avatar {}
.woi-profile-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(201,164,80,.4);
  object-fit: cover;
}

.woi-profile-name {
  font-family: 'Cinzel Decorative', 'CinzelDecorative', serif;
  font-size: 22px;
  color: #f0ece4;
  margin: 0 0 8px;
  letter-spacing: 1px;
}

.woi-profile-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8a6f2a, #c9a450);
  color: #0a0808;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.woi-profile-discount {
  color: #c9a450;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  margin-top: 4px;
}

/* XP sáv */
.woi-xp-section { margin-top: 8px; }

.woi-xp-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.woi-xp-current {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #c9a450;
  font-weight: 700;
}

.woi-xp-next {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #9a8f85;
  letter-spacing: 0.5px;
}

.woi-xp-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,.08);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.woi-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8a6f2a, #c9a450, #e8c97a);
  border-radius: 5px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.woi-xp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: woi-shimmer 2.5s infinite;
}

@keyframes woi-shimmer {
  to { left: 120%; }
}

.woi-xp-progress-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #6a615a;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ── Szint táblázat ────────────────────────────────────────── */
.woi-level-table-wrap {}

.woi-section-heading {
  font-family: 'Cinzel Decorative', 'CinzelDecorative', serif;
  font-size: 18px;
  color: #c9a450;
  letter-spacing: 2px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,164,80,.2);
}

.woi-level-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.woi-level-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 80px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  transition: all 0.2s ease;
}

.woi-level-row.achieved {
  background: rgba(201,164,80,.05);
  border-color: rgba(201,164,80,.15);
}

.woi-level-row.current {
  background: rgba(201,164,80,.12);
  border-color: rgba(201,164,80,.4);
  box-shadow: 0 0 16px rgba(201,164,80,.1);
}

.woi-level-row.locked {
  opacity: 0.5;
}

.woi-level-row-num {
  font-weight: 700;
  color: #c9a450;
  display: flex;
  align-items: center;
  gap: 6px;
}

.woi-check { color: #4caf50; }
.woi-lock { font-size: 12px; }

.woi-level-row-title { color: #f0ece4; }
.woi-level-row.current .woi-level-row-title { color: #c9a450; font-weight: 700; }

.woi-level-row-xp { color: #9a8f85; }
.woi-level-row-discount { color: #c9a450; font-weight: 700; text-align: right; }

/* ── Küldetés kártyák ──────────────────────────────────────── */
.woi-quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.woi-quest-card {
  background: #1c1613;
  border: 1px solid #2d2520;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.woi-quest-card:hover {
  border-color: rgba(201,164,80,.3);
  transform: translateY(-2px);
}

.woi-quest-card.completed {
  opacity: 0.7;
  border-color: #4caf50;
  background: rgba(76,175,80,.05);
}

.woi-quest-card.active {
  border-color: rgba(201,164,80,.25);
}

.woi-quest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.woi-quest-icon { font-size: 24px; }

.woi-quest-xp-badge {
  background: linear-gradient(135deg, #8a6f2a, #c9a450);
  color: #0a0808;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
}

.woi-quest-title {
  font-family: 'Cinzel Decorative', 'CinzelDecorative', serif;
  font-size: 14px;
  color: #f0ece4;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.woi-quest-desc {
  color: #9a8f85;
  font-family: 'Cormorant Upright', 'CormorantUpright', serif;
  font-size: 16px;
  margin: 0;
  flex: 1;
}

.woi-quest-done {
  color: #4caf50;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.woi-quest-requirements {
  color: #c9a450;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  border-top: 1px solid rgba(201,164,80,.2);
  padding-top: 8px;
  margin-top: 4px;
}

/* ── XP Napló ──────────────────────────────────────────────── */
.woi-xp-log {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #2d2520;
  border-radius: 6px;
  overflow: hidden;
}

.woi-xp-log-entry {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #2d2520;
  transition: background 0.2s ease;
}
.woi-xp-log-entry:last-child { border-bottom: none; }
.woi-xp-log-entry:hover { background: rgba(201,164,80,.04); }

.woi-xp-log-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.woi-xp-log-amount.positive { color: #4caf50; }
.woi-xp-log-amount.negative { color: #f44336; }

.woi-xp-log-reason {
  color: #9a8f85;
  font-family: 'Cormorant Upright', serif;
  font-size: 16px;
}

.woi-xp-log-date {
  color: #6a615a;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-align: right;
  letter-spacing: 0.5px;
}

/* ── Empty state ───────────────────────────────────────────── */
.woi-empty-state {
  color: #9a8f85;
  font-family: 'Cormorant Upright', serif;
  font-size: 18px;
  font-style: italic;
  padding: 32px;
  text-align: center;
  border: 1px dashed #2d2520;
  border-radius: 6px;
}

/* ── Login prompt ──────────────────────────────────────────── */
.woi-login-prompt {
  color: #9a8f85;
  font-family: 'Cormorant Upright', serif;
  font-size: 20px;
  text-align: center;
  padding: 48px;
}
.woi-login-prompt a { color: #c9a450; }

/* ── Szintlépés toast ──────────────────────────────────────── */
.woi-levelup-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  animation: woi-toast-in .4s ease;
  max-width: 360px;
}

@keyframes woi-toast-in {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.woi-levelup-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1c1613, #251e1b);
  border: 1px solid #c9a450;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(201,164,80,.15);
}

.woi-levelup-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.woi-levelup-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.woi-levelup-text strong {
  font-family: 'Cinzel Decorative', serif;
  font-size: 14px;
  color: #c9a450;
  letter-spacing: 1px;
}

.woi-levelup-text span {
  font-family: 'Cormorant Upright', serif;
  font-size: 16px;
  color: #9a8f85;
}

.woi-levelup-close {
  background: none;
  border: none;
  color: #6a615a;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}
.woi-levelup-close:hover { color: #c9a450; }

/* ── Fiók oldal kedvezmény banner ──────────────────────────── */
.woi-account-discount-banner {
  background: linear-gradient(135deg, #1c1613, #251e1b);
  border: 1px solid rgba(201,164,80,.3);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.woi-account-discount-banner p {
  color: #9a8f85;
  font-family: 'Cormorant Upright', serif;
  font-size: 17px;
  margin: 0 0 8px;
}
.woi-account-discount-banner p:last-child { margin-bottom: 0; }
.woi-account-discount-banner strong { color: #c9a450; }

/* ── Level price badge (termékeknél) ───────────────────────── */
.woi-level-price-badge {
  display: block;
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #4caf50;
  font-weight: 600;
}

/* ── WC nav tétel elrejtése (EAEL a saját dashboardjában kezeli) ─── */
.woocommerce-MyAccount-navigation-link--woi-szintem {
  display: none !important;
}
/* EAEL Woo Account Dashboard navbarjában megjelenítés engedélyezése */
.eael-account-dashboard-navbar .woocommerce-MyAccount-navigation-link--woi-szintem {
  display: list-item !important;
}

/* ── Responsív ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .woi-tab-btn { padding: 12px 14px; font-size: 11px; letter-spacing: 1px; }
  .woi-profile-header { flex-direction: column; text-align: center; }
  .woi-xp-labels { flex-direction: column; gap: 4px; }
  .woi-level-row { grid-template-columns: 50px 1fr 80px; }
  .woi-level-row-xp { display: none; }
  .woi-quests-grid { grid-template-columns: 1fr; }
  .woi-xp-log-entry { grid-template-columns: 80px 1fr; }
  .woi-xp-log-date { display: none; }
  .woi-levelup-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
