/* ==========================================================================
   BUTTONS & THEME TOGGLE
   ========================================================================== */

/* Contact / CTA button */
.contact-btn {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: background var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
  border: none;
}

.contact-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

/* Read more button */
.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-surface-tertiary);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}

/* Theme pill toggle */
.theme-pill-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 64px;
  height: 32px;
  border-radius: 30px;
  border: 2px solid var(--color-accent);
  background: transparent;
  padding: 2px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.theme-pill-toggle::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 24px;
  height: 24px;
  background-color: var(--color-accent);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-sun,
.toggle-moon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.toggle-sun svg,
.toggle-moon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2px;
  fill: none;
  transition: stroke 0.3s ease;
}

.toggle-sun { color: #ffffff; }
.toggle-moon { color: var(--color-accent); }

body.dark-mode .theme-pill-toggle {
  border-color: var(--color-text-primary);
}

body.dark-mode .theme-pill-toggle::before {
  background-color: var(--color-text-primary);
  transform: translateX(32px);
}

body.dark-mode .toggle-sun { color: var(--color-text-primary); }
body.dark-mode .toggle-moon { color: var(--color-surface-secondary); }

/* Back to top button */
.back-to-top-button {
  background: var(--color-surface-tertiary);
  border: 1px solid var(--color-border-secondary);
  color: var(--color-text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-to-top-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5px;
  transition: stroke 0.3s ease;
}

.back-to-top-button:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
}