/* Modern black theme – card ideas */
:root {
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #252525;
  --text: #e4e4e4;
  --text-muted: #a0a0a0;
  --holy: #c9a227;
  --holy-glow: #eab308;
  --holy-glow-strong: #fde047;
  --holy-bg: rgba(201, 162, 39, 0.15);
  --curse: #a52a2a;
  --curse-bg: rgba(165, 42, 42, 0.15);
  --curse-glow: #22c55e;
  --curse-glow-bright: #4ade80;
  --curse-glow-soft: rgba(34, 197, 94, 0.5);
  --border: #2a2a2a;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--holy);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}
.container--main {
  padding-top: 2rem;
}

/* Hero – kezdőlap */
.hero {
  background: linear-gradient(160deg, #0d0d0d 0%, #151520 40%, #0f0f14 100%);
  padding: 3rem 0 3.5rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero .page-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.site-title {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #c9c9c9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-tagline {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 320px;
}
.btn-hero {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.25);
}
.btn-hero:hover {
  box-shadow: 0 0 32px rgba(201, 162, 39, 0.35);
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Header – általános */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.page-header--create {
  margin-bottom: 2rem;
}
.page-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}
.logo-link {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}
.logo-link:hover {
  color: var(--holy);
  text-decoration: none;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  text-decoration: none;
}
.btn-primary {
  background: var(--holy);
  color: #0d0d0d;
  border-color: var(--holy);
}
.btn-primary:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

/* Card grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
}
.card-item::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 3px);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s;
}
.card-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* Holy kártya – arany szél + fényjáték, ugyanolyan srága mint curse */
.card-item.card--holy {
  border-color: var(--holy-glow);
  box-shadow: var(--shadow), 0 0 0 1px var(--holy-glow), 0 0 24px rgba(234, 179, 8, 0.35), 0 0 48px rgba(234, 179, 8, 0.15);
  animation: holy-glow-pulse 2.5s ease-in-out infinite;
}
.card-item.card--holy::before {
  background: transparent;
  box-shadow: 0 0 32px rgba(234, 179, 8, 0.25), 0 0 64px rgba(234, 179, 8, 0.1);
  border-radius: calc(var(--radius) + 2px);
  opacity: 0.8;
}
.card-item.card--holy:hover {
  border-color: var(--holy-glow-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--holy-glow-strong), 0 0 32px rgba(234, 179, 8, 0.5), 0 0 64px rgba(234, 179, 8, 0.2);
  animation: none;
}
.card-item.card--holy:hover::before {
  opacity: 1;
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.4), 0 0 80px rgba(234, 179, 8, 0.15);
}
@keyframes holy-glow-pulse {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 1px var(--holy-glow), 0 0 20px rgba(234, 179, 8, 0.3), 0 0 40px rgba(234, 179, 8, 0.12); }
  50% { box-shadow: var(--shadow), 0 0 0 2px var(--holy-glow-strong), 0 0 28px rgba(234, 179, 8, 0.45), 0 0 56px rgba(234, 179, 8, 0.18); }
}

/* Curse kártya – zöld szél + erős zöld fényjáték */
.card-item.card--curse {
  border-color: var(--curse-glow);
  box-shadow: var(--shadow), 0 0 0 1px var(--curse-glow), 0 0 24px var(--curse-glow-soft), 0 0 48px rgba(34, 197, 94, 0.25);
  animation: curse-glow-pulse 2.5s ease-in-out infinite;
}
.card-item.card--curse::before {
  background: transparent;
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.35), 0 0 64px rgba(34, 197, 94, 0.12);
  border-radius: calc(var(--radius) + 2px);
  opacity: 0.9;
}
.card-item.card--curse:hover {
  border-color: var(--curse-glow-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--curse-glow-bright), 0 0 32px rgba(34, 197, 94, 0.55), 0 0 64px rgba(34, 197, 94, 0.25);
  animation: none;
}
.card-item.card--curse:hover::before {
  opacity: 1;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.5), 0 0 80px rgba(34, 197, 94, 0.2);
}
@keyframes curse-glow-pulse {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 1px var(--curse-glow), 0 0 22px var(--curse-glow-soft), 0 0 44px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: var(--shadow), 0 0 0 2px var(--curse-glow-bright), 0 0 30px rgba(34, 197, 94, 0.6), 0 0 60px rgba(34, 197, 94, 0.3); }
}

.card-image-wrap {
  aspect-ratio: 3 / 4;
  background: var(--bg);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-image-wrap.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-body {
  padding: 1.25rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-holy {
  background: var(--holy-bg);
  color: var(--holy);
  border: 1px solid var(--holy);
}
.badge-curse {
  background: rgba(34, 197, 94, 0.15);
  color: var(--curse-glow-bright);
  border: 1px solid var(--curse-glow);
}

.card-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.card-desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-tiers {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.card-tiers li {
  margin-bottom: 0.25rem;
}

/* Flash message */
.flash {
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background: var(--holy-bg);
  border: 1px solid var(--holy);
  color: var(--text);
}
.flash--error {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-color: var(--curse);
  background: var(--curse-bg);
}
.flash--error li {
  margin-bottom: 0.25rem;
}
.flash--error li:last-child {
  margin-bottom: 0;
}

/* Create page – main */
.page-create .container {
  max-width: 640px;
}
.create-main {
  padding-bottom: 3rem;
}
.create-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.create-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Form blocks – create page */
.create-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.form-block-title {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.form-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

/* Form (create page) */
.form-section {
  margin-bottom: 1.25rem;
}
.form-section:last-child {
  margin-bottom: 0;
}
.form-block .form-section {
  max-width: 100%;
}
.form-section label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--text);
}
.form-section input[type="text"],
.form-section textarea,
.form-section select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
/* File upload – igényes doboz */
.form-section--file {
  margin-bottom: 0;
}
.file-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1.5rem;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-label:hover {
  border-color: var(--holy);
  background: rgba(201, 162, 39, 0.05);
}
.file-label-text {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.file-label-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.form-section input[type="file"] {
  width: 100%;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.form-section textarea {
  min-height: 100px;
  resize: vertical;
}
.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
  outline: none;
  border-color: var(--holy);
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.35rem;
}
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
}

.tier-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.tier-block label {
  font-size: 0.9rem;
}
.tier-remove {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--curse);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.tier-remove:hover {
  text-decoration: underline;
}
.add-tier-btn {
  margin-bottom: 0;
  margin-top: 0.5rem;
}

/* Form actions */
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.btn-submit {
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
}
.btn-ghost {
  color: var(--text-muted);
  border-color: transparent;
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state a {
  margin-top: 1rem;
  display: inline-block;
}
