* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
     
    --primary-cyan: #4FD1FF;
    --primary-purple: #A855F7;
    --primary-blue: #3B82F6;
    
     
    --bg-color: #F8F9FC;
    --text-dark: #111;
    --text-muted: #666;
    --white: #fff;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(79, 209, 255, 0.2);
}
a {
    text-decoration: none;
}


body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    padding-bottom: 90px;
}

 

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    z-index: 2000;
}

.logo img {
    height: 35px;
}
/* ظل بنفسجي خفيف موحّد على اللوجو في كل الموقع */
img[src*="favicon/logo"] { filter: drop-shadow(0 -1px 0.5px rgba(124,58,237,0.65)); }

.menu-btn {
    position: absolute;
    right: 25px;
    font-size: 26px;
    background: none;
    border: none;
    color: var(--primary-cyan);
    cursor: pointer;
    transition: 0.3s;
}

.menu-btn:hover {
    color: var(--primary-purple);
}

 

.overlay {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
z-index: 9000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

 

/* ── Sidebar ── */
.art-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(.77,0,.18,1);
    z-index: 9001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.art-sidebar.active {
    transform: translateX(0);
}

/* Logo area */
.sidebar-logo {
    padding: 20px 18px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.sidebar-logo__img {
    height: 30px;
    width: auto;
}
.logo-fallback .logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #4fd1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 16px;
    left: 14px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}
.close-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* Nav items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 20px;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.18s, color 0.18s;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.18s, color 0.18s;
    border-radius: 0;
}
.menu-item svg {
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.18s;
}
.menu-item:hover {
    background: #faf5ff;
    color: #a855f7;
    transform: translateX(0) !important;
}
.menu-item:hover svg {
    color: #a855f7;
}

.art-sidebar.active .menu-item {
    opacity: 1;
    transform: translateX(0);
}
.art-sidebar.active .item1 { transition-delay: 0.06s; }
.art-sidebar.active .item2 { transition-delay: 0.10s; }
.art-sidebar.active .item3 { transition-delay: 0.14s; }
.art-sidebar.active .item4 { transition-delay: 0.18s; }
.art-sidebar.active .item5 { transition-delay: 0.22s; }
.art-sidebar.active .item6 { transition-delay: 0.26s; }
.art-sidebar.active .item7 { transition-delay: 0.30s; }
.art-sidebar.active .item8 { transition-delay: 0.34s; }

/* Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 18px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 14px;
    transition: opacity 0.2s;
}
.sidebar-cta-btn:hover { opacity: 0.88; }

/* Social links */
.sidebar-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.sidebar-social-link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s;
}
.sidebar-social-link:hover { opacity: 0.75; }
.sidebar-social-link--fb { background: #1877f2; color: #fff; }
.sidebar-social-link--ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.sidebar-social-link--wa { background: #25d366; color: #fff; }
 

.author-page {
    padding-top: 95px;
}

 

.author-profile {
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
}

.author-profile::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 209, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.author-profile::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

 

.image-wrapper {
    position: relative;
    width: 270px;
    height: 270px;
    margin: 0 auto 30px;
}

.rotating-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary-cyan),
        var(--primary-purple),
        var(--primary-blue),
        var(--primary-cyan)
    );
    animation: rotate 4s linear infinite;
    filter: blur(8px);
}

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

.author-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: 0 10px 40px var(--shadow-heavy);
    animation: imageFloat 3s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 

