@font-face {
    font-family: 'UthmanTaha';
    src: url('../fonts/Uthman-TN-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AlviNastaleeqRegular';
    src: url('../fonts/Alvi-Nastaleeq-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.container {
    max-width: 1200px;
}

.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 3px;
}

.section-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.arabic-text {
    font-family: 'UthmanTaha', 'Amiri', serif;
    font-size: 2em;
    direction: rtl;
    line-height: 2.2em;
    text-align: right;
    color: #2c3e50;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.verse-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.verse-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.share-buttons {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-buttons .btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
}

/*.form-select {*/
/*    border-radius: 8px;*/
/*    border: 1px solid #ced4da;*/
/*    padding: 0.75rem 1rem;*/
/*    !*font-size: 1rem;*!*/
/*    transition: all 0.3s ease;*/
/*}*/

.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-outline-secondary {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.verse-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.verse-text {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.verse-text[style*="direction: rtl"] {
    font-family: 'Amiri', serif;
    padding-right: 1rem;
}

.footnotes-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.footnotes-section[style*="direction: rtl"] {
    font-family: 'Amiri', serif;
    padding-right: 1rem;
}

.footnotes-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footnotes-text {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
}
.quran-card {
    max-width: 1000px;
    margin: 2rem auto;
    margin-top: 0px ;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.quran-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.nav-btn, .autoplay-btn {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f3f4;
    color: #007bff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-btn:hover, .autoplay-btn:hover {
    background: #e3e6e9;
    transform: translateY(-1px);
}
.nav-btn:active, .autoplay-btn[aria-pressed="true"] {
    background: #007bff;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.18);
}
.autoplay-btn[aria-pressed="true"] {
    box-shadow: 0 0 8px 2px #007bff55;
}
.dropdown-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 450px;
    max-width: 450px;
}
.dropdown-group label {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.dropdown-group select {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.2s ease;
}
.dropdown-group select:hover {
    border-color: #007bff;
}
.dropdown-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,.15);
}
.audio-wrap {
    width: 100%;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    padding: 1rem;
}
.audio-wrap audio {
    width: 100%;
}
.quran-arabic {
    font-size: 2.2rem;
    direction: rtl;
    text-align: center;
    font-family: 'UthmanTaha','Amiri', serif;
    background: #f3f7fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    line-height: 1.8;
}
.quran-translation {
    font-family: 'AlviNastaleeqRegular','Amiri', serif;
    font-size: 1.2rem;
    color: #333;
    background: #f1f3f4;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.6;
}
.quran-share {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}
.share-btn {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border: none;
    background: #f1f3f4;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.share-btn:hover {
    background: #e3e6e9;
    transform: translateY(-1px);
}
.share-btn:active {
    background: #007bff;
    color: #fff;
}
@media (max-width: 768px) {
    .quran-card {
        margin: 1rem;
        padding: 1.2rem;
        border-radius: 12px;
    }
    .quran-controls {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    .dropdown-group {
        width: 100%;
        min-width: 300px;
    }
    .nav-btn, .autoplay-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .audio-wrap {
        padding: 0.8rem;
    }
    .quran-arabic {
        font-size: 1.8rem;
        padding: 1.2rem;
        line-height: 1.6;
    }
    .quran-translation {
        font-size: 1.1rem;
        padding: 1rem;
        line-height: 1.5;
    }
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .container {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .arabic-text {
        font-size: 1.5rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tags Section Styles */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    border: none;
    cursor: pointer;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
}

.tag-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.tag-item i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.no-tags-message {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Mobile responsive styles for tags */
@media (max-width: 768px) {
    .tags-container {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .tag-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .tag-item i {
        margin-right: 0.4rem;
        font-size: 0.8rem;
    }
    
    .no-tags-message {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
}
