[x-cloak] { display: none !important; }

/* ── پس‌زمینه سایت ── */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 107, 107, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(77, 150, 255, 0.06), transparent),
        #FFF4E6;
}

/* ── هدر ── */
.site-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 229, 217, 0.6);
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 9999px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #FF6B6B;
    background: rgba(255, 229, 217, 0.5);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #334155;
    border-radius: 0.75rem;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    background: rgba(255, 229, 217, 0.6);
    color: #FF6B6B;
}

/* ── Hero ── */
.hero-fallback {
    background:
        linear-gradient(135deg, rgba(255, 217, 61, 0.15) 0%, rgba(255, 229, 217, 0.4) 50%, rgba(255, 107, 107, 0.1) 100%);
}

.hero-overlay {
    background:
        linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.15) 100%);
}

.hero-slide-img {
    animation: heroKenBurns 12s ease-out infinite alternate;
}

@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: white;
    transition: background 0.2s, transform 0.2s;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.hero-nav-prev { right: 1rem; }
.hero-nav-next { left: 1rem; }

@media (min-width: 1024px) {
    .hero-nav-prev { right: 2rem; }
    .hero-nav-next { left: 2rem; }
}

/* ── دکمه‌ها ── */
.btn-primary,
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: 9999px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    background: #1E293B;
    color: white;
    padding: 0.875rem 2rem;
    box-shadow: 0 4px 24px -4px rgba(30, 41, 59, 0.25);
}

.btn-primary:hover {
    background: #FF6B6B;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px -8px rgba(255, 107, 107, 0.4);
}

.btn-hero {
    background: #FFD93D;
    color: #1E293B;
    padding: 0.875rem 1.75rem;
    box-shadow: 0 4px 20px -4px rgba(255, 217, 61, 0.5);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px -6px rgba(255, 217, 61, 0.6);
}

.text-gradient {
    background: linear-gradient(135deg, #FF6B6B, #4D96FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── آمار ── */
.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
    .stat-number { font-size: 2.5rem; }
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* ── بخش‌ها ── */
.section-block {
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .section-block { padding: 5.5rem 0; }
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.08);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .section-title { font-size: 2.5rem; }
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
}

.section-line {
    display: block;
    width: 3rem;
    height: 4px;
    background: linear-gradient(to left, #FF6B6B, #FFD93D);
    border-radius: 9999px;
    margin-top: 0.25rem;
}

.section-heading.text-center .section-line {
    margin-left: auto;
    margin-right: auto;
}

/* ── کارت کتاب ── */
.book-card-cover {
    transition: box-shadow 0.3s, transform 0.3s;
}

.book-card:hover .book-card-cover {
    box-shadow: 0 12px 40px -12px rgba(30, 41, 59, 0.2);
    transform: translateY(-4px);
}

.badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.badge-gold {
    background: rgba(255, 217, 61, 0.95);
    color: #1E293B;
}

.badge-sky {
    background: rgba(77, 150, 255, 0.9);
    color: white;
}

/* ── کتاب صوتی ── */
.section-audio {
    background: linear-gradient(180deg, rgba(77, 150, 255, 0.04) 0%, rgba(107, 203, 119, 0.06) 100%);
}

.audio-card {
    background: white;
    border: 1px solid rgba(255, 229, 217, 0.5);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 24px -4px rgba(30, 41, 59, 0.06);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.audio-card:hover {
    box-shadow: 0 12px 40px -12px rgba(30, 41, 59, 0.12);
    transform: translateY(-3px);
    border-color: rgba(77, 150, 255, 0.3);
}

.audio-player {
    height: 40px;
    border-radius: 9999px;
}

/* ── نویسنده ── */
.section-author {
    background: white;
}

.author-panel {
    background: linear-gradient(135deg, #FFF8E7 0%, #ffffff 50%, rgba(255, 229, 217, 0.3) 100%);
    border: 1px solid rgba(255, 229, 217, 0.6);
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 8px 40px -12px rgba(30, 41, 59, 0.08);
}

@media (min-width: 1024px) {
    .author-panel { padding: 3.5rem; }
}

.author-photo-wrap {
    position: relative;
    width: 220px;
    height: 220px;
}

@media (min-width: 1024px) {
    .author-photo-wrap { width: 280px; height: 280px; }
}

.author-photo {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 12px 40px -8px rgba(30, 41, 59, 0.15);
    position: relative;
    z-index: 2;
}

.author-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #FF6B6B, #4D96FF);
}

.author-ring {
    position: absolute;
    inset: -8px;
    border-radius: 9999px;
    border: 2px dashed rgba(255, 107, 107, 0.3);
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.author-quote {
    font-size: 1.05rem;
    line-height: 2;
    color: #475569;
    border-right: 4px solid #FFD93D;
    padding-right: 1.25rem;
    margin-top: -1rem;
}

.social-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: white;
    border: 1px solid rgba(255, 229, 217, 0.8);
    border-radius: 9999px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px -2px rgba(30, 41, 59, 0.06);
}

.social-chip:hover {
    color: white;
    background: #FF6B6B;
    border-color: #FF6B6B;
    transform: translateY(-2px);
}

/* ── CTA ── */
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #1E293B 0%, #334155 50%, #FF6B6B 120%);
    box-shadow: 0 20px 60px -20px rgba(30, 41, 59, 0.4);
}

@media (min-width: 1024px) {
    .cta-banner { padding: 4rem; }
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1.5rem;
    border: 2px dashed rgba(255, 229, 217, 0.8);
}

/* ── فوتر ── */
.site-footer {
    background: #1E293B;
    color: rgba(255, 255, 255, 0.85);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.footer-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-input:focus {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: all 0.2s;
}

.footer-social:hover {
    background: #FF6B6B;
    border-color: #FF6B6B;
    transform: translateY(-2px);
}

/* ── عمومی ── */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html { scroll-behavior: smooth; }

.reveal {
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

audio { height: 40px; }
