/* ============================================================
   GenAIWallah Tutorial Enhancement Styles
   Beginner-friendly animations, concept cards, learning paths
   ============================================================ */

/* ── Fade Up Animation ── */
.gwa-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.gwa-fade-up-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Concept Cards ── */
.gwa-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.gwa-concept-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 28px 24px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}
.gwa-concept-card.gwa-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.gwa-concept-card:hover {
  border-color: rgba(212,175,55,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.gwa-concept-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.gwa-concept-card:hover::before {
  opacity: 1;
}
.gwa-concept-card .icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}
.gwa-concept-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.gwa-concept-card p {
  font-size: .88rem;
  color: #999;
  line-height: 1.65;
  margin-bottom: 14px;
}
.gwa-concept-card .learn-more {
  font-size: .82rem;
  font-weight: 600;
  color: #d4af37;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gwa-concept-card .learn-more:hover {
  gap: 8px;
  transition: gap 0.2s;
}

/* ── Beginner Section ── */
.gwa-beginner-section {
  padding: 80px 0;
  background: #0a0a0f;
  position: relative;
}
.gwa-beginner-section .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.gwa-beginner-section .eyebrow {
  color: #d4af37;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.gwa-beginner-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}
.gwa-beginner-section h2 span {
  color: #d4af37;
}
.gwa-beginner-section .subtitle {
  color: #888;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Beginner Content Blocks ── */
.gwa-beginner-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .gwa-beginner-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.gwa-beginner-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.gwa-beginner-text p {
  color: #aaa;
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.gwa-beginner-text .analogy-box {
  background: rgba(212,175,55,.06);
  border: 1px solid rgba(212,175,55,.15);
  border-left: 4px solid #d4af37;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #c8c8d8;
  font-size: .9rem;
  line-height: 1.7;
}
.gwa-beginner-text .analogy-box strong {
  color: #d4af37;
}
.gwa-beginner-visual {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Research Section ── */
.gwa-research-section {
  padding: 80px 0;
  background: #09090e;
  position: relative;
}
.gwa-research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.gwa-research-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
}
.gwa-research-card:hover {
  border-color: rgba(212,175,55,.25);
  transform: translateY(-2px);
}
.gwa-research-card .tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.gwa-research-card .tag-new { background: rgba(74,222,128,.1); color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.gwa-research-card .tag-trend { background: rgba(251,191,36,.1); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
.gwa-research-card .tag-paper { background: rgba(96,165,250,.1); color: #60a5fa; border: 1px solid rgba(96,165,250,.2); }
.gwa-research-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #e0e0f0;
  margin-bottom: 8px;
  line-height: 1.4;
}
.gwa-research-card p {
  font-size: .85rem;
  color: #888;
  line-height: 1.65;
  margin-bottom: 12px;
}
.gwa-research-card .meta {
  font-size: .75rem;
  color: #666;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── Learning Path ── */
.gwa-learning-path {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.gwa-path-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.06);
  transform: translateX(-50%);
}
.gwa-path-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #d4af37, #b8932a);
  transition: height 2.5s ease;
}
.gwa-path-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.gwa-path-step {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.gwa-path-step.active {
  opacity: 1;
  transform: translateX(0);
}
.gwa-path-step:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}
.gwa-path-step:nth-child(even) .gwa-step-content {
  text-align: right;
}
.gwa-step-dot {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gwa-step-num {
  font-size: .9rem;
  font-weight: 800;
  color: #d4af37;
  z-index: 2;
}
.gwa-step-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(212,175,55,.3);
  border-radius: 50%;
  transition: all 0.4s ease;
}
.gwa-path-step.active .gwa-step-ring {
  border-color: #d4af37;
  box-shadow: 0 0 20px rgba(212,175,55,.3);
}
.gwa-step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.gwa-step-content p {
  font-size: .88rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 4px;
}
.gwa-step-duration {
  font-size: .75rem;
  color: #d4af37;
  font-weight: 600;
}
@media (max-width: 700px) {
  .gwa-path-line { left: 24px; }
  .gwa-path-step, .gwa-path-step:nth-child(even) {
    flex-direction: row;
    text-align: left;
    padding-left: 40px;
  }
  .gwa-path-step:nth-child(even) .gwa-step-content { text-align: left; }
}

/* ── Data Flow Animation ── */
.gwa-data-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.gwa-flow-stage {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  min-width: 120px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}
.gwa-flow-stage.active {
  opacity: 1;
  transform: scale(1);
}
.gwa-flow-stage .gwa-flow-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.gwa-flow-stage .gwa-flow-label {
  font-size: .85rem;
  font-weight: 600;
  color: #e0e0f0;
  margin-bottom: 4px;
}
.gwa-flow-stage .gwa-flow-desc {
  font-size: .75rem;
  color: #888;
}
.gwa-flow-arrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gwa-flow-arrow.active {
  opacity: 1;
}
.gwa-flow-arrow span {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(212,175,55,.4);
  border-bottom: 2px solid rgba(212,175,55,.4);
  transform: rotate(-45deg);
  animation: flowPulse 1.2s infinite;
}
.gwa-flow-arrow span:nth-child(2) { animation-delay: 0.2s; }
.gwa-flow-arrow span:nth-child(3) { animation-delay: 0.4s; }
@keyframes flowPulse {
  0%, 100% { opacity: 0.3; transform: rotate(-45deg) translate(0,0); }
  50% { opacity: 1; transform: rotate(-45deg) translate(4px, 4px); }
}

/* ── Animated Blob Backgrounds ── */
.gwa-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}
.gwa-blob-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #d4af37, transparent);
  top: 10%; left: -5%;
  animation-delay: 0s;
}
.gwa-blob-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #b8932a, transparent);
  bottom: 10%; right: -5%;
  animation-delay: -3s;
}
.gwa-blob-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #e8c547, transparent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -6s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── Typing Effect ── */
.gwa-typing {
  border-right: 2px solid #d4af37;
  animation: blinkCursor 0.8s infinite;
}
@keyframes blinkCursor {
  0%, 100% { border-color: #d4af37; }
  50% { border-color: transparent; }
}
.gwa-typed-done {
  border-right: none;
}

/* ── Stats Bar ── */
.gwa-stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 24px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.gwa-stat-item {
  text-align: center;
}
.gwa-stat-item .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #d4af37;
  display: block;
  line-height: 1;
}
.gwa-stat-item .lbl {
  font-size: .82rem;
  color: #70708a;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 6px;
}

/* ── Comparison Table (Beginner) ── */
.gwa-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .88rem;
}
.gwa-compare-table th {
  background: rgba(212,175,55,.1);
  color: #d4af37;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid rgba(212,175,55,.12);
}
.gwa-compare-table td {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.05);
  color: #bbb;
  vertical-align: top;
  line-height: 1.6;
}
.gwa-compare-table tr:nth-child(even) td {
  background: rgba(255,255,255,.015);
}
.gwa-compare-table tr:hover td {
  background: rgba(212,175,55,.03);
}

