/* ============================================
   GSAP + Webflow Guide Page Styles
   ============================================ */

:root {
  --gs-primary: #00FF66;
  --gs-secondary: #00CC88;
  --gs-dark: #1A1A2E;
  --gs-darker: #0F0F1A;
  --gs-dark-alt: #2A2A3E;
  --transition-speed: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */

.wf-hero {
  background: linear-gradient(135deg, var(--gs-darker) 0%, var(--gs-dark) 100%);
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
}

/* ::before gradient replaced by shared hero-bg-anim system */

.wf-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.wf-badge {
  background: rgba(0, 255, 102, 0.15);
  border: 1px solid var(--gs-primary);
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.wf-hero .btn {
  font-size: 1rem;
  padding: 0.75rem 2.5rem;
  transition: all var(--transition-speed) ease;
}

.btn-gs-primary {
  background: var(--gs-primary);
  color: var(--gs-darker);
  border: 2px solid var(--gs-primary);
}

.btn-gs-primary:hover {
  background: transparent;
  color: var(--gs-primary);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--gs-primary);
  color: var(--gs-primary);
}

.btn-outline-primary:hover {
  background: var(--gs-primary);
  color: var(--gs-darker);
  transform: translateY(-2px);
}

/* ============================================
   SECTION SPACING
   ============================================ */

.wf-section {
  position: relative;
  z-index: 1;
}

.wf-section:nth-child(even) {
  background: var(--gs-dark);
}

.wf-section:nth-child(odd) {
  background: var(--gs-darker);
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.wf-code {
  background: var(--gs-darker);
  border: 1px solid var(--gs-dark-alt);
  overflow-x: auto;
  position: relative;
}

.wf-code pre {
  margin: 0;
  overflow: visible;
}

.wf-code code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.wf-copy-btn {
  position: relative;
  transition: all var(--transition-speed) ease;
}

.wf-copy-btn:hover {
  background: rgba(0, 255, 102, 0.1);
  border-color: var(--gs-primary);
  color: var(--gs-primary);
}

.wf-copy-btn.copied {
  animation: pulse 0.4s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ============================================
   CALLOUT BOXES
   ============================================ */

.wf-callout {
  background: rgba(0, 255, 102, 0.05);
  position: relative;
  transition: all var(--transition-speed) ease;
}

.wf-callout:hover {
  background: rgba(0, 255, 102, 0.08);
}

.wf-callout h4 {
  display: flex;
  align-items: center;
}

.wf-callout i {
  margin-right: 0.75rem;
}

.wf-callout.border-warning {
  border-color: #ffc107 !important;
}

.wf-callout.border-danger {
  border-color: #dc3545 !important;
}

.wf-callout.border-success {
  border-color: #28a745 !important;
}

.wf-callout.border-info {
  border-color: #17a2b8 !important;
}

.wf-callout.border-secondary {
  border-color: var(--gs-secondary) !important;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.wf-compare-table {
  border-collapse: collapse;
}

.wf-compare-table th,
.wf-compare-table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--gs-dark-alt);
}

.wf-compare-table th {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wf-compare-table tbody tr {
  transition: background-color var(--transition-speed) ease;
}

.wf-compare-table tbody tr:hover {
  background: rgba(0, 255, 102, 0.05);
}

.wf-compare-table td:first-child {
  font-weight: 600;
}

/* ============================================
   STEP CARDS
   ============================================ */

.wf-step {
  background: rgba(0, 255, 102, 0.03);
  border-left: 3px solid var(--gs-primary);
  transition: all var(--transition-speed) ease;
}

.wf-step:hover {
  background: rgba(0, 255, 102, 0.08);
  border-left-color: var(--gs-secondary);
  transform: translateX(4px);
}

.wf-step-num {
  font-size: 1.5rem;
  min-width: 50px;
  display: flex;
  align-items: center;
}

.wf-step h4 {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* ============================================
   BENEFIT CARDS
   ============================================ */

.wf-benefit-card {
  background: var(--gs-dark-alt);
  border: 1px solid transparent;
  transition: all var(--transition-speed) ease;
}

.wf-benefit-card:hover {
  border-color: var(--gs-primary);
  transform: translateY(-4px);
}

.wf-benefit-card h4 {
  font-size: 1.1rem;
}

.wf-benefit-card i {
  font-size: 1.3rem;
}

/* ============================================
   ACCORDION / FAQ
   ============================================ */

.wf-accordion-item {
  transition: all var(--transition-speed) ease;
}

.wf-accordion-toggle {
  color: inherit;
  cursor: pointer;
  user-select: none;
}

.wf-accordion-toggle:hover {
  color: var(--gs-primary);
}

.wf-accordion-toggle:hover h4 {
  color: var(--gs-primary);
}

.wf-accordion-toggle i {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
}

.wf-accordion-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.wf-accordion-item.collapse.show .wf-accordion-toggle {
  color: var(--gs-primary);
}

.wf-accordion-item.collapse.show h4 {
  color: var(--gs-primary);
}

/* ============================================
   GUIDE CARDS (Related Guides)
   ============================================ */

.card-guide {
  background: var(--gs-dark-alt);
  border: 2px solid transparent !important;
  transition: all var(--transition-speed) ease;
}

.card-guide:hover {
  transform: translateY(-8px);
  border-color: currentColor !important;
}

.card-guide span {
  transition: color var(--transition-speed) ease;
}

.card-guide:hover span {
  color: inherit;
}

/* ============================================
   GRADIENT BACKGROUND
   ============================================ */

.bg-gradient-gs {
  background: linear-gradient(135deg, var(--gs-dark) 0%, var(--gs-darker) 100%);
  position: relative;
}

.bg-gradient-gs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 255, 102, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

.ls-wide {
  letter-spacing: 0.15em;
}

.bg-gs-dark {
  background-color: var(--gs-dark);
}

.bg-gs-darker {
  background-color: var(--gs-darker);
}

.bg-gs-dark-alt {
  background-color: var(--gs-dark-alt);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
  .wf-hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .wf-step {
    flex-direction: column;
    gap: 1rem;
  }

  .wf-step-num {
    min-width: auto;
  }

  .wf-badge {
    font-size: 0.75rem;
  }

  .wf-code {
    overflow-x: auto;
  }

  .wf-code code {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .wf-hero {
    min-height: 70vh;
    padding: 3rem 1rem;
  }

  .wf-hero::before {
    width: 300px;
    height: 300px;
  }

  .wf-section {
    padding: 3rem 1.5rem !important;
  }

  .display-6 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .wf-compare-table th,
  .wf-compare-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .wf-compare-table {
    font-size: 0.85rem;
  }

  .wf-step {
    padding: 1.25rem !important;
  }

  .wf-code {
    padding: 1.5rem !important;
  }

  .wf-code code {
    font-size: 0.75rem;
  }

  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .row.g-4 > .col-md-6 {
    margin-bottom: 1rem;
  }

  .wf-accordion-item {
    margin-bottom: 0.75rem !important;
    padding: 1rem !important;
  }

  .wf-accordion-toggle h4 {
    font-size: 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================
   FOCUS STYLES (Accessibility)
   ============================================ */

button:focus,
a:focus {
  outline: 2px solid var(--gs-primary);
  outline-offset: 2px;
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.transition {
  transition: all var(--transition-speed) ease;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CODE SYNTAX HIGHLIGHTING (Optional)
   ============================================ */

.text-primary {
  color: var(--gs-primary) !important;
}

.text-secondary {
  color: var(--gs-secondary) !important;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gs-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gs-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gs-secondary);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .wf-hero,
  .wf-callout,
  .btn,
  .wf-badge {
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }
}
