/* ===================================================
   Vinny InfoCell — Custom Styles
   Brand colors: #041728 (brand) | #017FF8 (accent) | #59D29D (accent-g)
   =================================================== */

/* ── Base ── */
body {
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Hide scrollbar utility */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Remove default details marker */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #F0F5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.dark #preloader {
  background: #040F1A;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
#preloader-inner {
  position: relative;
  width: 6rem;
  height: 6rem;
}
#preloader-inner::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(1, 127, 248, 0.15);
  border-top-color: #017FF8;
  animation: preloader-spin 0.9s linear infinite;
}
.preloader-logo-box {
  width: 6rem;
  height: 6rem;
  border-radius: 1.25rem;
  background: rgba(1, 127, 248, 0.1);
  border: 1px solid rgba(1, 127, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

/* ── Linktree Buttons (mobile) ── */
.linktree-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.01em;
}
.linktree-btn:active {
  transform: scale(0.97);
}
.linktree-btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

/* Small linktree buttons */
.linktree-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.linktree-btn-sm:hover {
  opacity: 0.88;
}

/* ── Accordion Cards ── */
.accordion-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(4, 23, 40, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.dark .accordion-card {
  background: #0A1F2E;
  border-color: rgba(1, 127, 248, 0.12);
}
.accordion-card[open] {
  box-shadow: 0 4px 20px rgba(1, 127, 248, 0.08);
}
.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}
.accordion-content {
  padding: 0 1.25rem 1.25rem;
  line-height: 1.65;
}
/* Rotate icon when open */
.accordion-card[open] .accordion-icon {
  transform: rotate(180deg);
}

/* ── Service Card ── */
.service-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(1, 127, 248, 0.12);
  border-color: rgba(1, 127, 248, 0.25) !important;
}

/* ── Catalog Category Tabs ── */
.catalog-tab-active {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: #017FF8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(1, 127, 248, 0.35);
  border: 2px solid #017FF8;
  cursor: pointer;
}

.catalog-tab-inactive {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: transparent;
  color: rgba(4, 23, 40, 0.6);
  border: 1.5px solid rgba(4, 23, 40, 0.12);
  cursor: pointer;
}
.dark .catalog-tab-inactive {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}
.catalog-tab-inactive:hover {
  border-color: #017FF8;
  color: #017FF8;
}

/* ── Catalog Skeletons (loading state) ── */
.catalog-tab-skeleton {
  background: rgba(4, 23, 40, 0.07);
}
.dark .catalog-tab-skeleton {
  background: rgba(255, 255, 255, 0.07);
}
.catalog-card-skeleton {
  background: rgba(4, 23, 40, 0.06);
}
.dark .catalog-card-skeleton {
  background: rgba(255, 255, 255, 0.06);
}

/* ── Catalog Card ── */
.catalog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.catalog-card:hover {
  transform: translateY(-2px);
}

/* ── Hero grid overlay ── */
.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(1, 127, 248, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 127, 248, 0.4) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Back to Top Button ── */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 18px;
  border-radius: 50%;
  background: #F0F5FA;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 50;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  color: #041728;
}
.dark #backToTop {
  background: #0A1F2E;
  color: #ffffff;
}
#backToTop .material-symbols-outlined {
  font-size: 20px;
}
#backToTop.visible {
  transform: scale(1);
}
#backToTop:hover {
  box-shadow: 0 6px 24px rgba(1, 127, 248, 0.4);
}
#backToTop svg {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  transform: rotate(-90deg);
  pointer-events: none;
}

@media screen and (max-width: 640px) {
  #backToTop {
    width: 2rem;
    height: 2rem;
    bottom: 1rem;
    right: 1rem;
  }
  #backToTop .material-symbols-outlined {
    font-size: 16px;
  }
}

/* ── Header shrink on scroll ── */
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(4, 23, 40, 0.1);
}
.dark #site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Copied button state ── */
#copyBtn.copied, #copyBtnDsk.copied {
  border-color: #59D29D !important;
  color: #59D29D !important;
}