.author-name {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 

.tags-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: tagSlideIn 0.6s ease-out backwards;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.tag:hover::before {
    left: 100%;
}

.tag-1 {
    background: linear-gradient(135deg, #4FD1FF, #3B82F6);
    color: white;
    animation-delay: 0.1s;
}

.tag-2 {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: white;
    animation-delay: 0.2s;
}

.tag-3 {
    background: linear-gradient(135deg, #3B82F6, #4FD1FF);
    color: white;
    animation-delay: 0.3s;
}

.tag-4 {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    color: white;
    animation-delay: 0.4s;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

 

.content-tabs {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px var(--shadow-light);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
z-index: 50;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tabs-container {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;  
}

.tabs-container::-webkit-scrollbar {
    display: none;  
}

.tab-btn {
    flex: 1;
    height: 100%;
    min-width: auto;
    max-width: 120px;
    padding: 10px 8px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.tab-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-purple);
    background: rgba(168, 85, 247, 0.05);
}

.tab-btn.active {
    color: var(--primary-purple);
    font-weight: 700;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn span {
    font-size: 0.85rem;
    white-space: nowrap;
}

.tab-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.tab-btn:hover .tab-icon {
    transform: scale(1.15);
}

.tab-btn.active .tab-icon {
    stroke: var(--primary-purple);
}

 

.tab-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 20px 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 5px 30px var(--shadow-light);
}

.section-title {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 2px;
}

 

.bio-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.bio-text p {
    margin-bottom: 20px;
}

 
.social-media {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px dashed rgba(79, 209, 255, 0.3);
}

.social-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.social-links {
    
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link svg {
    color: #fff;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 1;
}

.social-link:hover::before {
    transform: scale(1.1);
}
.social-link.whatsapp {
    background-color: #25D366;
}

.social-link.whatsapp:hover {
    background-color: #1ebe5d;
}


.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
}

.facebook::before {
    background: #1877F2;
}

.facebook:hover {
    color: white;
}

.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1DA1F2;
}

.twitter::before {
    background: #1DA1F2;
}

.twitter:hover {
    color: white;
}

.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #E1306C;
}

.instagram::before {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.instagram:hover {
    color: white;
}

.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
}

.youtube::before {
    background: #FF0000;
}

.youtube:hover {
    color: white;
}

.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077B5;
}

.linkedin::before {
    background: #0077B5;
}

.linkedin:hover {
    color: white;
}

.tiktok {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.tiktok::before {
    background: linear-gradient(45deg, #00f2ea, #ff0050);
}

.tiktok:hover {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px var(--shadow-heavy);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

 

 
.filter-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-cyan);
    background: white;
    color: var(--primary-cyan);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(79, 209, 255, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border-color: transparent;
}

.writings-grid {
    display: grid;
    gap: 25px;
}

.writing-card {
    background: #f8f9fc;
    padding: 25px;
    border-radius: 12px;
    border-right: 4px solid var(--primary-cyan);
    transition: all 0.3s ease;
}

.writing-card.hidden {
    display: none;
}

.writing-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px var(--shadow-medium);
    border-right-color: var(--primary-purple);
}

.writing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.writing-type-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    display: inline-block;
}

.type-poem {
    background: linear-gradient(135deg, #4FD1FF, #3B82F6);
}

.type-khatrah {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
}

.type-story {
    background: linear-gradient(135deg, #10B981, #059669);
}

.type-article {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.writing-date {
    font-size: 0.85rem;
    color: var(--primary-purple);
    font-weight: 600;
}

.writing-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.writing-excerpt {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-purple);
}

 

.books-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.book-container {
    display: flex;
    gap: 30px;
    background: linear-gradient(135deg, #f8f9fc, #faf5ff);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px var(--shadow-light);
    position: relative;
}

.book-container:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px var(--shadow-heavy);
    transform: translateY(-5px);
}

.book-cover-large {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: 10px;
    overflow: visible;
    transition: transform 0.4s ease;
}

.book-container:hover .book-cover-large {
    transform: scale(1.05) rotate(-2deg);
}

.book-container:hover .book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
    transition: filter 0.3s ease;
}

.book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
    transition: filter 0.3s ease;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title-large {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-family: 'Amiri', serif;
}

.book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* إخفاء السنة والـ book-meta القديمة */
.book-year {
    display: none;
}

.book-meta {
    display: none;
}

/* نوع الكتاب — badge فوق الصورة */
.book-type-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary-purple), #7C3AED);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4);
}

.book-cover-large {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: 10px;
    overflow: visible;
    transition: transform 0.4s ease;
}

.book-description {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.book-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.book-stats span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 1.5px solid rgba(79, 209, 255, 0.25);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.book-stats span:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 12px rgba(79, 209, 255, 0.2);
    transform: translateY(-1px);
}

.book-stats strong {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1rem;
}

.btn-details {
    align-self: flex-start;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-heavy);
}

.btn-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-heavy);
}

.btn-details:active {
    transform: translateY(-1px);
}

 

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: #f8f9fc;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    background: var(--primary-purple);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    padding: 15px 20px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.video-duration {
    padding: 0 5px 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

 

.achievements-timeline {
    position: relative;
    padding-right: 40px;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-purple));
}

.achievement-item {
    position: relative;
    padding: 25px 30px 25px 0;
    margin-bottom: 20px;
}

