/* app/assets/stylesheets/instructions.css */
/* Modern Comprehensive Styling for SBeeChamp Instructions Guide */

:root {
  --inst-bg: #f8fafc;
  --inst-navy: #07379d;
  --inst-navy-dark: #052669;
  --inst-honey: #f59e0b;
  --inst-honey-dark: #d97706;
  --inst-text: #0f172a;
  --inst-muted: #64748b;
  --inst-border: #e2e8f0;
}

.instructions-page-wrapper {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: 3rem 1.25rem 6rem 1.25rem;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--inst-text);
  overflow-x: hidden;
}

/* Ambient Ambient Glow Orbs */
.instructions-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-gold {
  top: 5%;
  left: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
}

.glow-navy {
  top: 15%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(7, 55, 157, 0.18) 0%, transparent 70%);
}

.glow-cyan {
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
}

.instructions-main-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

/* ================= HEADER ================= */
.instructions-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem auto;
}

.instructions-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.instructions-main-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--inst-navy);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  letter-spacing: -0.025em;
}

.instructions-subtitle {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

/* Filter Navigation Bar */
.instructions-nav-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 auto;
  max-width: 900px;
}

.nav-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.nav-filter-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--inst-navy);
  transform: translateY(-2px);
}

.nav-filter-pill.active {
  background: var(--inst-navy);
  color: #ffffff;
  border-color: var(--inst-navy);
  box-shadow: 0 4px 12px rgba(7, 55, 157, 0.25);
}

/* ================= GRID & CARDS ================= */
.instructions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  margin-bottom: 5rem;
}

.instruction-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--inst-border);
  border-radius: 1.75rem;
  padding: 2.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.instruction-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.instruction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.09), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

/* Card Category Tag */
.card-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.tag-indigo { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.tag-amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.tag-rose { background: #ffe4e6; color: #be123c; border: 1px solid #fecdd3; }
.tag-emerald { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.tag-amber-gold { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.tag-sky { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.tag-yellow { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.tag-purple { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.tag-teal { background: #ccfbf1; color: #0f766e; border: 1px solid #99f6e4; }

/* Card Title Group */
.card-title-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1rem;
}

.card-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
}

.icon-indigo { background: #eef2ff; border: 1.5px solid #c7d2fe; }
.icon-amber { background: #fffbeb; border: 1.5px solid #fde68a; }
.icon-rose { background: #fff1f2; border: 1.5px solid #fecdd3; }
.icon-emerald { background: #ecfdf5; border: 1.5px solid #a7f3d0; }
.icon-amber-gold { background: #fffbeb; border: 1.5px solid #fcd34d; }
.icon-sky { background: #f0f9ff; border: 1.5px solid #bae6fd; }
.icon-yellow { background: #fefce8; border: 1.5px solid #fde047; }
.icon-purple { background: #faf5ff; border: 1.5px solid #e9d5ff; }
.icon-teal { background: #f0fdfa; border: 1.5px solid #99f6e4; }

.card-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.card-subheading {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-top: 0.15rem;
}

.card-intro {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

/* Steps List */
.instruction-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.2s ease;
}

.instruction-step:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(3px);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--inst-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.step-content p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.step-content code {
  background: #e2e8f0;
  color: #07379d;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Pro Tip Boxes */
.card-pro-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-pro-tip .tip-icon {
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.tip-indigo { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; }
.tip-amber { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.tip-rose { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.tip-emerald { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.tip-amber-gold { background: #fefce8; border: 1px solid #fef08a; color: #854d0e; }
.tip-sky { background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; }
.tip-yellow { background: #fef9c3; border: 1px solid #fde047; color: #713f12; }
.tip-purple { background: #faf5ff; border: 1px solid #e9d5ff; color: #581c87; }
.tip-teal { background: #f0fdfa; border: 1px solid #99f6e4; color: #115e59; }

/* Card CTA Buttons */
.card-cta-footer {
  margin-top: auto;
  width: 100%;
}

.btn-action {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-indigo { background: #4f46e5; color: #ffffff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); }
.btn-indigo:hover { background: #4338ca; color: #ffffff; }

.btn-amber { background: #f59e0b; color: #ffffff; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25); }
.btn-amber:hover { background: #d97706; color: #ffffff; }

.btn-rose { background: #e11d48; color: #ffffff; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25); }
.btn-rose:hover { background: #be123c; color: #ffffff; }

.btn-emerald { background: #059669; color: #ffffff; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25); }
.btn-emerald:hover { background: #047857; color: #ffffff; }

.btn-amber-gold { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #ffffff; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3); }
.btn-amber-gold:hover { background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%); color: #ffffff; }

.btn-sky { background: #0284c7; color: #ffffff; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25); }
.btn-sky:hover { background: #0369a1; color: #ffffff; }

.btn-yellow { background: #ca8a04; color: #ffffff; box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25); }
.btn-yellow:hover { background: #a16207; color: #ffffff; }

.btn-purple { background: #7c3aed; color: #ffffff; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25); }
.btn-purple:hover { background: #6d28d9; color: #ffffff; }

.btn-teal { background: #0d9488; color: #ffffff; box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25); }
.btn-teal:hover { background: #0f766e; color: #ffffff; }

/* ================= BOTTOM BANNER ================= */
.instructions-bottom-banner {
  background: linear-gradient(135deg, #07379d 0%, #1e1b4b 60%, #312e81 100%);
  border-radius: 2rem;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(7, 55, 157, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bottom-banner-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 1rem;
}

.bottom-banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}

.bottom-banner-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

.bottom-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-banner-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}

.btn-banner-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-3px);
  color: #ffffff;
}

.btn-banner-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-banner-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-3px);
  color: #ffffff;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .instructions-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .instructions-page-wrapper {
    padding: 2rem 1rem 4rem 1rem;
  }

  .instructions-main-title {
    font-size: 2.1rem;
  }

  .instructions-subtitle {
    font-size: 1rem;
  }

  .instruction-card {
    padding: 1.75rem 1.25rem;
  }

  .bottom-banner-title {
    font-size: 1.65rem;
  }
}
