/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    /* Colors - Light Mode Default */
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --secondary-color: #0b3d2c;
    --accent-color: #f4d03f;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #f5f5f0;
    --bg-secondary: #e8e8e0;
    --border-color: #d0d0c8;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Amiri', serif;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 3rem 0;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --border-color: #404040;
    --secondary-color: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.4);
}

/* Light Mode Variables (for explicit setting) */
[data-theme="light"] {
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #f5f5f0;
    --bg-secondary: #e8e8e0;
    --border-color: #d0d0c8;
    --secondary-color: #0b3d2c;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Custom Scrollbar - All Browsers & Devices */
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 3px solid var(--bg-primary);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}

/* Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: var(--primary-color) var(--bg-primary);
}

.text-gold { color: var(--primary-color); }
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.btn-secondary:hover {
    background: var(--bg-primary);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    position: relative;
}

[data-theme="light"] .navbar {
    background: rgba(240, 240, 235, 0.95) !important;
    border-bottom-color: var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle,
.lang-toggle {
    background: none;
    border: 2px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-weight: 600;
}

.theme-toggle:hover,
.lang-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .lang-toggle {
    background: none;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .lang-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] .nav-link {
    color: var(--text-primary);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: var(--primary-color);
}

[data-theme="light"] .nav-toggle span {
    background: var(--text-primary);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

[data-theme="dark"] .nav-logo {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-logo span {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .nav-logo small {
    color: var(--text-secondary) !important;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

[data-theme="dark"] .nav-link {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.gradient-text {
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--bg-primary);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 0;
    padding-top: calc(8rem + 70px);
}

[data-theme="light"] .page-header {
    background: linear-gradient(135deg, #c19a6b, #0b3d2c);
    opacity: 0.95;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Reciters Section */
.reciters-section {
    padding: 4rem 0;
}

.reciters-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    text-align: center;
}

.reciters-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.reciters-grid .reciter-card {
    flex: 0 1 280px;
}

.reciters-slider {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.reciters-slider .reciter-card {
    flex: 0 1 280px;
}

.reciters-section .reciter-card,
.reciter-card {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.reciters-section .reciter-card:hover,
.reciter-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.reciter-image {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.reciters-section .reciter-card img,
.reciter-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.reciter-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 1.2rem;
    margin-left: 3px;
}

.reciters-section .reciter-card h3,
.reciter-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.reciters-section .reciter-card p,
.reciter-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Golden frame for all circular imam images */
.feature-card img[style*="border-radius: 50%"],
img[style*="borderRadius: '50%'"] {
    border: 3px solid var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3) !important;
}

/* Golden frame for imam profile pages */
[class*="imam"] img[style*="border-radius"],
[class*="imam"] img[style*="borderRadius"] {
    border: 3px solid var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3) !important;
}

.reciters-section .reciter-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.reciters-section .reciter-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #9d7e2f, #082d1f);
    color: #e0e0e0;
}

[data-theme="dark"] .reciters-section h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .reciters-section .reciter-card,
[data-theme="dark"] .reciter-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .reciters-section .reciter-card h3,
[data-theme="dark"] .reciter-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .reciters-section .reciter-card p,
[data-theme="dark"] .reciter-card p {
    color: var(--text-secondary);
}

/* Live Stream Page Styles */
.live-player-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.channel-selector {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 250px;
    text-align: left;
}

.channel-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.channel-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 208, 63, 0.1));
    box-shadow: var(--shadow);
}

.channel-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.channel-info h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.channel-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.video-player {
    max-width: 1000px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-bottom: 2rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.live-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.channel-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(212, 175, 55, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.current-channel h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-family: var(--font-secondary);
}

.current-channel p {
    color: var(--text-secondary);
    margin: 0;
}

.player-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.schedule-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.prayer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0;
    font-family: var(--font-secondary);
}

