/* ParentGuidePlus - Custom CSS v11 */

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-tab {
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  background: none;
}
.review-tab:hover { color: #374151; }
.review-tab.active { color: #047857; border-bottom-color: #059669; }

.accordion-content { transition: max-height 0.3s ease, opacity 0.2s ease; overflow: hidden; }
.accordion-content.hidden { display: none; }
.accordion-icon { transition: transform 0.2s ease; }
.accordion-icon.rotate-180 { transform: rotate(180deg); }

a[href*="/review/"] { transition: all 0.2s ease; }
.overflow-x-auto { scroll-behavior: smooth; }
.text-amber-400 { color: #fbbf24; }
.text-gray-300 { color: #d1d5db; }

.content-rating-card { transition: all 0.2s ease; }
.content-rating-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.lightbox-overlay { animation: lightboxFadeIn 0.2s ease-out; }
.lightbox-overlay.closing { animation: lightboxFadeOut 0.15s ease-in forwards; }
.lightbox-content { animation: lightboxScaleIn 0.2s ease-out; }
@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightboxFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes lightboxScaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

@media (min-width: 640px) {
  .sm\:h-76 { height: 19rem; }
}

/* ========== HOMEPAGE CAROUSEL ========== */

.pgp-carousel-track {
  position: relative;
}

.pgp-carousel-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.pgp-carousel-inner::-webkit-scrollbar {
  display: none;
}
.pgp-carousel-inner {
  scrollbar-width: none;
}

/* Card sizing */
.pgp-carousel-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 130px;
}
.pgp-carousel-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

@media (min-width: 640px) {
  .pgp-carousel-card { width: 140px; }
}
@media (min-width: 768px) {
  .pgp-carousel-card { width: 150px; }
}

/* Arrows - positioned inside .pgp-carousel-track */
.pgp-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pgp-carousel-arrow:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pgp-carousel-arrow-left {
  left: -4px;
}
.pgp-carousel-arrow-right {
  right: -4px;
}

/* Show arrows on hover of the track */
.pgp-carousel-track:hover .pgp-carousel-arrow {
  opacity: 0.9;
  pointer-events: auto;
}

/* ========== ARTICLE / QUILL CONTENT ========== */

.article-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
}
.article-content h1 { font-size: 2rem; font-weight: 700; color: #111827; margin: 2rem 0 0.75rem; line-height: 1.3; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: #111827; margin: 1.75rem 0 0.625rem; line-height: 1.35; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; color: #1f2937; margin: 1.5rem 0 0.5rem; line-height: 1.4; }
.article-content h4 { font-size: 1.125rem; font-weight: 600; color: #1f2937; margin: 1.25rem 0 0.5rem; }
.article-content h5 { font-size: 1rem; font-weight: 600; color: #374151; margin: 1rem 0 0.375rem; }
.article-content p { margin: 0 0 1.125rem; }
.article-content a { color: #047857; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content strong { font-weight: 700; color: #111827; }
.article-content em { font-style: italic; }
.article-content u { text-decoration: underline; }
.article-content s { text-decoration: line-through; }
.article-content ul, .article-content ol { margin: 0 0 1.125rem; padding-left: 1.5rem; }
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { margin-bottom: 0.25rem; }
.article-content li ul, .article-content li ol { margin-top: 0.25rem; margin-bottom: 0; }
.article-content blockquote {
  border-left: 4px solid #059669;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: #f9fafb;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #4b5563;
  font-style: italic;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}
.article-content code {
  background: #f3f4f6;
  color: #dc2626;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1rem 0;
}
.article-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}
.article-content iframe {
  max-width: 100%;
  border-radius: 0.75rem;
  margin: 1rem 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}
.article-content th, .article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.article-content th {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
}

/* Quill checklist */
.article-content .ql-checked { text-decoration: line-through; color: #6b7280; }
.article-content .ql-list-checkbox { list-style: none; padding-left: 0.25rem; }

/* === APPEND TO app.v11.css (or app.v10.css) === */
/* Responsive YouTube/embed video fix for article content */

.article-content iframe.ql-video {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 1.5rem auto;
  border-radius: 0.5rem;
}

.article-content iframe:not(.ql-video) {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