.achievement-item::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 30px;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(79, 209, 255, 0.2);
    transition: all 0.3s ease;
}

.achievement-item:hover::before {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.2);
    transform: scale(1.3);
}

.achievement-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.achievement-details h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.achievement-details p {
    color: var(--text-muted);
    line-height: 1.6;
}

 

@media (max-width: 768px) {
    .author-name {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 10px 6px;
        gap: 4px;
    }
    
    .tab-btn span {
        font-size: 0.75rem;
    }
    
    .tab-icon {
        width: 22px;
        height: 22px;
    }
    
    .content-card {
        padding: 25px 18px;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
     
    .book-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .book-cover-large {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 2 / 3;
        overflow: visible;
        margin: 0 auto;
    }
    
    .book-title-large {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .book-meta {
        justify-content: center;
    }
    
    .book-stats {
        justify-content: center;
    }
    
    .btn-details {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }

    /* ===== كرت الكتاب موبايل — حدود ملونة + stats containers ===== */

    .book-container {
        border: 2px solid transparent;
        background:
            linear-gradient(#f8f9fc, #faf5ff) padding-box,
            linear-gradient(135deg, var(--primary-cyan), var(--primary-purple), var(--primary-cyan)) border-box;
        box-shadow: 0 8px 30px rgba(79, 209, 255, 0.15);
    }

    .book-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        margin-bottom: 20px;
    }

    .book-stats span {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background: white;
        border-radius: 12px;
        padding: 11px 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border: 1.5px solid rgba(79, 209, 255, 0.2);
        font-size: 0.88rem;
        color: var(--text-muted);
        direction: rtl;
        gap: 8px;
    }

    .book-stats strong {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-purple);
        display: inline;
        order: 1;
        margin-inline-start: auto;
    }

    /* زر عرض التفاصيل */
    .view-details-btn {
        display: block;
        width: 100%;
        padding: 14px;
        text-align: center;
        background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
        color: white;
        border-radius: 15px;
        font-family: 'Cairo', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
    }

    .view-details-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
    }
    
     
    .filter-container {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .writing-card {
        padding: 20px;
    }
    
    .writing-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
     
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 22px;
        height: 22px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .art-sidebar {
        width: 100%;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .bio-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .achievements-timeline {
        padding-right: 30px;
    }
    
    .achievement-item {
        padding: 20px 25px 20px 0;
    }
}

@media (max-width: 480px) {
    .image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .tags-container {
        gap: 6px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .tab-btn {
        padding: 8px 4px;
        gap: 2px;
    }
    
    .tab-btn span {
        font-size: 0.7rem;
    }
    
    .tab-icon {
        width: 20px;
        height: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
     
    .book-cover-large {
        height: auto;
        aspect-ratio: 2 / 3;
        overflow: visible;
    }
    
    .book-title-large {
        font-size: 1.3rem;
    }
    
    .book-description {
        font-size: 0.95rem;
    }
    
    .book-stats {
        font-size: 0.85rem;
        gap: 15px;
    }
    
     
    .filter-btn {
        padding: 7px 15px;
        font-size: 0.8rem;
    }
    
    .writing-title {
        font-size: 1.2rem;
    }
    
    .writing-type-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
     
    .social-link {
        width: 42px;
        height: 42px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    .achievement-details h3 {
        font-size: 1.1rem;
    }
    
    .tab-content-container {
        padding: 15px 15px 15px 15px;
    }
}

 

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .author-profile {
        padding: 30px 20px 20px;
    }
    
    .image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .author-name {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .tags-container {
        margin-top: 10px;
    }
    
    .tag {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .tab-btn {
        padding: 8px 6px;
    }
    
    .content-tabs {
        box-shadow: 0 -2px 10px var(--shadow-light);
    }
    
    .social-media {
        margin-top: 30px;
        padding-top: 20px;
    }
}

 

.author-profile-inline {
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 20px;
}

.author-profile-inline::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 209, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.author-profile-inline::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

 

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.achievement-container {
    background: linear-gradient(135deg, #f8f9fc, #faf5ff);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.achievement-container.no-certificate {
    display: block;
}

.achievement-container:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px var(--shadow-heavy);
    transform: translateY(-5px);
}

.achievement-content {
    flex: 0 0 auto;
    width: 100%;
}

.achievement-year-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.achievement-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-family: 'Amiri', serif;
}

.achievement-description {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.achievement-certificate {
    flex-shrink: 0;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1.5/1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-medium);
    transition: transform 0.4s ease;
    margin: 0 auto;
}

.achievement-container:hover .achievement-certificate {
    transform: scale(1.02);
}

.achievement-certificate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
    padding: 40px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-purple);
    color: white;
    transform: rotate(90deg);
}

/* زر المشاركة — قصاد زر الإغلاق على اليمين */
.modal-share-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-share-icon svg {
    width: 18px;
    height: 18px;
    stroke: #555;
    transition: stroke 0.3s ease;
}

.modal-share-icon:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    transform: scale(1.1);
}

.modal-share-icon:hover svg {
    stroke: white;
}

/* Toast إشعار النسخ */
.share-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* زر المشاركة في صفحة الكتاب */
.share-btn {
    background: white;
    color: #555;
    border: 2px solid #e0e0e0;
    flex: 0 0 auto;
    padding: 1rem 1.5rem;
}

.share-btn:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 209, 255, 0.3);
}

