/* ============================================================
   HHpoker 德扑圈 — Industrial Brutalist Stylesheet
   Palette: zinc-800 #27242a | zinc-900 #1c1b1f | amber-500 #f59e0b
   ============================================================ */

/* ----- Base ----- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

::selection {
  background: #f59e0b;
  color: #1c1b1f;
}

*:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

/* ----- Brutalist Buttons ----- */
.brutal-btn,
.brutal-btn-amber,
.brutal-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
  line-height: 1;
}

.brutal-btn,
.brutal-btn-amber {
  background: #f59e0b;
  color: #1c1b1f;
  border-color: #f59e0b;
}

.brutal-btn:hover,
.brutal-btn-amber:hover {
  background: #1c1b1f;
  color: #f59e0b;
  border-color: #f59e0b;
}

.brutal-btn:active,
.brutal-btn-amber:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.brutal-btn-outline {
  background: transparent;
  color: #f59e0b;
  border-color: #f59e0b;
}

.brutal-btn-outline:hover {
  background: #f59e0b;
  color: #1c1b1f;
}

.brutal-btn-outline:active {
  transform: translate(2px, 2px);
}

/* ----- Brutalist Image Wrapper ----- */
.brutal-image-wrapper {
  position: relative;
  border: 4px solid #f59e0b;
  overflow: hidden;
  background: #27242a;
  /* Brutalist offset shadow using borders */
  box-shadow: 12px 12px 0 0 #f59e0b;
}

.brutal-image {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.1) saturate(0.85);
  transition: filter 0.3s ease;
}

.brutal-image-wrapper:hover .brutal-image {
  filter: contrast(1.0) saturate(1.0);
}

.brutal-image-label {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #f59e0b;
  color: #1c1b1f;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  text-transform: uppercase;
  border-top: 2px solid #1c1b1f;
  border-left: 2px solid #1c1b1f;
}

/* ----- Brutalist Cards (features, testimonials) ----- */
.brutal-card {
  background: #1c1b1f;
  border: 3px solid #27242a;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.brutal-card:hover {
  border-color: #f59e0b;
}

.brutal-card.group:hover {
  transform: translate(-2px, -2px);
}

/* ----- Brutalist Stat ----- */
.brutal-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 3px solid #27242a;
  background: transparent;
  transition: border-color 0.2s ease;
}

.brutal-stat:hover {
  border-color: #f59e0b;
}

/* ----- Brutalist FAQ ----- */
.brutal-faq {
  background: #1c1b1f;
  border: 3px solid #27242a;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.brutal-faq:hover {
  border-color: #f59e0b;
}

.brutal-faq.active {
  border-color: #f59e0b;
}

.faq-toggle {
  background: none;
  border: none;
  color: #e4e4e7;
  cursor: pointer;
  font-family: inherit;
}

.faq-toggle i {
  transition: transform 0.25s ease;
}

.brutal-faq.active .faq-toggle i {
  transform: rotate(45deg);
}

.faq-content {
  animation: faqSlide 0.25s ease;
}

@keyframes faqSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Brutalist CTA Card ----- */
.brutal-cta-card {
  background: #1c1b1f;
  border: 4px solid #f59e0b;
  padding: 3rem 2rem;
}

@media (min-width: 640px) {
  .brutal-cta-card {
    padding: 4rem 3rem;
  }
}

/* ----- Brutalist Avatar ----- */
.brutal-avatar {
  border: 2px solid #f59e0b;
  border-radius: 0;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

/* ----- CS Float Panel Animations ----- */
#csPanel {
  animation: panelIn 0.2s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ----- Navbar scroll shrink effect ----- */
#navbar.scrolled {
  background: #1c1b1f;
  border-bottom-width: 3px;
}

/* ----- Count-up animation ----- */
@keyframes pulseCount {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.counting {
  animation: pulseCount 0.3s ease;
}

/* ----- Back to Top ----- */
#backToTop {
  cursor: pointer;
}

#backToTop.show {
  display: flex !important;
}

/* ----- Brutalist hover helper for footer links ----- */
footer a,
footer span {
  transition: color 0.15s ease;
}

/* ----- Responsive adjustments ----- */
@media (max-width: 640px) {
  .brutal-image-wrapper {
    box-shadow: 6px 6px 0 0 #f59e0b;
  }

  .brutal-cta-card {
    padding: 2rem 1.25rem;
  }

  .brutal-card {
    padding: 1.25rem;
  }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .faq-content {
    animation: none;
  }

  #csPanel {
    animation: none;
  }

  .brutal-btn:active,
  .brutal-btn-amber:active,
  .brutal-btn-outline:active {
    transform: none;
  }
}
