/* ===== Crafts UI Utilities ===== */
/* Buttons */
.btn-crafts {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border: 2px solid #333;
  border-radius: 8px;
  color: #E0E0E0;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.25s ease;
  overflow: hidden;
}

.btn-crafts::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(92, 163, 22, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-crafts:hover::before,
.btn-crafts:focus::before {
  left: 100%;
}

.btn-crafts:hover,
.btn-crafts:focus {
  color: #fff;
  border-color: #5CA316;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(92, 163, 22, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-crafts--accent {
  background: linear-gradient(135deg, #24341c 0%, #1b2615 100%);
  border-color: #314a24;
}

.btn-crafts--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-crafts--lg { height: 48px; padding: 0 20px; font-size: 16px; }

/* Icon button */
.btn-icon-crafts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: #1b1b1b;
  border: 2px solid #333;
  border-radius: 8px;
  color: #E0E0E0;
  transition: all 0.25s ease;
}
.btn-icon-crafts:hover,
.btn-icon-crafts:focus {
  color: #fff;
  border-color: #5CA316;
  transform: translateY(-2px);
}

/* Inputs */
.input-crafts,
.textarea-crafts {
  width: 100%;
  background: #121212;
  color: #e5e5e5;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-crafts:focus,
.textarea-crafts:focus {
  outline: 2px solid #5CA316;
  outline-offset: 2px;
  border-color: #3a5b29;
}

/* Cards */
.card-crafts {
  background: linear-gradient(135deg, #121212 0%, #0f0f0f 100%);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

/* Toggle (Accordion button) */
/* Use with .btn-crafts in markup */
.toggle-crafts { cursor: pointer; }

/* Chips (variants) */
.chip-crafts {
  background: #121212;
  color: #f0f0f0;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chip-crafts:hover,
.chip-crafts:focus {
  background: #1b1b1b;
  outline: 2px solid #5CA316;
  outline-offset: 2px;
}
.chip-crafts.active { background: #24341c; border-color: #5CA316; }

/* Make SocialLinks anchors share socialm anchor styling */
.social-links a { all: unset; }
.social-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px; height: 45px;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border: 2px solid #333;
  border-radius: 8px;
  color: #B3B3B3;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}
.social-links a::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(92, 163, 22, 0.2), transparent);
  transition: left 0.6s ease;
}
.social-links a:hover::before { left: 100%; }
.social-links a:hover { color: #fff; border-color: #5CA316; transform: translateY(-3px) scale(1.05); }

/* Mobile tweaks */
@media (max-width: 768px) {
  .btn-crafts { height: 38px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-crafts, .btn-icon-crafts, .chip-crafts, .social-links a { transition: none !important; }
}
