/* megaprojects.css — extracted from the embedded <style> block in megaprojects.html */
/* Page-specific styles for Mega Projects */
.mp-hero { padding: 56px 0 44px; text-align: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.mp-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124,92,255,.1) 0%, transparent 70%); pointer-events: none; }
[data-theme="dark"] .mp-hero::before { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124,92,255,.16) 0%, transparent 70%); }
.mp-hero-inner { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); position: relative; }
.mp-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--primary); background: var(--primary-light); border: 1px solid rgba(124,92,255,.25); border-radius: var(--r-full); padding: 5px 14px; margin-bottom: 20px; }
.mp-badge svg.lucide { font-size: 13px; }
.mp-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1.12; margin-bottom: 16px; }
.mp-hero h1 .accent { color: var(--primary); }
.mp-hero p { font-size: 0.95rem; color: var(--text-2); line-height: 1.75; max-width: 520px; margin-inline: auto; margin-bottom: 30px; }
.mp-hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.mp-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1; text-align: center; }
.mp-stat-label { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; text-align: center; }

.mp-notify-bar { background: var(--primary-light); border-bottom: 1px solid rgba(124,92,255,.2); padding: 11px 0; }
[data-theme="dark"] .mp-notify-bar { background: #1A1530; border-bottom-color: rgba(124,92,255,.3); }
.mp-notify-inner { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.mp-notify-text { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text); font-weight: 500; }
.mp-notify-text svg.lucide { color: var(--primary); font-size: 16px; }
.mp-notify-form { display: flex; gap: 8px; }
.mp-notify-input { padding: 8px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-full); font-size: 0.8rem; color: var(--text); outline: none; width: 220px; font-family: var(--font); transition: border-color 0.2s ease; }
.mp-notify-input:focus { border-color: var(--primary); }
.mp-notify-btn { padding: 8px 18px; background: var(--primary-grad); color: #fff; border: none; border-radius: var(--r-full); font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: var(--font); transition: filter 0.2s ease; }
.mp-notify-btn:hover { filter: brightness(1.06); }

.mp-filter { padding: 26px 0 0; }
.mp-filter-inner { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mp-filter-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.mp-chip { padding: 6px 16px; border-radius: var(--r-full); border: 1.5px solid var(--border); background: transparent; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); cursor: pointer; font-family: var(--font); transition: all 0.18s ease; }
.mp-chip.active, .mp-chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.mp-grid-section { padding: 26px 0 56px; }
.mp-grid-inner { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mp-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.mp-card:hover { border-color: rgba(124,92,255,.35); box-shadow: var(--shadow), var(--shadow-glow); transform: translateY(-3px); }
.mp-card-preview { height: 132px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.mp-card-preview::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,.03) 8px, rgba(255,255,255,.03) 9px); }
.mp-card-preview-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 1; }
.mp-card-preview-icon svg.lucide { font-size: 26px; }
.mp-card-body { padding: 20px; }
.mp-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mp-tag { font-size: 0.66rem; font-weight: 600; padding: 2px 8px; border-radius: var(--r-full); background: var(--primary-light); color: var(--primary); border: 1px solid rgba(124,92,255,.2); }
.mp-card-body h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.mp-card-body p { font-size: 0.81rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.mp-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mp-cs-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; color: var(--orange); background: var(--orange-light); border: 1px solid rgba(245,158,11,.25); border-radius: var(--r-full); padding: 4px 10px; }
.mp-cs-badge svg.lucide { font-size: 11px; }
.mp-diff-badge { font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-full); border: 1px solid var(--border); color: var(--text-muted); }
.diff-beginner { color: var(--green); background: var(--green-light); border-color: rgba(34,197,94,.2); }
.diff-intermediate { color: var(--blue); background: var(--blue-light); border-color: rgba(59,130,246,.2); }
.diff-advanced { color: var(--red); background: var(--red-light); border-color: rgba(239,68,68,.2); }
.mp-card.featured { grid-column: span 2; }
.mp-card.featured .mp-card-preview { height: 168px; }

@media (max-width: 900px) {
  .mp-grid { grid-template-columns: 1fr 1fr; }
  .mp-card.featured { grid-column: span 2; }
  .mp-notify-inner { flex-direction: column; }
}
@media (max-width: 520px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-card.featured { grid-column: span 1; }
  .mp-notify-input { width: 100%; }
  .mp-hero-stats { gap: 18px; }
}
