/* Quran Section Styles - Islamic Daily Companion */
/* Designed to integrate seamlessly with existing app design system */

/* Import Arabic fonts for proper Quranic text display */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;700&display=swap');

/* Main Quran Section Container */
.quran-section {
    padding: 165px 20px 110px;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: inherit;
}

/* Quran Section Header (standardized) */
.quran-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 428px;
    z-index: 90;
}

.dark-mode .quran-section-header {
    background: rgba(45, 55, 72, 0.95);
}

.quran-section-header .back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4CAF50;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.quran-section-header .back-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.05);
}

.quran-section-title-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.quran-section-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #2d5016;
    margin: 0;
    pointer-events: auto;
}

.dark-mode .quran-section-header h2 {
    color: #4CAF50;
}

/* Quran Views Container */
.quran-view {
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Verse Icon */
.verse-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

/* Loading Container */
.loading-container {
    text-align: center;
    padding: 20px;
}

.loading-text {
    color: #666;
    margin-top: 12px;
    font-style: italic;
}

.dark-mode .loading-text {
    color: #999;
}

/* Connectivity Message */
#connectivityMessage {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: #856404;
    display: none;
}

#connectivityMessage:not(:empty) {
    display: block;
}

.dark-mode #connectivityMessage {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Juz Grid */
.juz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Chapters List */
.chapters-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Chapter Info Panel */
.chapter-info-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 24px;
    margin: 0 auto 8px auto;
    max-width: 428px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .chapter-info-panel {
    background: rgba(45, 55, 72, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Verses Container */
.verses-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== SEARCH INTERFACE STYLES ===== */

/* Search Section Container */
.search-section {
    width: 100%;
    position: relative;
}

/* Section Header with Back Button */
.search-section .section-header,
.juz-list .section-header,
.juz-chapters .section-header,
.chapter-reader .chapter-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #2d5016;
    margin: 0;
    flex: 1;
    text-align: center;
}

.dark-mode .section-header h2 {
    color: #4CAF50;
}

/* Back Button Styling */
.section-header button,
.chapter-header button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.section-header button:hover,
.chapter-header button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Search Box Container */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .search-box {
    background: rgba(45, 55, 72, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Search Input Field */
.search-box input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.dark-mode .search-box input[type="text"] {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.dark-mode .search-box input[type="text"]:focus {
    background: rgba(45, 55, 72, 1);
    border-color: #4CAF50;
}

/* Search Button */
.search-box button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.search-box button i {
    font-size: 18px;
}

/* Search Results Container */
#searchResults {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    min-height: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
}

.dark-mode #searchResults {
    background: rgba(45, 55, 72, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Search Results Content */
.search-results p {
    color: #2d5016;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.dark-mode .search-results p {
    color: #4CAF50;
}

/* Individual Result Items */
.result-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dark-mode .result-item {
    background: rgba(45, 55, 72, 0.9);
    border-left-color: #4CAF50;
}

/* Chapter Results */
.result-item .chapter-info {
    font-weight: bold;
    color: #2d5016;
    margin-bottom: 12px;
    font-size: 16px;
}

.dark-mode .result-item .chapter-info {
    color: #4CAF50;
}

/* Verse Results */
.result-item .verse-info {
    font-weight: bold;
    color: #2d5016;
    margin-bottom: 12px;
    font-size: 16px;
}

.dark-mode .result-item .verse-info {
    color: #4CAF50;
}

/* ===== ARABIC TEXT STYLING ===== */

/* Primary Arabic Text Styling */
.arabic-text,
.verse-arabic {
    font-family: 'Amiri', 'Scheherazade New', 'Times New Roman', serif !important;
    font-size: 22px !important;
    line-height: 1.8 !important;
    text-align: right !important;
    direction: rtl !important;
    color: #2d5016 !important;
    margin-bottom: 16px !important;
    padding: 20px !important;
    background: rgba(76, 175, 80, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
    word-spacing: 3px !important;
    letter-spacing: 0.5px !important;
    font-weight: 400 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dark-mode .arabic-text,
.dark-mode .verse-arabic {
    color: #4CAF50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

/* Translation Text */
.translation-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.dark-mode .translation-text {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.02);
}

/* ===== NAVIGATION ELEMENTS ===== */

/* Quran Home Navigation */
.quran-home {
    width: 100%;
}

/* Daily Verse Card */
.daily-verse-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin: 8px auto 8px auto;
    max-width: 428px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .daily-verse-card {
    background: rgba(45, 55, 72, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Daily Header */
.daily-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.daily-header div:first-child {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.daily-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #2d5016;
    margin: 0;
}

.dark-mode .daily-header h3 {
    color: #4CAF50;
}

/* Verse Information */
.verse-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

.dark-mode .verse-info {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.verse-info span {
    font-size: 12px;
    color: #666;
}

.dark-mode .verse-info span {
    color: #999;
}

/* Navigation Buttons Grid */
.quran-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.quran-navigation button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.quran-navigation button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.quran-navigation button:nth-child(2) {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.quran-navigation button i {
    font-size: 20px;
}

/* Popular Chapters Section */
.popular-chapters h3 {
    font-size: 16px;
    font-weight: bold;
    color: #2d5016;
    margin-bottom: 16px;
    text-align: center;
}

.dark-mode .popular-chapters h3 {
    color: #4CAF50;
}

.chapters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Chapter Quick Buttons */
.chapter-quick-btn {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #2d5016;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.chapter-quick-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.dark-mode .chapter-quick-btn {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-color: #4CAF50;
}

.dark-mode .chapter-quick-btn:hover {
    background: #4CAF50;
    color: white;
}

/* ===== JUZ AND CHAPTER LISTS ===== */

/* Juz List Items */
.juz-item,
.chapter-list-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.juz-item:hover,
.chapter-list-item:hover {
    background: rgba(76, 175, 80, 0.05);
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-mode .juz-item,
.dark-mode .chapter-list-item {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .juz-item:hover,
.dark-mode .chapter-list-item:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

/* Juz Item Content */
.juz-item > div:first-child {
    flex: 1;
}

.juz-names {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.juz-item .arabic-name {
    font-weight: bold;
    color: #2d5016;
    font-size: 18px;
    font-family: 'Amiri', serif;
}

.dark-mode .juz-item .arabic-name {
    color: #4CAF50;
}

.juz-item .transliteration {
    font-weight: bold;
    color: #2d5016;
    font-size: 16px;
}

.dark-mode .juz-item .transliteration {
    color: #4CAF50;
}

.juz-item .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
}

.dark-mode .juz-item .description {
    color: #999;
}

.juz-item .details {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.dark-mode .juz-item .details {
    color: #999;
}

/* Juz Number Badge */
.juz-number-badge {
    background: #2196F3;
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* Chapter List Item Content */
.chapter-list-item > div:first-child {
    flex: 1;
}

.chapter-names {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.chapter-list-item .arabic-name {
    font-weight: bold;
    color: #2d5016;
    font-size: 18px;
    font-family: 'Amiri', serif;
}

.dark-mode .chapter-list-item .arabic-name {
    color: #4CAF50;
}

.chapter-list-item .chapter-english {
    font-weight: bold;
    color: #2d5016;
    font-size: 16px;
}

.dark-mode .chapter-list-item .chapter-english {
    color: #4CAF50;
}

.chapter-list-item .chapter-info {
    color: #666;
    font-size: 14px;
}

.dark-mode .chapter-list-item .chapter-info {
    color: #999;
}

/* Chapter Number Badge */
.chapter-number-badge {
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.dark-mode .error-message {
    color: #999;
}

.error-message p:first-child {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.error-message p:last-of-type {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.error-message button {
    margin-top: 16px;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.error-message button:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* ===== CHAPTER READER STYLES ===== */

/* Chapter Info Panel */
.chapter-info-panel h1 {
    color: #2d5016;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Amiri', 'Scheherazade New', serif;
    direction: rtl;
}

.dark-mode .chapter-info-panel h1 {
    color: #4CAF50;
}

.chapter-meta {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.dark-mode .chapter-meta {
    color: #999;
}

/* Play Full Chapter Button */
.play-full-chapter-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    display: block;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.play-full-chapter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Verse Cards */
.verse-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.verse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dark-mode .verse-card {
    background: rgba(45, 55, 72, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Verse Number Badge */
.verse-number {
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 12px;
}

/* Verse Play Button */
.verse-play-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.verse-play-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

/* Verse Controls */
.verse-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.verse-controls button {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.verse-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.verse-controls button:nth-child(2) {
    background: #e0e0e0;
    color: #666;
}

.verse-controls button:nth-child(2).bookmarked {
    background: #ff9800;
    color: white;
}

/* ===== CONNECTIVITY AND STATUS ===== */

/* Connectivity Warning */
.connectivity-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode .connectivity-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Load More Button */
#loadMoreBtn {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: block;
    margin: 8px auto 8px auto;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 152, 0, 0.3);
}

/* Results Summary */
.results-summary {
    text-align: center;
    margin: 20px 0;
    color: #4CAF50;
    font-size: 14px;
    font-weight: bold;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 480px) {
    /* Adjust padding for mobile */
    .quran-section {
        padding: 165px 16px 100px;
    }
    
    /* Stack navigation buttons vertically on mobile */
    .quran-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Smaller chapter grid on mobile */
    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* Adjust Arabic text size for mobile */
    .arabic-text,
    .verse-arabic {
        font-size: 20px !important;
        padding: 16px !important;
    }
    
    /* Smaller search box padding */
    .search-box {
        padding: 20px;
    }
    
    /* Adjust verse cards for mobile */
    .verse-card {
        padding: 16px;
    }
    
    /* Stack verse controls on mobile */
    .verse-controls {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    /* Smaller section headers */
    .section-header h2 {
        font-size: 20px;
    }
    
    /* Adjust chapter header */
    .chapter-header {
        padding: 20px;
    }
    
    .chapter-header button {
        position: static;
        margin-bottom: 16px;
        transform: none;
    }
    
    .chapter-header h1 {
        font-size: 20px;
    }
    
    /* Adjust daily verse card */
    .daily-verse-card {
        padding: 20px;
    }
}

/* ===== LOADING STATES ===== */

/* Loading Spinner for Quran Content */
.quran-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #4CAF50;
}

.quran-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.quran-loading p {
    font-style: italic;
    font-size: 14px;
}

/* ===== ACCESSIBILITY ===== */

/* Focus styles for better accessibility */
.search-box input:focus,
button:focus,
.chapter-quick-btn:focus,
.juz-item:focus,
.chapter-list-item:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .arabic-text,
    .verse-arabic {
        border: 2px solid #4CAF50 !important;
        background: rgba(76, 175, 80, 0.1) !important;
    }
    
    .result-item {
        border: 2px solid #4CAF50;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .quran-section {
        padding: 0;
    }
    
    .search-box,
    .section-header button,
    .verse-controls,
    .quran-navigation {
        display: none;
    }
    
    .arabic-text,
    .verse-arabic {
        background: white !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    
    .verse-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}