/*
Theme Name:  PinBoostr
Theme URI:   https://pinboostr.com
Description: Custom theme for PinBoostr — Pinterest Automation SaaS
Version:     1.0.0
Author:      PinBoostr
Author URI:  https://pinboostr.com
Text Domain: pinboostr
*/

/* ── Base: overrides for WP core quirks ─────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Remove default WP admin bar spacing on frontend */
html {
  margin-top: 0 !important;
}
#wpadminbar {
  display: none;
}
@media screen and (min-width: 783px) {
  html body.admin-bar {
    margin-top: 0 !important;
  }
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #ef4444, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism nav */
.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
}

/* Dot grid hero background */
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(239, 68, 68, 0.08) 1px, transparent 0);
  background-size: 40px 40px;
}

/* Card lift on hover */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}
.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-top: 12px;
}

/* ── Accessibility: skip link ────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only.focus\:not-sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ── Blog: prose typography overrides ───────────────────── */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose p {
  margin-bottom: 1.25rem;
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.prose ul {
  list-style-type: disc;
}
.prose ol {
  list-style-type: decimal;
}
.prose ul ul {
  list-style-type: circle;
}
.prose ul ul ul {
  list-style-type: square;
}
.prose li {
  display: list-item;
  margin-bottom: 0.4rem;
}
.prose blockquote {
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
}
.prose img {
  max-width: 100%;
  border-radius: 0.75rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}
.prose thead {
  background-color: #f3f4f6;
}
.prose th {
  border: 1px solid #d1d5db;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
}
.prose td {
  border: 1px solid #e5e7eb;
  padding: 0.6rem 1rem;
  color: #4b5563;
}
.prose tr:nth-child(even) td {
  background-color: #f9fafb;
}

/* ── Pagination ──────────────────────────────────────────── */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: all 0.2s;
  text-decoration: none;
}
.page-numbers:hover,
.page-numbers.current {
  background: linear-gradient(135deg, #ef4444, #ec4899);
  color: #fff;
  border-color: transparent;
}
.page-numbers.dots {
  border-color: transparent;
  background: transparent;
}
nav .page-numbers {
  margin: 0 2px;
}

/* ── Utility: line-clamp ─────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Focus ring for keyboard nav ─────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* ── Tailwind's `hidden` — ensure display none ──────────── */
[hidden] {
  display: none !important;
}
