/* ==========================================================================
   HLR ROLEPLAY - ADMIN VEZÉRLŐPULT STÍLUSLAP (admin.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&family=Fira+Code:wght@400;600&display=swap');

:root {
  --bg-dark: #07090e;
  --bg-surface: rgba(15, 18, 28, 0.85);
  --bg-surface-elevated: rgba(22, 27, 42, 0.9);
  --bg-glass: rgba(18, 22, 34, 0.65);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 240, 255, 0.3);

  --neon-cyan: #00f0ff;
  --neon-purple: #9d4edd;
  --neon-green: #10b981;
  --neon-red: #ef4444;
  --neon-amber: #f59e0b;

  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-code: 'Fira Code', monospace;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

/* ==========================================================================
   BEJELENTKEZŐ MODÁL / KÉPERNYŐ
   ========================================================================== */
.login-screen {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.15);
  position: relative;
  text-align: center;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-logo .badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.login-error {
  color: var(--neon-red);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   ADMIN LAYOUT & FEJLÉC
   ========================================================================== */
.admin-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.admin-badge {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(157, 78, 221, 0.2));
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   GOMBOK
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #00f0ff, #7000ff);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.btn-danger:hover {
  background: var(--neon-red);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.88rem;
}

/* ==========================================================================
   TARTALOM ÉS FÜLEK
   ========================================================================== */
.admin-container {
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 24px 80px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.admin-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(157, 78, 221, 0.25));
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   KÁRTYÁK & SZERKESZTŐ PANELEK
   ========================================================================== */
.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 26px;
  backdrop-filter: blur(16px);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Dinamikus Lista Kártyák (Frakciók, Szabályok, GYIK) */
.list-item-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.2s ease;
}

.list-item-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.list-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.item-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
}

/* Lebegő mentés vezérlősáv */
.admin-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

/* Toast Értesítés */
.admin-toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background: rgba(15, 18, 28, 0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.3);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 600;
}

.admin-toast.show {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .admin-sticky-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
}

/* Fájl feltöltés és média előnézet az adminban */
.upload-btn-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.file-upload-input {
  display: none;
}

.btn-upload-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px dashed rgba(0, 240, 255, 0.5);
  color: var(--neon-cyan);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload-file:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--neon-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.media-preview-box {
  width: 90px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: #080c14;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-info-banner {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-info-banner svg {
  flex-shrink: 0;
  color: var(--neon-cyan);
  margin-top: 2px;
}