.modal-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-cyan);
    box-shadow: 0 5px 15px var(--shadow-heavy);
}

.modal-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-author-name {
    text-align: center;
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.modal-writing-content {
    margin-bottom: 40px;
}

.modal-title {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-align: center;
}

.modal-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--text-dark);
    text-align: justify;
}

.modal-text p {
    margin-bottom: 20px;
}

.modal-author-signature {
    text-align: left;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.modal-author-signature span {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-purple);
}

 

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-heavy);
}

 

@media (max-width: 768px) {
    .author-profile-inline {
        padding: 30px 15px 20px;
    }
    
    .image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto 25px;
    }
    
    .author-name {
        font-size: 2.2rem;
    }
    
    .achievement-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .achievement-certificate {
        width: 100%;
        aspect-ratio: 1/0.7;
        max-width: 100%;
        margin: 0;
    }
    
    .achievement-title {
        font-size: 1.2rem;
    }
    
    .achievement-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .achievement-year-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .modal-content {
        padding: 30px 20px;
        max-height: 85vh;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .modal-text {
        font-size: 1rem;
        line-height: 2;
    }
}

@media (max-width: 480px) {
    .image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
    }
    
    .author-name {
        font-size: 2rem;
    }
    
    .achievement-certificate {
        aspect-ratio: 1/0.7;
    }
    
    .achievement-year-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .achievement-title {
        font-size: 1.1rem;
    }
    
    .achievement-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .modal-content {
        padding: 25px 15px;
    }
    
    .modal-author-image {
        width: 80px;
        height: 80px;
    }
    
    .modal-author-name {
        font-size: 1.3rem;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
}


 

.achievements-timeline .achievement-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.achievement-certificate {
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    height: auto;
    order: -1;  
    margin: 0 auto;
}

.achievement-certificate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-certificate:hover {
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
    transform: translateY(-5px);
}

.achievement-content {
    order: 1;  
}

.achievement-title {
    font-size: 1.4rem;
}

.achievement-year-badge {
    display: inline-block;
}

 
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.certificate-modal.active {
    opacity: 1;
    visibility: visible;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.certificate-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-content img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.certificate-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

 

.video-page {
    padding: 6rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
}

.video-container-page {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.video-container-page:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 50px var(--shadow-heavy);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.video-info {
    padding: 0 0 2rem 0;
}

.video-info .video-title {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.video-meta .video-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 25px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 209, 255, 0.3);
}

.video-info .video-description {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
}

 

.book-page {

    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.book-details-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.book-details-container:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 50px var(--shadow-heavy);
}

.book-cover-section img {
    width: 100%;
    border-radius: 15px;
    filter: drop-shadow(0 15px 35px rgba(79, 209, 255, 0.45));
    transition: transform 0.3s ease;
}

.book-cover-section img:hover {
    transform: scale(1.02);
}

.book-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.book-info-section .book-title-large {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
}

.book-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    border-radius: 12px;
    border: 1px solid rgba(79, 209, 255, 0.2);
    transition: all 0.3s ease;
}

.metadata-item:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 209, 255, 0.2);
}