.city-selector {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

.prayer-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.prayer-time {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.prayer-time:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.prayer-name {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.prayer-time-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}

.current-time {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.time-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.time-display span:first-child {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-secondary);
}

.time-display span:last-child {
    font-size: 1.2rem;
    opacity: 0.9;
}

.location-info {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.location-info span {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
}

[data-theme="dark"] .live-player-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .channel-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .channel-info h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .player-info {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .current-channel h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .schedule-section h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .prayer-time {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .prayer-time-value {
    color: var(--text-primary);
}

[data-theme="dark"] .control-btn {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Duaa Page Styles */
.categories-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

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

.category-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}

.category-card p {
    color: var(--text-secondary);
    margin: 0;
}

.duaa-content-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0;
    font-family: var(--font-secondary);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.duaa-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.duaa-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.duaa-text {
    margin-bottom: 1rem;
}

.duaa-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    margin: 0;
    text-align: center;
}

.duaa-source {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.duaa-source span {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

[data-theme="dark"] .categories-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .category-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .category-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .duaa-content-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .content-header h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .duaa-item {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .back-btn {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

[data-theme="dark"] .section-header h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .section-header p {
    color: var(--text-secondary);
}

.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid .feature-card {
    flex: 0 1 350px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.feature-link:hover {
    gap: 1rem;
}

[data-theme="dark"] .feature-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card p {
    color: var(--text-secondary);
}

.reciters-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reciter-card {
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.reciter-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.reciter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.play-overlay i {
    font-size: 3rem;
    color: white;
}

.reciter-card:hover .play-overlay {
    opacity: 1;
}

.reciter-card:hover .reciter-image {
    transform: scale(1.05);
}

.reciter-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.reciter-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .reciter-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .reciter-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .stat-item {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

[data-theme="dark"] .stat-item:hover {
    border-color: var(--accent-color);
}

.stats {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="light"] .stats {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="light"] .features {
    background: var(--bg-secondary);
}

[data-theme="light"] .stats {
    background: var(--bg-primary);
}

[data-theme="light"] .stat-item {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

[data-theme="light"] .stat-number {
    color: var(--primary-color);
}

[data-theme="light"] .stat-label {
    color: var(--secondary-color);
    opacity: 1;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .stats-grid {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
        max-width: 180px;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
}

.stat-item {
    text-align: center;
    background: var(--bg-primary);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    min-width: 180px;
    flex: 1 1 200px;
    max-width: 250px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: embed;
}

[lang="ar"] .stat-number {
    direction: ltr;
    unicode-bidi: embed;
}

[lang="en"] .stat-number {
    direction: ltr;
    unicode-bidi: embed;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}



[data-theme="light"] .section-header h2 {
    color: var(--secondary-color);
}

[data-theme="light"] .section-header p {
    color: var(--text-secondary);
}

[data-theme="light"] .feature-card {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .feature-card h3 {
    color: var(--secondary-color);
}

[data-theme="light"] .feature-card p {
    color: var(--text-secondary);
}

[data-theme="light"] .reciter-card h3 {
    color: var(--secondary-color);
}

[data-theme="light"] .reciter-card p {
    color: var(--text-secondary);
}

.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
}

[data-theme="light"] .footer {
    background: var(--text-primary) !important;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-logo span {
    white-space: nowrap;
}

.footer-logo small {
    white-space: nowrap;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

[data-theme="light"] .footer-logo span {
    color: var(--primary-color) !important;
}

[data-theme="light"] .footer-logo small {
    color: #ccc !important;
}

[data-theme="light"] .footer-section h3 {
    color: var(--primary-color);
}

[data-theme="light"] .footer-section p {
    color: #ccc;
}

[data-theme="light"] .footer-section ul li a {
    color: #ccc;
}

[data-theme="light"] .footer-section ul li a:hover {
    color: var(--primary-color);
}

[data-theme="light"] .footer-bottom {
    border-top-color: #444;
    color: #ccc;
}

[data-theme="light"] .social-links a {
    background: var(--primary-color);
}

[data-theme="light"] .social-links a:hover {
    background: var(--accent-color);
}

.english-layout {
  direction: ltr;
  font-family: var(--font-primary), sans-serif;
}

.english-layout * {
  direction: ltr;
}

.english-layout {
  text-align: left;
}

.english-layout .hero-content,
.english-layout .section-header,
.english-layout .feature-card,
.english-layout .stat-item {
  text-align: center !important;
}

/* English Pages Layout */
[dir="ltr"] {
  direction: ltr;
  font-family: var(--font-primary), sans-serif;
}

[dir="ltr"] .nav-menu {
  flex-direction: row;
}

[dir="ltr"] .hero-buttons {
  flex-direction: row;
}

[dir="ltr"] .feature-link i {
  transform: rotate(180deg);
}

[dir="ltr"] .back-btn i {
  transform: rotate(180deg);
}

/* Center all section headers in English layout */
[dir="ltr"] .section-header {
  text-align: center;
}

[dir="ltr"] .section-header h2 {
  text-align: center;
}

[dir="ltr"] .section-header p {
  text-align: center;
}

/* Center all page headers in English layout */
[dir="ltr"] .page-header {
  text-align: center;
}

[dir="ltr"] .page-header h1 {
  text-align: center;
}

[dir="ltr"] .page-header p {
  text-align: center;
}

/* Center reciters section headers in English layout */
[dir="ltr"] .reciters-section h2 {
  text-align: center;
}

/* Center schedule section headers in English layout */
[dir="ltr"] .schedule-section h2 {
  text-align: center;
}

/* Center content headers in English layout */
[dir="ltr"] .content-header h2 {
  text-align: center;
}

/* Center prayer header in English layout */
[dir="ltr"] .prayer-header h2 {
  text-align: center;
}

/* Center main content sections in English layout */
[dir="ltr"] .main-content {
  text-align: center;
}

[dir="ltr"] .main-content h2 {
  text-align: center;
}

[dir="ltr"] .main-content h3 {
  text-align: center;
}

/* Center page content in English layout */
[dir="ltr"] .page-content {
  text-align: left;
}

[dir="ltr"] .page-content h2 {
  text-align: center;
}

[dir="ltr"] .page-content h3 {
  text-align: center;
}

/* Center all h2 and h3 in English pages */
[dir="ltr"] main h2 {
  text-align: center;
}

[dir="ltr"] main h3 {
  text-align: center;
}

/* Center reciter names and titles in English layout */
[dir="ltr"] .reciter-card {
  text-align: center;
}

[dir="ltr"] .reciter-card h3 {
  text-align: center;
}

[dir="ltr"] .reciter-card p {
  text-align: center;
}

/* Center feature cards in English layout */
[dir="ltr"] .feature-card {
  text-align: center !important;
}

[dir="ltr"] .feature-card h1,
[dir="ltr"] .feature-card h2,
[dir="ltr"] .feature-card h3 {
  text-align: center !important;
}

[dir="ltr"] .feature-card p {
  text-align: center !important;
}

/* Center current time display in English layout */
[dir="ltr"] .current-time {
  text-align: center;
}

[dir="ltr"] .time-display {
  text-align: center;
  align-items: center;
  justify-content: center;
}

[dir="ltr"] .time-display span {
  text-align: center;
}

[dir="ltr"] .location-info {
  text-align: center;
}

[dir="ltr"] .location-info span {
  text-align: center;
}

/* Fix English mobile menu */
@media (max-width: 767px) {
  [dir="ltr"] .nav-menu {
    flex-direction: column;
    background: rgba(26, 26, 26, 0.95);
  }
  
  [data-theme="light"][dir="ltr"] .nav-menu {
    background: rgba(240, 240, 235, 0.95);
  }
  
  [dir="ltr"] .nav-menu.active {
    left: 0;
  }
  
  /* Center headers on mobile for English */
  [dir="ltr"] .content-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  [dir="ltr"] .prayer-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  /* Center all content on mobile for English */
  [dir="ltr"] .main-content {
    text-align: center;
  }
  
  [dir="ltr"] .page-content {
    text-align: left;
  }
  
  [dir="ltr"] main h2 {
    text-align: center;
  }
  
  [dir="ltr"] main h3 {
    text-align: center;
  }
}

/* Hide video controls completely */
#hero-video::-webkit-media-controls {
    display: none !important;
}

#hero-video::-webkit-media-controls-panel {
    display: none !important;
}

#hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

#hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    z-index: -1;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

[data-theme="dark"] .nav-toggle span {
    background: var(--text-primary);
}

/* Desktop Large */
@media (min-width: 1440px) {
    .container { max-width: 1400px; }
    .hero-title { font-size: 4.5rem; }
    .section-header h2 { font-size: 3rem; }
}

/* Laptop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reciters-slider, .reciters-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .container { padding: 0 1.5rem; }
    .hero-title { font-size: 3rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reciters-slider, .reciters-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { gap: 1rem; }
    .channel-selector { flex-direction: column; }
    .prayer-times { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .nav-logo span {
        font-size: 1rem !important;
    }
    
    .nav-logo small {
        font-size: 0.6rem !important;
    }
    
    .footer-logo {
        font-size: 1.4rem;
        justify-content: center;
    }
    
    .footer-logo span {
        font-size: 1.4rem !important;
    }
    
    .footer-logo small {
        font-size: 0.8rem !important;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: auto;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding: 2rem;
        transition: var(--transition);
        z-index: 1001;
        gap: 1rem;
        border-bottom: 2px solid var(--border-color);
        box-shadow: var(--shadow);
    }
    
    [data-theme="light"] .nav-menu {
        background: rgba(240, 240, 235, 0.95);
    }
    
    .nav-menu.active { left: 0; }
    .nav-toggle { display: flex; }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .theme-toggle, .lang-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    .hero { 
        height: 80vh;
        min-height: 600px;
    }
    
    #hero-video {
        object-fit: cover;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { 
        flex-direction: row; 
        gap: 0.5rem; 
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn {
        flex: 0 0 auto;
        min-width: 140px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .page-header { padding: 6rem 0 3rem; }
    .page-header h1 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    .features-grid, .reciters-slider, .reciters-grid, .categories-grid { 
        grid-template-columns: 1fr; 
    }
    .stat-item { flex: 1 1 calc(50% - 0.5rem); min-width: 130px; max-width: 160px; padding: 1.2rem 0.8rem; }
    .channel-selector { flex-direction: column; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.85rem; }
    .player-info { flex-direction: column; text-align: center; }
    .prayer-times { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-section .social-links { justify-content: center !important; }
    .footer-section ul { display: flex; flex-direction: column; align-items: center; }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 2rem 0;
    }
    
    .nav-container { padding: 0.6rem 0.8rem; }
    
    .nav-logo span {
        font-size: 0.9rem !important;
    }
    
    .nav-logo small {
        font-size: 0.5rem !important;
    }
    
    .theme-toggle, .lang-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
        padding: 0.3rem;
    }
    
    .nav-toggle {
        width: 30px;
        height: 30px;
    }
    
    .nav-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-header h2 { font-size: 1.8rem; }
    .footer-section .social-links { justify-content: center !important; }
    .footer-section ul { display: flex; flex-direction: column; align-items: center; }
    .hero { 
        height: 70vh;
        min-height: 500px;
    }
    
    #hero-video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    .hero-title { font-size: 1.8rem; }
    .btn { padding: 0.7rem 1.2rem; font-size: 0.8rem; }
    .page-header { padding: 5rem 0 2rem; }
    .page-header h1 { font-size: 1.5rem; }
    .feature-card, .category-card { padding: 1.5rem; }
    .stats-grid { gap: 1rem; }
    .stat-item { flex: 1 1 calc(50% - 0.5rem); min-width: 130px; max-width: 160px; padding: 1.2rem 0.8rem; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.85rem; }
    .prayer-times { grid-template-columns: 1fr; }
    .reciter-image { width: 120px; height: 120px; }
}

/* Ehsan link hover effect */
.ehsan-link:hover {
    opacity: 0.8;
}

/* Touch Devices */
@media (hover: none) {
    .btn:hover, .feature-card:hover, .reciter-card:hover { transform: none; }
    .btn:active, .feature-card:active, .reciter-card:active { transform: scale(0.98); }
}

/* Donation Section Styles */
.donation-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 5rem 0;
}

.donation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.donation-card {
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.donation-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2rem;
    text-align: center;
    color: white;
}

.donation-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-secondary);
    color: white;
}

.donation-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 1rem;
    color: white;
}

.donation-content {
    padding: 2.5rem;
}

.campaign-info {
    text-align: center;
    margin-bottom: 2rem;
}

.campaign-info h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.campaign-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.progress-section {
    margin-bottom: 2rem;
}

.progress-bar {
    background: var(--border-color);
    border-radius: 10px;
    height: 16px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 100%;
    border-radius: 10px;
    transition: width 2s ease-out;
    animation: fillProgress 2s ease-out;
}

@keyframes fillProgress {
    from { width: 0%; }
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.donate-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
    color: white;
}

.campaign-details {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.campaign-details h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.campaign-details .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.campaign-details .flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.campaign-details i {
    color: var(--primary-color);
    width: 16px;
}

.campaign-details span {
    color: var(--text-secondary);
}

.campaign-details .font-semibold {
    font-weight: 600;
    color: var(--text-primary);
}

.donation-section .text-2xl {
    font-size: 1.5rem;
    font-weight: 700;
}

.donation-section .text-green-600 {
    color: var(--primary-color);
}

.donation-section .text-gray-800 {
    color: var(--text-primary);
}

.donation-section .text-gray-500 {
    color: var(--text-secondary);
}

.donation-section .text-gray-600 {
    color: var(--text-secondary);
}

.donation-section .text-sm {
    font-size: 0.875rem;
}

.donation-section .font-mono {
    font-family: monospace;
}

.donation-section .text-primary-color {
    color: var(--primary-color);
}

.donation-section .font-bold {
    font-weight: 700;
}

/* Mobile responsive for donation section */
@media (max-width: 768px) {
    .donation-section {
        padding: 3rem 0;
    }
    
    .donation-content {
        padding: 1.5rem;
    }
    
    .donation-header {
        padding: 1.5rem;
    }
    
    .donation-header h3 {
        font-size: 1.4rem;
    }
    
    .campaign-info h4 {
        font-size: 1.5rem;
    }
    
    .donate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .campaign-details .grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}/* Component-specific styles - extracted from globals.css for better organization */

/* Search Bar */
.search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-clear {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-clear:hover {
    color: var(--primary-color);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: var(--bg-secondary);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-result-arrow {
    color: var(--text-secondary);
    transform: rotate(180deg);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Skeleton Loaders */
.skeleton-loader {
    pointer-events: none;
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--border-color) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Audio Player */
.audio-player {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.audio-player-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.audio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.audio-reciter {
    color: var(--text-secondary);
    font-size: 1rem;
}

.audio-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.audio-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 45px;
    font-family: monospace;
}

.audio-seek-wrapper {
    flex: 1;
    position: relative;
}

.audio-seek {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-seek:hover {
    height: 10px;
}

/* WebKit (Chrome, Safari, Edge) */
.audio-seek::-webkit-slider-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: transparent;
}

.audio-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: -5px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
    border: 2px solid #fff;
}

.audio-seek::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

/* Firefox */
.audio-seek::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: transparent;
}

.audio-seek::-moz-range-progress {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
}

.audio-seek::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    cursor: pointer;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

.audio-seek::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.audio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.audio-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.audio-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.audio-btn-play {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    color: white;
    font-size: 1.3rem;
}

.audio-btn-play:hover {
    transform: scale(1.05);
}

.audio-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider:hover {
    height: 8px;
}

.volume-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.volume-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
}

.volume-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .audio-player {
        padding: 1.5rem;
    }
    
    .audio-controls {
        gap: 0.5rem;
    }
    
    .audio-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .audio-btn-play {
        width: 55px;
        height: 55px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

/* Reciter Image */
.reciter-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* Component-specific styles - extracted from globals.css for better organization */

/* Search Bar */
.search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-clear {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-clear:hover {
    color: var(--primary-color);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: var(--bg-secondary);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-result-arrow {
    color: var(--text-secondary);
    transform: rotate(180deg);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Skeleton Loaders */
.skeleton-loader {
    pointer-events: none;
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--border-color) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Audio Player */
.audio-player {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.audio-player-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.audio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.audio-reciter {
    color: var(--text-secondary);
    font-size: 1rem;
}

.audio-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.audio-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 45px;
    font-family: monospace;
}

.audio-seek-wrapper {
    flex: 1;
    position: relative;
}

.audio-seek {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-seek:hover {
    height: 10px;
}

/* WebKit (Chrome, Safari, Edge) */
.audio-seek::-webkit-slider-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: transparent;
}

.audio-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: -5px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
    border: 2px solid #fff;
}

.audio-seek::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

/* Firefox */
.audio-seek::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: transparent;
}

.audio-seek::-moz-range-progress {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
}

.audio-seek::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    cursor: pointer;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

.audio-seek::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.audio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.audio-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.audio-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.audio-btn-play {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    color: white;
    font-size: 1.3rem;
}

.audio-btn-play:hover {
    transform: scale(1.05);
}

.audio-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider:hover {
    height: 8px;
}

.volume-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.volume-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
}

.volume-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .audio-player {
        padding: 1.5rem;
    }
    
    .audio-controls {
        gap: 0.5rem;
    }
    
    .audio-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .audio-btn-play {
        width: 55px;
        height: 55px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

/* Reciter Image */
.reciter-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}


/* Imam Page Styles */
.imam-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 2px solid var(--border-color);
}

.imam-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.imam-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    object-fit: cover;
}

.imam-info h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    margin-bottom: 0.5rem;
}

.imam-info p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Surahs Section */
.surahs-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.surahs-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    margin-bottom: 3rem;
}

.surahs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.surah-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.surah-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.surah-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.surah-info {
    flex: 1;
}

.surah-info h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    margin-bottom: 0.3rem;
}

.surah-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.play-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-icon:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Audio Player Fixed */
.audio-player-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 3px solid var(--primary-color);
    padding: 1.5rem 1rem;
    z-index: 999;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.audio-player-fixed.minimized {
    transform: translateY(calc(100% - 50px));
}

.player-toggle-btn {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px 10px 0 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.player-toggle-btn:hover {
    background: var(--primary-dark);
}

.player-toggle-btn i {
    transition: transform 0.3s ease;
}

.audio-player-fixed.minimized .player-toggle-btn i {
    transform: rotate(180deg);
}

[data-theme="dark"] .audio-player-fixed {
    background: rgba(26, 26, 26, 0.98);
    border-top-color: var(--primary-color);
}

[data-theme="light"] .audio-player-fixed {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: var(--primary-color);
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.player-text {
    flex: 1;
}

#playerSurahName {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}

#playerImamName {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.control-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-progress span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 50px;
}

#progressBar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

#progressBar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-volume i {
    color: var(--text-secondary);
}

#volumeBar {
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#volumeBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

#volumeBar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .imam-info {
        flex-direction: column;
        text-align: center;
    }
    
    .imam-info img {
        width: 120px;
        height: 120px;
    }
    
    .imam-info h1 {
        font-size: 2rem;
    }
    
    .surahs-grid {
        grid-template-columns: 1fr;
    }
    
    .player-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .player-info {
        order: 1;
    }
    
    .player-info img {
        width: 45px;
        height: 45px;
    }
    
    .player-text {
        font-size: 0.85rem;
    }
    
    #playerSurahName {
        font-size: 0.95rem;
    }
    
    #playerImamName {
        font-size: 0.8rem;
    }
    
    .player-controls {
        order: 3;
        gap: 0.5rem;
    }
    
    .player-progress {
        order: 2;
        gap: 0.5rem;
    }
    
    .player-progress span {
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .player-volume {
        order: 4;
        justify-content: center;
    }
    
    .player-volume #volumeValue {
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    #volumeBar {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .surah-card {
        padding: 1rem;
    }
    
    .surah-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .surah-info h3 {
        font-size: 1.1rem;
    }
    
    .play-icon {
        width: 35px;
        height: 35px;
    }
    
    .audio-player-fixed {
        padding: 0.5rem;
    }
    
    .player-container {
        gap: 0.6rem;
        padding: 0.6rem;
    }
    
    .player-info img {
        width: 40px;
        height: 40px;
    }
    
    .player-text {
        font-size: 0.8rem;
    }
    
    #playerSurahName {
        font-size: 0.9rem;
    }
    
    #playerImamName {
        font-size: 0.75rem;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .play-btn {
        width: 45px;
        height: 45px;
    }
    
    .player-progress span {
        font-size: 0.7rem;
        min-width: 32px;
    }
    
    #progressBar {
        height: 4px;
    }
    
    .player-volume #volumeValue {
        font-size: 0.75rem;
        min-width: 32px;
    }
    
    #volumeBar {
        width: 60px;
        height: 4px;
    }
}


