/* =============================================
   DATAFLOW – components.css
   Buttons, Theme Toggle, Utilities
   ============================================= */

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-button);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--accent-1);
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-overlay);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.55);
}

.btn-ghost {
  background: var(--ghost-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent-1);
  border: 1.5px solid var(--accent-1);
}
.btn-outline:hover {
  background: rgba(99,102,241,0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ghost-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.theme-toggle .fa-sun {
  color: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.theme-toggle .fa-moon {
  color: #a5b4fc;
  filter: drop-shadow(0 0 8px rgba(165, 180, 252, 0.4));
}

.theme-toggle:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--border-hover);
  transform: scale(1.08) rotate(12deg);
}

.theme-toggle:active {
  transform: scale(0.93) rotate(0deg);
}
