/* Donor Voices Frontend Styles */

/* Arabic Text */
.arabic-text,
.dua-box .arabic,
[dir="rtl"] {
    font-family: 'Scheherazade New', 'Traditional Arabic', 'Noto Naskh Arabic', serif;
    font-size: 1.8em;
    line-height: 2.2;
    direction: rtl;
    text-align: right;
}

.arabic-text.large {
    font-size: 2.4em;
}

p.arabic-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-right: 4px solid #2e7d32;
}

/* Dua Box */
.dua-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    border-left: 5px solid #2e7d32;
    padding: 30px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.dua-box h3 {
    color: #1b5e20;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.dua-box .arabic {
    margin-bottom: 20px;
}

.dua-box .transliteration {
    font-style: italic;
    color: #555;
    font-size: 1.15em;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
}

.dua-box .translation {
    font-size: 1.1em;
    color: #333;
}

.dua-box .translation p {
    margin: 0;
}

/* Source Citation */
.source {
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 20px;
    font-style: italic;
}

/* Benefits List */
.benefits ul,
.virtues ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits li,
.virtues li {
    padding: 10px 0 10px 35px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.benefits li:last-child,
.virtues li:last-child {
    border-bottom: none;
}

.benefits li::before,
.virtues li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: #2e7d32;
    font-weight: bold;
    font-size: 18px;
}

/* FAQ Styling */
.faq,
.faq-section {
    margin: 30px 0;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 18px 20px;
    font-size: 1.1em;
    color: #1e3a5f;
    cursor: pointer;
}

.faq-item h3:hover {
    background: #e9ecef;
}

.faq-item p {
    margin: 0;
    padding: 18px 20px;
    color: #555;
    line-height: 1.7;
}

/* Tables - scoped to plugin content */
.dv-seo-content table,
.rakat-table,
.times-table,
.dv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dv-seo-content table th,
.rakat-table th,
.times-table th,
.dv-table th {
    background: #1e3a5f;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.dv-seo-content table td,
.rakat-table td,
.times-table td,
.dv-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.dv-seo-content table tr:last-child td,
.rakat-table tr:last-child td,
.times-table tr:last-child td,
.dv-table tr:last-child td {
    border-bottom: none;
}

.dv-seo-content table tr:nth-child(even),
.rakat-table tr:nth-child(even),
.times-table tr:nth-child(even),
.dv-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid #2e7d32;
}

.highlight-box p {
    margin: 8px 0;
}

.highlight-box p:first-child {
    margin-top: 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Charity Card */
.charity-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.charity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.charity-card h3 {
    margin-top: 0;
    color: #1e3a5f;
}

.charity-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.charity-card li {
    padding: 5px 0;
    color: #555;
}

/* Steps */
.step {
    padding: 20px;
    margin: 15px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2e7d32;
}

.step h3 {
    margin-top: 0;
    color: #1e3a5f;
}

.step p {
    margin-bottom: 0;
}

/* CTA Button */
.dv-charity-cta,
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white !important;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.dv-charity-cta:hover,
.cta-button:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #0d3d12 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Email Signup */
.dv-email-signup {
    background: linear-gradient(135deg, #1e3a5f 0%, #2e5077 100%);
    color: white;
    padding: 35px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.dv-email-signup h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5em;
}

.dv-email-signup p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.dv-email-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.dv-email-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
}

.dv-email-form button {
    padding: 15px 30px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.dv-email-form button:hover {
    background: #1b5e20;
}

/* Related Posts */
.dv-related-posts {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.dv-related-posts h3 {
    margin-top: 0;
}

.dv-related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.dv-related-posts li {
    margin: 0;
}

.dv-related-posts a {
    display: block;
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #1e3a5f;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dv-related-posts a:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

/* Sections - scoped to plugin content only */
.dv-seo-content section,
.entry-content section.dv-section {
    margin: 30px 0;
}

.dv-seo-content section h2,
.entry-content section.dv-section h2 {
    color: #1e3a5f;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Blockquote - scoped to plugin content */
.dv-seo-content blockquote,
blockquote.dv-quote {
    background: #f8f9fa;
    border-left: 4px solid #2e7d32;
    margin: 25px 0;
    padding: 20px 25px;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.dv-seo-content blockquote cite,
blockquote.dv-quote cite {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

/* Names Grid (99 Names) */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.names-grid .name {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.names-grid .arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 1.5em;
    color: #1e3a5f;
    direction: rtl;
}

.names-grid .english {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

/* Article Headers - scoped to plugin content */
.dv-seo-content article header,
article.dv-article header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.dv-seo-content article header h1,
article.dv-article header h1 {
    margin-bottom: 10px;
    color: #1e3a5f;
}

.dv-seo-content article header .subtitle,
article.dv-article header .subtitle {
    font-size: 1.2em;
    color: #666;
    margin: 0;
}

/* Print Styles */
@media print {
    .dv-email-signup,
    .dv-charity-cta,
    .dv-related-posts {
        display: none;
    }
    
    .arabic-text {
        font-size: 1.5em;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .arabic-text,
    .dua-box .arabic {
        font-size: 1.4em;
    }
    
    .arabic-text.large {
        font-size: 1.8em;
    }
    
    .dv-email-form {
        flex-direction: column;
    }
    
    .dv-email-form input[type="email"],
    .dv-email-form button {
        width: 100%;
    }
    
    .dua-box {
        padding: 20px;
    }
    
    .dv-seo-content table,
    .dv-table {
        font-size: 14px;
    }
    
    .dv-seo-content table th,
    .dv-seo-content table td,
    .dv-table th,
    .dv-table td {
        padding: 10px;
    }
}
