/* ====== ÁLTALÁNOS STÍLUSOK ====== */

body {
  background-color: #f4f6fa;
  font-family: 'Segoe UI', sans-serif;
  color: #212529;
}

a {
  text-decoration: none;
  color: #0d6efd;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}


/* ====== NAVBAR ====== */

.navbar {
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: #0d6efd !important;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0d6efd;
}

.nav-link.text-danger:hover {
  color: #dc3545 !important;
}

.user-link {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
}

.user-link:hover {
  color: #0d6efd;
  text-decoration: none;
}


/* ====== DASHBOARD ====== */

.dashboard {
  max-width: 900px;
  margin: 60px auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


/* ====== FLASHCARD TANULÁS (study.php) ====== */

.study-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.flashcard {
  max-height: 360px;
  height: 360px;
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.card-content {
  height: 100%;
  width: 100%;
  position: relative;
  cursor: pointer;
}

.flashcard .card-face {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: #212529;
  line-height: 1.6;
  text-align: left;
  overflow-y: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.flashcard .card-face.hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flashcard .card-face.visible {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}


/* ====== KÁRTYA LISTA (deck.php) ====== */

.card-entry {
  background: #f9fafc;
  border: 1px solid #e3e7ee;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  word-break: break-word;
}

.card-entry .card-text strong {
  font-weight: 600;
  font-size: 1.05rem;
}

.card-entry .card-text .back-text {
  font-weight: 600;
  margin-top: 0.5rem;
  display: block;
}

.card-entry .text-muted {
  font-size: 0.95rem;
}

.card-entry .btn {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
}


/* ====== FORMOK, GOMBOK ====== */

.btn {
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
}

textarea.form-control {
  resize: vertical;
}