/* ========================================================
   DevSnips — Modern Landing & Hero Styles
   Used on the index page (index.html)
   ======================================================== */

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ─── Hero Section (M-015 Gradient Mesh Inspired) ────── */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
  text-align: center;
  margin-bottom: 50px;
  background-color: #07090e;
}

/* M-015 Animated Floating Mesh Orbs */
.hero-mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  --mesh-blur: 90px;
  opacity: 0.85;
  z-index: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--mesh-blur));
  will-change: transform;
}

.hero-orb-1 {
  width: 55%;
  height: 65%;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle at center, #6366f1 0%, transparent 70%);
  animation: hero-mesh-float-1 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 50%;
  height: 60%;
  top: -15%;
  right: -5%;
  background: radial-gradient(circle at center, #a855f7 0%, transparent 70%);
  animation: hero-mesh-float-2 11s ease-in-out infinite;
}

.hero-orb-3 {
  width: 45%;
  height: 55%;
  bottom: -20%;
  left: 20%;
  background: radial-gradient(circle at center, #06b6d4 0%, transparent 70%);
  animation: hero-mesh-float-3 13s ease-in-out infinite;
}

.hero-orb-4 {
  width: 40%;
  height: 50%;
  top: 30%;
  right: 15%;
  background: radial-gradient(circle at center, #ec4899 0%, transparent 70%);
  animation: hero-mesh-float-4 16s ease-in-out infinite;
}

.hero-orb-5 {
  width: 35%;
  height: 45%;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle at center, #4f46e5 0%, transparent 70%);
  animation: hero-mesh-float-5 10s ease-in-out infinite;
}

@keyframes hero-mesh-float-1 {
  0%, 100% { transform: translate(0%, 0%) scale(1); }
  50%       { transform: translate(16%, 18%) scale(1.08); }
}

@keyframes hero-mesh-float-2 {
  0%, 100% { transform: translate(0%, 0%) scale(1); }
  33%      { transform: translate(-18%, 14%) scale(1.05); }
  66%      { transform: translate(8%, -10%) scale(0.95); }
}

@keyframes hero-mesh-float-3 {
  0%, 100% { transform: translate(0%, 0%) scale(1); }
  50%      { transform: translate(-15%, -18%) scale(1.1); }
}

@keyframes hero-mesh-float-4 {
  0%, 100% { transform: translate(0%, 0%) scale(1); }
  40%      { transform: translate(18%, 10%) scale(1.06); }
  80%      { transform: translate(-10%, -15%) scale(0.94); }
}

@keyframes hero-mesh-float-5 {
  0%, 100% { transform: translate(0%, 0%) scale(1); }
  50%      { transform: translate(-22%, 14%) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

/* Grid & Scanline Texture Overlay */
.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  z-index: 2;
}

/* ─── Announcement Pill ──────────────────────────────── */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(167, 139, 250, 0.4);
  font-size: 0.825rem;
  font-weight: 600;
  color: #c4b5fd;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { border-color: rgba(167, 139, 250, 0.35); box-shadow: 0 0 16px rgba(99, 102, 241, 0.2); }
  50% { border-color: rgba(192, 132, 252, 0.7); box-shadow: 0 0 28px rgba(168, 85, 247, 0.35); }
}

/* ─── Headlines ──────────────────────────────────────── */
.hero-title {
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 24px rgba(129, 140, 248, 0.4));
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 820px;
  margin: 0 auto 36px;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  word-break: auto-phrase;
  text-wrap: pretty;
}

.hero-subtitle .u-nowrap {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 90px 16px 48px;
    margin-bottom: 24px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.6rem);
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 0.925rem;
    line-height: 1.65;
    max-width: 100%;
    padding: 0 6px;
    margin-bottom: 26px;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .hero-subtitle .u-nowrap {
    white-space: normal !important;
    display: inline !important;
  }
  .hero-subtitle .hide-mobile {
    display: none !important;
  }
  .hero-badge-pill {
    font-size: 0.75rem;
    padding: 5px 12px;
    margin-bottom: 18px;
    max-width: 100%;
  }
}

/* ─── Command Search Bar ─────────────────────────────── */
.search-command-wrapper {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-command-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(13, 17, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 8px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-command-box:focus-within {
  border-color: rgba(99, 102, 241, 0.9);
  box-shadow: 0 20px 48px rgba(99, 102, 241, 0.3), 0 0 0 2px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.search-icon-svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  margin-right: 12px;
}

.search-command-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  padding: 6px 0;
}

.search-command-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-kbd-shortcut {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  user-select: none;
}

/* ─── Filter Section ─────────────────────────────────── */
.filter-bar-renewal {
  max-width: 1300px;
  margin: 0 auto 48px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Category Pills: All buttons wrap cleanly */
.category-pills-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.pill-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.35));
  border-color: rgba(167, 139, 250, 0.7);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.pill-btn .pill-count {
  font-size: 0.7rem;
  opacity: 0.75;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* Second Row: Framework Toggle & Count Display */
.filter-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.framework-control-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.framework-control-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.framework-toggle-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.fw-toggle-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fw-toggle-btn:hover {
  color: #fff;
}

.fw-toggle-btn.active {
  background: rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #fff;
  font-weight: 600;
}

.filter-status-info {
  font-size: 0.875rem;
  color: var(--muted, rgba(255, 255, 255, 0.5));
}

.filter-status-info strong {
  color: #fff;
  font-size: 1.05rem;
}

/* ─── AI Vibe Coding Guide Section ───────────────────── */
.vibe-guide-section {
  max-width: 1200px;
  margin: 80px auto 40px;
  padding: 36px 28px;
  background: rgba(13, 17, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  position: relative;
}

.guide-header {
  text-align: center;
  margin-bottom: 30px;
}

.guide-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #818cf8;
  margin-bottom: 8px;
}

.guide-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .guide-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.guide-step-card {
  padding: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.guide-step-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 8px;
}

.guide-step-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}

.guide-step-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

/* ─── SEO / AIO FAQ Section ──────────────────────────── */
.aio-faq-section {
  max-width: 1000px;
  margin: 60px auto 80px;
  padding: 0 20px;
}

.aio-faq-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: #fff;
}

.aio-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aio-faq-item {
  background: rgba(14, 18, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.aio-faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.aio-faq-item summary {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aio-faq-item summary::-webkit-details-marker {
  display: none;
}

.aio-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}

.aio-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.aio-faq-content {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}