.metadata-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.metadata-item span {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.book-info-section .book-description {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.buy-btn {
    background: linear-gradient(135deg, #A855F7, #4FD1FF);
    color: white;
    border: none;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.download-btn {
    background: white;
    color: var(--primary-purple);
    border: 2px solid var(--primary-cyan);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

 

@media (max-width: 768px) {
    .video-page {
        padding: 6rem 0.5rem;
        max-width: 100%;
    }
    
    .book-page {
        padding: 6rem 1rem;
    }
    
    .video-container-page {
        padding: 1.8rem 1.2rem;
        border-radius: 15px;
    }
    
    .video-info {
        padding: 0 0 1.5rem 0;
    }
    
    .video-info .video-title {
        font-size: 1.7rem;
    }
    
    .video-info .video-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .video-meta .video-duration {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
    
    .book-details-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .book-cover-section {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .book-info-section .book-title-large {
        font-size: 2rem;
        text-align: center;
    }
    
    .book-metadata {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .book-info-section .book-description {
        font-size: 1rem;
    }
    
    .book-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-btn {
        padding: 0.9rem 1.5rem;
    }
    
    .achievements-timeline .achievement-container {
        flex-direction: column;
    }
    
    .achievement-certificate {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/0.7;
    }
    
    .book-details-container {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .book-cover-section {
        max-width: 280px;
    }
    
    .book-cover-section img {
        margin: 0 auto;
        display: block;
    }
    
    .book-info-section .book-title-large {
        font-size: 1.7rem;
    }
    
    .book-metadata {
        grid-template-columns: 1fr;
    }
    
    .metadata-item {
        padding: 0.7rem 0.9rem;
    }
    
    .book-info-section .book-description {
        font-size: 0.95rem;
    }
    
    .book-actions {
        flex-direction: column;
    }
    
    .action-btn {
        padding: 0.85rem 1.3rem;
        font-size: 0.95rem;
    }
    
    .achievement-certificate {
        aspect-ratio: 1/0.7;
        max-width: 100%;
    }
    
    .video-page {
        padding: 6rem 0.3rem;
    }
    
    .video-container-page {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .video-info {
        padding: 0 0 1.2rem 0;
    }
    
    .video-info .video-title {
        font-size: 1.5rem;
    }
    
    .video-info .video-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .video-meta .video-duration {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
} 

@media (max-width: 480px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }

}
 

.stat-number.loading {
    position: relative;
    color: transparent;
}

.stat-number.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        #e0e0e0 25%,
        #f5f5f5 50%,
        #e0e0e0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.social-link.threads {
    background-color: #000000;
    color: #ffffff;
}
.social-link.threads:hover {
    background-color: #333333;
}

.social-link.telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #0088CC;
}

.social-link.telegram::before {
    background: #0088CC;
}

.social-link.telegram:hover {
    color: white;
}

.social-link.threads:hover {
    background-color: #333333;
}

.social-link.telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #0088CC;
}

.social-link.telegram::before {
    background: #0088CC;
}

.social-link.telegram:hover {
    color: white;
}

/* ================================================
   FAQ Section — أسئلة شائعة
   أضف هذا الكود في نهاية ملف author.css
   ================================================ */

.faq-section {
    margin-top: 1.5rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: inherit;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question-text {
    flex: 1;
}

.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
    font-size: 1rem;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    border-color: rgba(255, 255, 255, 0.6);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.85;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

/* Light mode support */
@media (prefers-color-scheme: light) {
    .faq-item {
        border-color: rgba(0, 0, 0, 0.1);
        background: rgba(0, 0, 0, 0.02);
    }
    .faq-item:hover {
        border-color: rgba(0, 0, 0, 0.2);
    }
    .faq-question:hover {
        background: rgba(0, 0, 0, 0.03);
    }
    .faq-icon {
        border-color: rgba(0, 0, 0, 0.3);
    }
    .faq-item.active .faq-icon {
        border-color: rgba(0, 0, 0, 0.6);
    }
    .faq-answer p {
        border-top-color: rgba(0, 0, 0, 0.08);
    }
}

/* Dark mode class override (if site uses .dark-mode class) */
.dark-mode .faq-item {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
.dark-mode .faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}
.dark-mode .faq-icon {
    border-color: rgba(255, 255, 255, 0.3);
}
.dark-mode .faq-answer p {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ================================================
   Books Summary Section — عن كتب الكاتب
   أضف في نهاية ملف author.css
   ================================================ */

.books-summary-section {
    margin-top: 1.5rem;
}

.books-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.books-summary-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.books-summary-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.books-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.books-summary-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.books-summary-type {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.books-summary-count {
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
}

.books-summary-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.75;
    margin: 0 0 0.75rem;
}

.books-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

.books-summary-list li a {
    font-size: 0.85rem;
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.books-summary-list li a::before {
    content: '←';
    font-size: 0.75rem;
    opacity: 0.5;
}

.books-summary-list li a:hover {
    opacity: 1;
}

.books-summary-more {
    font-size: 0.8rem;
    opacity: 0.5;
    font-style: italic;
}

/* Light mode */
@media (prefers-color-scheme: light) {
    .books-summary-card {
        border-color: rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.02);
    }
    .books-summary-card:hover {
        border-color: rgba(0, 0, 0, 0.18);
    }
    .books-summary-count {
        background: rgba(0, 0, 0, 0.08);
    }
    .books-summary-list {
        border-top-color: rgba(0, 0, 0, 0.08);
    }
}

/* Dark mode class */
.dark-mode .books-summary-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
.dark-mode .books-summary-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}
.dark-mode .books-summary-count {
    background: rgba(255, 255, 255, 0.12);
}
.dark-mode .books-summary-list {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Mobile */
@media (max-width: 600px) {
    .books-summary-grid {
        grid-template-columns: 1fr;
    }
}/* ================================================
   Reviews Slider — آراء القراء
   ================================================ */

/* ================================================
   Reviews Slider — آراء القراء
   ================================================ */

/* قسم التقييمات مخفي افتراضيًا، ويظهر فقط لما يحقن book-reviews.js تقييمات معتمدة حقيقية */
.reviews-section { margin-top: 1.5rem; display: none; }
.reviews-section.has-reviews { display: block; }

.reviews-slider-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 1rem;
}

.reviews-slider-track { overflow: hidden; flex: 1; }

.reviews-slider {
    display: flex;
    will-change: transform;
}

.review-slide {
    min-width: 100%;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.2rem 1.1rem;
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    box-sizing: border-box;
}
@media (min-width: 600px) { .review-slide { min-width: 50%; width: 50%; } }
@media (min-width: 900px) { .review-slide { min-width: 33.333%; width: 33.333%; } }

.reviews-arrow {
    width: 38px; min-width: 38px;
    align-self: stretch; border: none;
    background: rgba(255,255,255,0.06);
    color: inherit; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; padding: 0;
}
.reviews-prev { border-radius: 12px 0 0 12px; }
.reviews-next { border-radius: 0 12px 12px 0; }
.reviews-arrow:hover { background: rgba(79,209,255,0.18); }
.reviews-arrow:disabled { opacity: 0.18; cursor: default; }
.reviews-dots { display: none; }

.review-slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}
.reviewer-info { display: flex; align-items: center; gap: 0.6rem; min-width: 0; flex: 1; }
.reviewer-avatar {
    width: 42px; height: 42px; min-width: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: #fff;
}
.reviewer-meta { display: flex; flex-direction: column; min-width: 0; }
.reviewer-name {
    font-size: 0.9rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reviewer-country { font-size: 0.75rem; opacity: 0.55; }

.review-rating-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}
.review-rating-footer { display: none; }

.rating-number { font-size: 0.95rem; font-weight: 700; }
.stars-row { display: flex; gap: 1px; direction: ltr; }
.star { font-size: 0.85rem; line-height: 1; }
.star.full  { color: #f5b942; }
.star.half  { color: #f5b942; opacity: 0.6; }
.star.empty { color: #f5b942; opacity: 0.2; }

.review-book-title {
    font-size: 0.84rem; font-weight: 600; color: inherit;
    text-decoration: none; opacity: 0.7;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.35rem; transition: opacity 0.2s; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: -0.4rem;
}
.review-book-title:hover { opacity: 1; }

.review-text { font-size: 0.88rem; line-height: 1.75; opacity: 0.82; margin: 0; }

@media (prefers-color-scheme: light) {
    .review-slide { border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.02); }
    .reviews-arrow { background: rgba(0,0,0,0.04); }
    .reviews-arrow:hover { background: rgba(79,209,255,0.12); }
    .review-book-title { border-bottom-color: rgba(0,0,0,0.08); }
}
.dark-mode .review-slide { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.dark-mode .reviews-arrow { background: rgba(255,255,255,0.06); }
.dark-mode .review-book-title { border-bottom-color: rgba(255,255,255,0.08); }