/* ── Highlight Box ── */
.gwa-highlight-box {
  background: rgba(212,175,55,.05);
  border: 1px solid rgba(212,175,55,.12);
  border-left: 4px solid #d4af37;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 18px 0;
  color: #c8c8d8;
  font-size: .9rem;
  line-height: 1.7;
}
.gwa-highlight-box strong { color: #d4af37; }

/* ── Topic Tag Cloud ── */
.gwa-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.gwa-tag-cloud .tag {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #aaa;
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
}
.gwa-tag-cloud .tag:hover {
  background: rgba(212,175,55,.1);
  border-color: rgba(212,175,55,.3);
  color: #d4af37;
  transform: translateY(-2px);
}

/* ── Code Block Animation ── */
.gwa-code-block {
  background: #0e0e18;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: .85rem;
  line-height: 1.7;
  color: #c0c0d0;
  overflow-x: auto;
  position: relative;
}
.gwa-code-block .line {
  display: block;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
.gwa-code-block .line.visible {
  opacity: 1;
  transform: translateX(0);
}
.gwa-code-block .keyword { color: #c678dd; }
.gwa-code-block .function { color: #61afef; }
.gwa-code-block .string { color: #98c379; }
.gwa-code-block .comment { color: #5c6370; }
.gwa-code-block .number { color: #d19a66; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .gwa-concept-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .gwa-research-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .gwa-stats-bar { gap: 24px 32px; padding: 32px 16px; }
  .gwa-stat-item .num { font-size: 1.8rem; }
  .gwa-beginner-section { padding: 60px 0; }
  .gwa-research-section { padding: 60px 0; }
}
