/* MORGENS Google Ads Agent — egyedi kiegészítések Tailwind mellé */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* App háttér — glassmorphism alapja: erősebb organikus gradient mögé */
.app-bg {
  background:
    radial-gradient(ellipse 900px 700px at 10% 5%, rgba(31, 90, 62, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 1100px 900px at 95% 95%, rgba(95, 155, 124, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 600px 500px at 50% 50%, rgba(218, 234, 224, 0.5) 0%, transparent 70%),
    linear-gradient(135deg, #f0f5f1 0%, #e8efe8 50%, #eef3ec 100%);
  background-attachment: fixed;
}

/* Finom dotted pattern overlay (alacsonyabb opacity, hogy a glass-effect kiemelkedjen) */
.app-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(31, 90, 62, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.app-bg > * { position: relative; z-index: 1; }

/* Glass-card — semi-transparent fehér + backdrop-blur (a háttér-gradient látsszon át) */
.glass-card {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 1px 3px rgba(20, 55, 39, 0.04),
    0 8px 24px rgba(20, 55, 39, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Inner glass cards (mai esedékes fiókok) — finomabb, kisebb blur */
.glass-card-inner {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.glass-card-inner:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(95, 155, 124, 0.5);
}

/* Sidebar — szintén glass */
aside.glass-sidebar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid rgba(226, 232, 240, 0.6) !important;
}

/* Cards animation on appear */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-card-enter {
  animation: slideIn 0.4s ease-out;
}

/* Becsukott állapotban a kártya NEM stretchel-jen a grid-sorban (csak a fejléc magasság) */
.step-card-enter[data-collapsed="1"] {
  align-self: start;
}

/* Szélesebb kártya — col-span-2 a 2-3-oszlopos grid-en (Dávid 2026-05-21):
   Step 2 (Konverzió-anomália) és Step 5 (Költés + budget) tartalmilag több helyet igényel.
   Mobil/tablet (<lg) → 1-oszlopos, ott nincs hatás. */
@media (min-width: 1024px) {
  #steps-container .step-card-enter[data-wide="1"] {
    grid-column: span 2;
  }
}

/* Dense grid-auto-flow (Dávid 2026-05-21 v2): a wide (col-span-2) kártyák melletti
   üres cellákat a kisebb kártyák kitöltik — nincs ronda hézag. A sorrend kis-mértékben
   módosulhat (kisebb kártya beugorhat előrébb), de vizuálisan tisztább. */
#steps-container {
  grid-auto-flow: dense;
}

/* Mai-ellenőrzés-kész celebration modal */
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.8) translateY(20px); }
  50%  { opacity: 1; transform: scale(1.05) translateY(-4px); }
  70%  { transform: scale(0.98) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.completion-overlay {
  animation: overlayFadeIn 0.3s ease-out;
}
.completion-card {
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.status-badge.ok        { background: #f0f7f3; color: #1f5a3e; }
.status-badge.warning   { background: #fef3c7; color: #92400e; }
.status-badge.critical  { background: #fee2e2; color: #991b1b; }
.status-badge.loading   { background: #f1f5f9; color: #475569; }
.status-badge.demo      { background: #e0e7ff; color: #3730a3; }

/* Block labels */
.block-label {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #64748b;
}

/* Checkbox style */
.step-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.step-checkbox:hover { border-color: #1f5a3e; }
.step-checkbox:checked {
  background: #1f5a3e;
  border-color: #1f5a3e;
}
.step-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Details expand */
.step-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.step-details.expanded {
  max-height: 2000px;
}

/* Markdown content (simplified) */
.markdown-content { font-size: 14px; line-height: 1.6; color: #475569; }
.markdown-content p { margin: 0.5em 0; }
.markdown-content ul { padding-left: 1.5em; margin: 0.5em 0; }
.markdown-content li { margin: 0.25em 0; list-style: disc; }
.markdown-content strong { color: #0f172a; font-weight: 600; }
.markdown-content table { width: 100%; border-collapse: collapse; margin: 0.75em 0; font-size: 13px; }
.markdown-content th, .markdown-content td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.markdown-content th { background: #f8fafc; font-weight: 600; color: #334155; }
.markdown-content code { background: #f1f5f9; padding: 1px 4px; border-radius: 3px; font-size: 12px; }

/* Smooth fade for loading state */
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
