/*
Theme Name: Playcet
Theme URI: https://playcet.bet.ar
Description: Tema de WordPress para Playcet Argentina: página de inicio estática, blog dinámico, sin metadatos, sin comentarios. Deportes y casino online, Lotería de Córdoba.
Version: 1.0.0
Author: Playcet
License: GNU General Public License v2 or later
Text Domain: playcet
*/

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

/* Сдвиг фиксированной шапки при включённой админ-панели WordPress */
body.admin-bar .pc-site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .pc-site-header {
    top: 46px;
  }
}

/* ---------- Hero slideshow ---------- */
.pc-hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.pc-hero-slide.is-active {
  opacity: 1;
}

.pc-hero-dot {
  height: 6px;
  width: 20px;
  border-radius: 9999px;
  background: rgb(250 245 242 / 0.4);
  transition: all 0.5s;
}
.pc-hero-dot:hover {
  background: rgb(250 245 242 / 0.7);
}
.pc-hero-dot.is-active {
  width: 48px;
  background: #ff6b5e;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Меню из админки ---------- */
.pc-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pc-menu li a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5c3a40;
  text-decoration: none;
  transition: color 0.2s;
}
.pc-menu li a:hover {
  color: #c1121f;
}
.pc-menu li.current-menu-item > a,
.pc-menu li.current_page_item > a {
  color: #c1121f;
}
.pc-menu--vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}
.pc-menu--vertical li a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  color: #2b0d12;
}
.pc-menu--vertical li a:hover {
  background: #fbe9e4;
  color: #2b0d12;
}
.pc-menu--footer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
}
.pc-menu--footer li a {
  padding: 0;
  font-size: 0.875rem;
  color: rgb(250 245 242 / 0.8);
}
.pc-menu--footer li a:hover {
  color: #faf5f2;
}

/* ---------- Мобильная панель ---------- */
.pc-nav-panel {
  display: none;
}
.pc-nav-panel.is-open {
  display: block;
}

/* ---------- Магнитные кнопки ---------- */
.pc-magnetic {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ---------- Типографика записи (контент из админки) ---------- */
.pc-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #5c3a40;
}
.pc-content > * {
  margin-bottom: 1.5rem;
}
.pc-content h2,
.pc-content h3,
.pc-content h4 {
  font-family: 'Unbounded', 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #2b0d12;
  margin-top: 2.5rem;
}
.pc-content h2 { font-size: 1.4rem; }
.pc-content h3 { font-size: 1.15rem; }
.pc-content a {
  color: #c1121f;
  font-weight: 600;
}
.pc-content ul,
.pc-content ol {
  padding-left: 1.4rem;
}
.pc-content li {
  margin-bottom: 0.5rem;
}
.pc-content img {
  border-radius: 1rem;
}
.pc-content blockquote {
  border-left: 4px solid #c1121f;
  background: #fbe9e4;
  border-radius: 0 1rem 1rem 0;
  padding: 1rem 1.25rem;
  font-style: italic;
}
.pc-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pc-content th {
  text-align: left;
  color: #c1121f;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  background: rgb(251 233 228 / 0.7);
}
.pc-content td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #ece0d8;
  vertical-align: top;
}

/* ---------- Пагинация блога ---------- */
.pc-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  border: 1px solid #ece0d8;
  font-weight: 600;
  font-size: 0.875rem;
  color: #5c3a40;
  text-decoration: none;
  transition: all 0.2s;
}
.pc-pagination .page-numbers:hover {
  border-color: #c1121f;
  color: #c1121f;
}
.pc-pagination .page-numbers.current {
  background: #c1121f;
  border-color: #c1121f;
  color: #faf5f2;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