/* ============================================
   BROWSER COMPATIBILITY & CROSS-DEVICE SUPPORT
   ============================================ */

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    input, textarea, button {
        -webkit-appearance: none;
        appearance: none;
        -webkit-border-radius: 0;
        border-radius: 0;
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select, textarea, input {
        font-size: 16px !important;
    }
}

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    font-size: 16px;
}

/* Better font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Flexbox fallbacks for older browsers */
.nav-menu, .nav-actions, .features-grid, .reciters-slider {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

/* Grid fallbacks for older browsers */
@supports not (display: grid) {
    .features-grid, .reciters-slider, .surahs-grid {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .feature-card, .reciter-card, .surah-card {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(33.333% - 1rem);
        flex: 0 0 calc(33.333% - 1rem);
    }
}

/* Transform prefixes */
.btn, .feature-card, .reciter-card {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.btn:hover, .feature-card:hover, .reciter-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
}

/* Gradient prefixes */
.gradient-text {
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background: -o-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Audio element compatibility */
audio {
    width: 100%;
    max-width: 100%;
}

audio::-webkit-media-controls-panel {
    background-color: var(--bg-secondary);
}

/* Video element compatibility */
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Iframe responsive */
iframe {
    max-width: 100%;
    border: none;
}

/* Print styles */
@media print {
    .navbar, .footer, .audio-player, .btn {
        display: none !important;
    }
    
    body {
        background: var(--bg-primary);
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-primary: #000000;
        --bg-primary: #ffffff;
        --border-color: #000000;
    }
}

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

/* Landscape orientation fixes */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
    }
    
    .page-header {
        padding: 2rem 0;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* 4K screens */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }
    
    body {
        font-size: 18px;
    }
}

/* Small phones (iPhone SE, etc) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-logo span {
        font-size: 1rem;
    }
    
    .surah-card {
        padding: 0.8rem;
    }
}

/* Foldable devices */
@media (min-width: 540px) and (max-width: 720px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Internet Explorer 11 specific */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .nav-menu {
        display: -ms-flexbox;
    }
    
    .feature-card {
        -ms-flex: 0 0 calc(33.333% - 1rem);
        flex: 0 0 calc(33.333% - 1rem);
    }
}

/* Edge legacy specific */
@supports (-ms-ime-align: auto) {
    .gradient-text {
        background: var(--primary-color);
        color: var(--primary-color);
    }
}

/* Firefox specific */
@-moz-document url-prefix() {
    .audio-player {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) var(--bg-secondary);
    }
}

/* Safari specific */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .nav-menu {
            -webkit-overflow-scrolling: touch;
        }
    }
}

/* Ensure all interactive elements are accessible */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    touch-action: manipulation;
}

/* Better touch targets for mobile */
@media (max-width: 767px) {
    button, a, .surah-card, .reciter-card {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Error Pages Styles */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.error-icon i {
    font-size: 3.5rem;
    color: white;
}

.error-icon-server {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    line-height: 1;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.error-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-buttons .btn {
    min-width: 180px;
}

/* Dark Mode */
[data-theme="dark"] .error-code {
    color: var(--primary-color);
}

[data-theme="dark"] .error-title {
    color: var(--text-primary);
}

[data-theme="dark"] .error-message {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-icon {
        width: 100px;
        height: 100px;
    }
    
    .error-icon i {
        font-size: 3rem;
    }
    
    .error-buttons {
        flex-direction: column;
    }
    
    .error-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-icon {
        width: 80px;
        height: 80px;
    }
    
    .error-icon i {
        font-size: 2.5rem;
    }
}
