/* ===== خط المصحف المكي ===== */
@font-face {
    font-family: 'MushafMakki';
    src: url('fonts/UthmanicHafs.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg,#1a0f35,#2c1b55);
    color: #fff;
    min-height: 100vh;
}

/* ===== Header ===== */

header {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #facc15;
}

/* Mobile Menu */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* ===== Search Section ===== */

.search-section {
    text-align: center;
    padding: 60px 20px 30px;
}

.search-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: auto;
}

.search-container input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-container button {
    margin-top: 15px;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    background: #facc15;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: #ffd84d;
}

.suggestions-style {
    position: absolute;
    width: 100%;
    background: white;
    color: black;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #eee;
}

/* ===== Quran Content ===== */

.reading-area {
    max-width: 950px;
    margin: 50px auto;
    padding: 50px;
    background: #ffffff;
    color: #000;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);

    font-family: 'MushafMakki', serif; /* خط المصحف */
    font-size: 30px; /* حجم مناسب لخط المصحف */
    line-height: 3.2; /* مسافة مريحة بين الآيات */
    text-align: center;

    letter-spacing: 0.5px;
}
.ayah {
    display: inline-block;
    margin: 8px 0;
}
/* ===== تنسيق عرض السورة ===== */

.surah-header {
    text-align: center;
    margin-bottom: 30px;
}

.surah-header h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.surah-header p {
    font-size: 16px;
    opacity: 0.7;
}

.surah-body {
    font-family: 'MushafMakki', serif;
    font-size: 30px;
    line-height: 3.2;
}

.ayah {
    display: inline-block;
    margin: 10px 0;
}

.ayah-number {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    background: #facc15;
    color: black;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
}
/* تأثير إخفاء البحث عند النزول */
.search-section {
    transition: all 0.4s ease;
}

.search-section.hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
/* ===== مشغل الصوت ===== */

.audio-player{
    position:sticky;
    top:0;
    z-index:1200;
    background:#120a28;
    display:flex;
    align-items:center;
    gap:15px;
    padding:10px 20px;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.audio-player img{
    width:45px;
    height:45px;
    border-radius:50%;
    object-fit:cover;
}

.player-info{
    display:flex;
    flex-direction:column;
    font-size:14px;
}

.player-controls button{
    background:#facc15;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
    font-size:18px;
}
/* ===== SCHOLARS BAR ===== */
.scholars-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scholars-bar::-webkit-scrollbar {
    height: 6px;
}

.scholars-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.scholars-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.scholars-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scholar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.15), rgba(103, 58, 183, 0.15));
    border: 2px solid rgba(63, 81, 181, 0.2);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
    min-width: 280px;
    width: 280px;
}

.scholar-profile:hover {
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(255, 193, 7, 0.2);
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.25), rgba(103, 58, 183, 0.25));
}

.scholar-image {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 193, 7, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scholar-profile:hover .scholar-image {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.3);
    transform: scale(1.1);
}

.scholar-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.scholar-profile:hover .scholar-name {
    color: #FFD700;
}

/* ===== FEATURED SCHOLAR - MINSHAWY ===== */
.scholar-profile.featured-scholar {
    min-width: 180px;
    width: 180px;
    padding: 1.8rem;
    transform: scale(1.15);
}

.scholar-profile.featured-scholar .scholar-image {
    width: 120px;
    height: 120px;
    border-width: 4px;
    box-shadow: 0 12px 48px rgba(255, 193, 7, 0.4);
}

.scholar-profile.featured-scholar .scholar-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.scholar-profile.featured-scholar:hover {
    transform: scale(1.25) translateY(-12px);
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3);
}
/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle:hover span {
    background: #FFD700;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background: #FFD700;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #FFD700;
}

@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #1a0f35;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .reading-area {
        padding: 25px;
        font-size: 18px;
    }

}