/*
Theme Name: WPF Studio
Theme URI: https://example.com/
Author: WPF Studio
Author URI: https://example.com/
Description: Tailwind-based WordPress theme converted from the static HTML in this repo.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpf-studio
Tags: tailwindcss, blog, portfolio, responsive
*/

/*
  This file is intentionally minimal. Styles are built via Tailwind and enqueued from assets/css/tailwind.min.css
*/

/* Entry content typography tweaks for better readability on posts */
.entry-content {
  max-width: 72ch;
}
.entry-content p {
  margin-bottom: 1.25rem;
  color: #4b5563; /* gray-600 */
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75rem; /* leading-relaxed */
}
.entry-content h2 {
  margin-top: 2.5rem; /* mt-10 */
  margin-bottom: 1rem; /* mb-4 */
  font-size: 2rem; /* ~text-3xl */
  line-height: 1.2;
  font-weight: 800; /* font-extrabold */
  color: #111827; /* gray-900 */
}
/* Also style h1, h5, h6 for pages/posts content */
.entry-content h1 {
  margin-top: 2.75rem; /* mt-11 */
  margin-bottom: 1.25rem; /* mb-5 */
  font-size: 2.5rem; /* text-4xl+ */
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
}
@media (min-width: 768px) {
  .entry-content h1 { font-size: 3rem; }
}
.entry-content h5 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem; /* text-lg */
  font-weight: 700;
}
.entry-content h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1rem; /* text-base */
  font-weight: 700;
}
@media (min-width: 768px) {
  .entry-content h2 {
    font-size: 2.25rem; /* text-4xl */
  }
}
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem; /* text-2xl */
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}
.entry-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
}
.entry-content img, .entry-content video, .entry-content iframe {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto; /* my-8 */
  border-radius: 0.75rem; /* rounded-xl */
}
.entry-content blockquote {
  margin: 1.75rem 0;
  padding-left: 1rem;
  border-left: 4px solid #d1d5db; /* gray-300 */
  color: #374151; /* gray-700 */
  font-style: italic;
}
.entry-content ul, .entry-content ol {
  margin: 1.25rem 0 1.25rem 1.25rem; /* my-5 ml-5 */
}
.entry-content li {
  margin-bottom: 0.5rem;
}
.entry-content code, .entry-content pre {
  background: #f9fafb; /* gray-50 */
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 0.375rem; /* rounded-md */
}
.entry-content pre {
  padding: 1rem; /* p-4 */
  overflow: auto;
}

/* ============================================================
   Motion & animations (WPF Studio)
   ============================================================ */

/* Scroll reveal base */
.wpf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.wpf-reveal.wpf-reveal-left { transform: translateX(-32px); }
.wpf-reveal.wpf-reveal-right { transform: translateX(32px); }
.wpf-reveal.wpf-reveal-zoom { transform: scale(0.92); }
.wpf-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered reveal delays */
.wpf-delay-1 { transition-delay: 0.1s; }
.wpf-delay-2 { transition-delay: 0.2s; }
.wpf-delay-3 { transition-delay: 0.3s; }
.wpf-delay-4 { transition-delay: 0.4s; }
.wpf-delay-5 { transition-delay: 0.5s; }

/* Gentle floating for decorative images */
@keyframes wpf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.wpf-float { animation: wpf-float 5s ease-in-out infinite; }
.wpf-float-slow { animation: wpf-float 8s ease-in-out infinite; }

/* Soft breathing glow for background lights */
@keyframes wpf-pulse-soft {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.wpf-pulse-soft { animation: wpf-pulse-soft 5s ease-in-out infinite; }

/* Card hover lift */
.wpf-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.wpf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button shine sweep */
.wpf-btn-shine {
  position: relative;
  overflow: hidden;
}
.wpf-btn-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.wpf-btn-shine:hover::before { left: 140%; }

/* Animated underline for links */
.wpf-link { position: relative; }
.wpf-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.wpf-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Image slow zoom on hover */
.wpf-zoom-img { overflow: hidden; }
.wpf-zoom-img img {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wpf-zoom-img:hover img { transform: scale(1.06); }

/* Navbar helpers (the compiled Tailwind build is missing ml-12 / lg:block / lg:inline-block) */
@media (min-width: 1024px) {
  .wpf-nav-toggle-gap { margin-left: 3rem; } /* replaces ml-12 */
  .wpf-nav-cta-gap   { margin-left: 1rem; }  /* replaces ml-4  */
}

/* Gradient text shimmer for headings */
@keyframes wpf-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.wpf-text-gradient {
  background: linear-gradient(90deg, #009ee1, #5b26e1, #e31e76, #009ee1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: wpf-shimmer 6s linear infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wpf-reveal,
  .wpf-reveal.wpf-reveal-left,
  .wpf-reveal.wpf-reveal-right,
  .wpf-reveal.wpf-reveal-zoom {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wpf-float,
  .wpf-float-slow,
  .wpf-pulse-soft,
  .wpf-text-gradient,
  .wpf-card,
  .wpf-zoom-img img {
    animation: none;
    transition: none;
  }
}
