/*
Theme Name: Syed Ejaz Digital Library - Stitch
Theme URI: https://syedejaz.com
Author: Syed Ejaz Gillani
Author URI: https://syedejaz.com
Description: Professional custom WordPress theme for Syed Ejaz Digital Library, designed with Google Stitch — The Illuminated Archive design system. Features organic minimalism, editorial typography, glassmorphism navigation, and aquatic gradients.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stitch-ejaz
Tags: custom-theme, digital-library, editorial, books

This theme is based on the "The Illuminated Archive" design system, engineered
to transcend the typical "template" aesthetic of digital repositories.
*/

/* --- Critical Base Overrides for WordPress --- */
/* WordPress adds its own styles via admin bar etc. These ensure Stitch design wins. */

/* Reset WordPress defaults that conflict with Tailwind */
body {
  margin: 0;
  padding: 0;
}

/* WordPress admin bar spacing fix */
body.admin-bar .fixed {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .fixed {
    top: 46px !important;
  }
}

/* Ensure WordPress content doesn't break Stitch layout */
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* WordPress block editor compatibility */
.wp-block-group {
  max-width: 100%;
}

/* --- Family Carousel Auto-Scroll Marquee --- */
.family-carousel-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.family-carousel-container::-webkit-scrollbar {
  display: none;
}

.family-carousel-track {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  animation: family-scroll 35s linear infinite;
  will-change: transform;
}

.family-carousel-container:hover .family-carousel-track,
.family-carousel-container:active .family-carousel-track,
.family-carousel-track:hover,
.family-carousel-track:active {
  animation-play-state: paused;
}

@keyframes family-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-carousel-track {
    animation: none;
  }
}
