/**
 * Dua Collection Styles
 * Matching dua.php design with Plus Jakarta Sans typography
 */

/* Base Typography */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-arabic {
    font-family: 'Amiri', serif;
}

.dir-rtl {
    direction: rtl;
}

/* Selection Styling */
::selection {
    background-color: #d1fae5;
    color: #064e3b;
}

/* Animation for audio progress */
@keyframes pulse-width {
    0%, 100% { width: 20%; }
    50% { width: 100%; }
}

.animate-pulse-width {
    animation: pulse-width 1.5s ease-in-out infinite;
}

/* Decorative Background */
.dua-decorative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.dua-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: rgb(236, 253, 245);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
}

.dua-glow-2 {
    position: absolute;
    top: 20%;
    right: -5%;
    width: 30%;
    height: 30%;
    background: rgb(236, 253, 245);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

/* Download All PDF Button */
.download-all-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 20px 40px;
}

.download-all-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.2);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.download-all-pdf-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4), 0 10px 10px -5px rgba(16, 185, 129, 0.3);
}

.download-all-pdf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-all-pdf-btn svg {
    width: 20px;
    height: 20px;
}

.download-all-subtitle {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Main wrapper - clean white background */
.dua-collection-main {
    position: relative;
    background: white;
    color: #0f172a;
    padding: 40px 0;
    margin: 0;
    z-index: 1;
}

.dua-collection-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Individual dua item - NO CARD, just borders */
.dua-item-wrapper {
    padding: 48px 20px;
    border-bottom: 1px solid #d1fae5;
}

.dua-item-wrapper:last-child {
    border-bottom: none;
}

/* Title styling */
.dua-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.dua-number {
    font-family: 'Amiri', serif;
    font-size: 80px;
    color: rgba(209, 250, 229, 0.5);
    font-weight: 400;
    line-height: 1;
}

.dua-title h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

/* Updated Bold and Heavy Arabic Style */
.dua-arabic {
    font-family: 'Amiri', serif;
    font-size: 38px;          /* Increased for a "heavy" feel */
    font-weight: 700;         /* Makes the font Bold/Heavy */
    line-height: 1.6;         /* Space for vowels and marks */
    color: #1e293b;           /* High contrast dark blue-black */
    text-align: right;
    direction: rtl;
    margin-bottom: 24px;
    -webkit-font-smoothing: antialiased;
    white-space: pre-line;
    display: block;           /* Ensures it takes its own space */
}

.dua-arabic br {
    display: block;
    content: "";
    margin-top: 0;
}

/* Translation */
.dua-translation {
    font-size: 18px;
    line-height: 1.75;
    color: #64748b;
    font-style: italic;
    border-left: 2px solid #d1fae5;
    padding-left: 24px;
    margin-bottom: 24px;
    font-weight: 400;
}

/* Controls bar */
.dua-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
}

/* Audio player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #d1fae5;
}

.play-btn {
    width: 32px;
    height: 32px;
    background: #10b981;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.play-btn:hover {
    background: #059669;
}

.audio-meta {
    display: flex;
    flex-direction: column;
}

.audio-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #10b981;
    font-weight: 700;
}

.progress-bar-wrapper {
    width: 96px;
    height: 4px;
    background: #d1fae5;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #10b981;
    width: 0;
    transition: width 0.1s linear;
}

/* Control buttons */
.btn-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-control:hover {
    background: #e2e8f0;
}

.btn-control.active {
    background: #1e293b;
    color: white;
}

.btn-control svg {
    width: 16px;
    height: 16px;
}

/* Translation content box */
.translation-content {
    background: rgba(240, 253, 244, 0.3);
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 24px;
    margin-left: 0;
    margin-right: 0;
    display: none;
}

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

.translation-content h4 {
    color: #059669;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.translation-content p {
    color: #64748b;
    line-height: 1.75;
    margin: 0;
    font-size: 17px;
    font-style: italic;
    white-space: pre-line;
}

/* Explanation box */
.info-content {
    background: rgba(240, 253, 244, 0.5);
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 24px;
    margin-left: 0;
    margin-right: 0;
    display: none;
}

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

.info-content h4 {
    color: #059669;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.info-content p {
    color: #047857;
    line-height: 1.625;
    margin: 0;
    font-size: 15px;
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 768px) {
    
    .dua-collection-main {
        padding: 20px 0;
        margin: 0;
    }
    
    .dua-item-wrapper {
        padding: 32px 15px;
    }
    
    .dua-number {
        font-size: 60px;
    }
    
    .dua-title h3 {
        font-size: 20px;
    }
    
    .dua-arabic {
        font-size: 26px;
    }
    
    .translation-content,
    .info-content {
        padding: 20px 15px;
    }
}