/*
Theme Name: Naat Academy
Theme URI: https://naatacademy.in
Author: Naat Academy
Author URI: https://naatacademy.in
Description: Pixel-perfect WordPress theme for Naat Academy — an Islamic literary & poetry platform. Faithful conversion of the original HTML design with Tailwind, Swiper, and dynamic WordPress content (kalaam, poets, books, durood, articles, tazmeen, eBooks).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naat-academy
Tags: islamic, poetry, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Custom Styles Section (ported 1:1 from assets/css/style.css)
   ============================================================ */
html { font-size: 105%; scroll-behavior: smooth; }
body { background-color: #f8fafc; overflow-x: hidden; -webkit-tap-highlight-color: transparent; font-family: 'Montserrat', sans-serif; }

.font-urdu { font-family: 'Noto Nastaliq Urdu', serif !important; line-height: 2.2; }

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

.section-title-bar { position: relative; }

.typo-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border-radius: 1rem; }
.shine-edge { position: relative; overflow: hidden; }
.shine-edge::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(251, 191, 36, 0.5) 50%, rgba(255,255,255,0) 100%); opacity: 0.8; }

#story-modal { transition: opacity 0.3s ease, visibility 0.3s ease; }
#story-modal.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#story-modal:not(.hidden) { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-content { transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
#story-modal:not(.hidden) .modal-content { transform: scale(1); }

.story-progress-bar { height: 2px; background-color: rgba(255, 255, 255, 0.3); border-radius: 2px; overflow: hidden; flex: 1; }
.story-progress-fill { height: 100%; background-color: white; width: 0%; transition: width 0.1s linear; }
.story-progress-fill.active { width: 100%; }

.reveal-on-scroll { opacity: 0; transform: translateY(15px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Hero Animation Styles */
.hero-perspective { perspective: 1000px; }
.hero-rotate { transform: rotateY(-12deg) rotateX(8deg); }
@keyframes slideDownSlow {
    0% { transform: translateY(-5%); }
    50% { transform: translateY(5%); }
    100% { transform: translateY(-5%); }
}
@keyframes slideUpSlow {
    0% { transform: translateY(5%); }
    50% { transform: translateY(-5%); }
    100% { transform: translateY(5%); }
}
.animate-slide-down-slow { animation: slideDownSlow 20s ease-in-out infinite; }
.animate-slide-up-slow { animation: slideUpSlow 20s ease-in-out infinite; }

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(52, 211, 153, 0.4), 0 0 20px rgba(52, 211, 153, 0.2); }
    50% { text-shadow: 0 0 20px rgba(52, 211, 153, 0.7), 0 0 30px rgba(52, 211, 153, 0.5); }
}
.animate-text-glow { animation: textGlow 2.5s ease-in-out infinite; }

/* Custom Coverflow Pagination */
.mobile-coverflow-slider .swiper-pagination {
    bottom: 0px !important;
}
.mobile-coverflow-slider .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}
.mobile-coverflow-slider .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

@media (min-width: 1024px) {
    .swiper-3d {
        perspective: 280px !important;
    }
}

/* ============================================================
   Single Kalaam page styles (ported from single_kalaam.html)
   ============================================================ */
@font-face {
    font-family: 'NaatFont';
    src: url('https://res.cloudinary.com/awescreative/raw/upload/v1749150996/Awes/naatfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body.single-kalaam {
    background-color: #fafaf9;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23d9a60e" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

body.single-kalaam .font-urdu {
    font-family: 'NaatFont', serif !important;
    line-height: 1.6;
    word-spacing: normal;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.verse-block {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
}
.verse-block:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transform: scale(1.01);
}
.verse-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(to bottom, #10b981, #047857);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.verse-block:hover::before { opacity: 1; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
