/* -------------------------------
   TORNÁDÓKÖZPONT - FŐ STÍLUSLAP
   Modern, reszponzív, mobil-első
---------------------------------- */

:root {
  --bg: #f8f9fa;
  --text: #212529;
  --text-light: #495057;
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --accent: #fd7e14;
  --accent-dark: #e96b0a;
  --yellow: #ffc107;
  --orange: #fd7e14;
  --red: #dc3545;
  --card-bg: #ffffff;
  --border: #dee2e6;
  --shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.03);
  --transition: all 0.2s ease;
}

body.dark-mode {
  --bg: #1a1e24;
  --text: #e9ecef;
  --text-light: #ced4da;
  --card-bg: #2c3038;
  --border: #3a3f47;
  --shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background-color 0.3s, color 0.2s;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TYPOGRÁFIA ===== */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  border-left: 5px solid var(--primary);
  padding-left: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== HEADER & NAVIGÁCIÓ ===== */
header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: rgba(var(--card-bg-rgb, 255,255,255), 0.9);
}

body.dark-mode header {
  background-color: rgba(44,48,56,0.95);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text);
}

.nav-links li a:hover {
  color: var(--primary);
}

/* Hamburger (mobil) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: 0.2s;
}

.dark-mode-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  background-color: var(--card-bg);
  color: var(--text);
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== GOMBOK ===== */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(13,110,253,0.05), rgba(253,126,20,0.05));
  border-radius: 2rem;
  margin: 2rem 0;
}

.hero h1 {
  font-size: 3rem;
}

.hero-buttons {
  margin-top: 2rem;
}

/* ===== KÁRTYÁK ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background-color: var(--card-bg);
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}

.card h3 {
  margin-top: 0;
  color: var(--primary);
}

.card ul, .card p {
  margin-left: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ===== FIGYELMEZTETŐ BOXOK ===== */
.warning-box {
  border-left: 6px solid var(--red);
  background-color: rgba(220,53,69,0.1);
  padding: 1.2rem;
  border-radius: 1rem;
  margin: 1.5rem 0;
}

.warning-box strong {
  color: var(--red);
  font-size: 1.2rem;
}

.yellow-bg {
  background-color: rgba(255,193,7,0.15);
  border-left-color: var(--yellow);
}
.orange-bg {
  background-color: rgba(253,126,20,0.15);
  border-left-color: var(--orange);
}
.red-bg {
  background-color: rgba(220,53,69,0.2);
  border-left-color: var(--red);
}

/* ===== TÁBLÁZAT (reszponzív) ===== */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}

.level-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.level-table th, .level-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.level-table th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

.level-table tr:last-child td {
  border-bottom: none;
}

.color-badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== LEXIKON KERESŐ ===== */
.search-box {
  margin: 2rem 0;
}
.search-box input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background-color: var(--card-bg);
  color: var(--text);
}

/* ===== LÁBLÉC ===== */
footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links a {
  margin-right: 1.5rem;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1rem;
  text-align: center;
}

/* ===== RESZPONZÍV ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.2rem; }
  
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    text-align: center;
  }
  .nav-links.show {
    display: flex;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }
}