/*
Theme Name: قالب اختصاصی ادعیه و فروشگاه معنوی
Theme URI: https://example.com
Author: Hossein Rouzbehani
Description: قالب اختصاصی، سبک، راست‌چین و مدرن برای سایت‌های ادعیه، اذکار، خواص سوره‌ها، حرز و فروشگاه محصولات معنوی با پشتیبانی کامل از ووکامرس.
Version: 1.0.0
Text Domain: doa-shafa
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800&family=Amiri:wght@400;700&display=swap');

:root {
    --primary-color: #0f3d2e;
    --primary-light: #165b45;
    --accent-gold: #c59b27;
    --accent-gold-light: #e6ca65;
    --bg-body: #fbf9f5;
    --bg-card: #ffffff;
    --text-main: #23272a;
    --text-muted: #6b7280;
    --border-color: #e8e3d9;
    --radius-sm: 8px;
    --radius-md: 14px;
    --shadow: 0 4px 20px rgba(15, 61, 46, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
}

.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* Header & Navbar */
.site-topbar {
    background: #09261d;
    color: var(--accent-gold-light);
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(197, 155, 39, 0.3);
}

.site-header {
    background: var(--primary-color);
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header a { color: #ffffff; text-decoration: none; }

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-logo h1 { font-size: 1.6rem; font-weight: 800; color: var(--accent-gold); }
.site-logo p { font-size: 0.85rem; color: #d1fae5; }

.site-nav ul { display: flex; list-style: none; gap: 22px; margin: 0; padding: 0; }
.site-nav a { font-weight: 500; transition: color 0.3s; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent-gold-light); }

/* Hero / Search Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5a47 100%);
    color: #fff;
    padding: 50px 0 60px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
}

.hero-section h2 { font-size: 2.2rem; font-weight: 800; color: #ffffff; margin-bottom: 15px; }

.hero-section p {
    font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 650px;
    margin: 0 auto 30px auto;
}

.doa-search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.doa-search-box input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 50px;
}

.doa-search-box button {
    background: var(--accent-gold);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.doa-search-box button:hover { background: #a67f1b; }

/* Quick Category Badges */
.quick-categories { margin-top: -30px; position: relative; z-index: 10; margin-bottom: 40px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; }

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(197, 155, 39, 0.2);
}

.cat-icon { width: 48px; height: 48px; object-fit: contain; }
.cat-name { font-weight: 700; font-size: 0.95rem; }

/* Main Layout */
.main-wrapper { display: grid; grid-template-columns: 2.8fr 1.2fr; gap: 30px; margin: 40px 0 70px 0; }
.content-area { min-width: 0; }

/* Post Cards */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after { content: ''; flex: 1; height: 2px; background: var(--border-color); }

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

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.post-thumbnail img { width: 100%; height: 180px; object-fit: cover; display: block; }

.post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.post-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.post-title a { color: var(--primary-color); text-decoration: none; }
.post-title a:hover { color: var(--accent-gold); }

.post-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }

.post-excerpt { font-size: 0.9rem; color: #4b5563; line-height: 1.7; margin-bottom: 18px; flex: 1; }

.btn-more {
    display: inline-block;
    align-self: flex-start;
    background: #f1f5f3;
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid #d1ded9;
    transition: all 0.2s;
}

.btn-more:hover { background: var(--primary-color); color: #ffffff; }

/* Dua Specific Single Post Styling */
.single-doa-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 35px;
    box-shadow: var(--shadow);
}

.doa-arabic-frame {
    background: #faf7ee;
    border: 2px dashed var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 30px 25px;
    margin: 25px 0;
    text-align: center;
}

.arabic-matn {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.6rem;
    line-height: 2.2;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.farsi-tarjome {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.9;
    font-style: italic;
    border-top: 1px solid #e2d9c2;
    padding-top: 15px;
}

.doa-properties {
    background: #f0fdf4;
    border-right: 4px solid #16a34a;
    padding: 18px 22px;
    border-radius: 4px;
    margin: 25px 0;
}

.doa-properties h4 { color: #166534; margin-bottom: 8px; font-weight: 800; }

/* Sidebar */
.sidebar-area { display: flex; flex-direction: column; gap: 25px; }

.widget-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.widget-box ul { list-style: none; padding: 0; margin: 0; }
.widget-box li { padding: 8px 0; border-bottom: 1px solid #f1f1f1; }
.widget-box li:last-child { border-bottom: none; }
.widget-box a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.widget-box a:hover { color: var(--accent-gold); }

/* Store / Products Card Preview */
.product-badge { background: var(--accent-gold); color: #fff; font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; font-weight: bold; }
.product-price { font-weight: 800; color: #059669; font-size: 1.1rem; }

/* Footer */
.site-footer {
    background: #0b221a;
    color: #a7bfb6;
    padding: 50px 0 20px 0;
    border-top: 5px solid var(--accent-gold);
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 35px; margin-bottom: 40px; }

.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 2px; background: var(--accent-gold); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-gold-light); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
    font-size: 0.85rem;
    color: #8fa89f;
}

/* Responsive */
@media (max-width: 900px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .hero-section h2 { font-size: 1.6rem; }
    .header-inner { flex-direction: column; text-align: center; }
    .site-nav ul { flex-wrap: wrap; justify-content: center; }
}

/* ==================== فرم ثبت درخواست و سرکتاب/دعا ==================== */
.doa-form-container {
    max-width: 760px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 45px 40px;
    box-shadow: var(--shadow);
}

.doa-form-header { text-align: center; margin-bottom: 35px; }
.doa-form-icon {
    width: 70px; height: 70px; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold-light), var(--accent-gold));
    color: #fff; box-shadow: 0 4px 15px rgba(197,155,39,0.4);
}
.doa-form-title { font-size: 1.7rem; font-weight: 800; color: var(--primary-color); margin-bottom: 12px; }
.doa-form-subtitle { color: var(--text-muted); line-height: 1.9; font-size: 0.98rem; }
.doa-form-aya {
    margin-top: 18px; font-family: 'Amiri', serif; font-size: 1.35rem;
    color: var(--accent-gold); font-weight: 700;
    padding-top: 14px; border-top: 1px dashed var(--border-color);
}

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 25px; font-size: 0.95rem; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; border-right: 4px solid #16a34a; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; border-right: 4px solid #dc2626; color: #991b1b; }
.alert p { margin: 3px 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; font-size: 0.95rem; }
.form-group .required { color: #dc2626; }

.form-input {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem; color: var(--text-main);
    background: #fdfcf9; transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus {
    outline: none; border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(197,155,39,0.15); background: #fff;
}
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.9; }

.btn-submit {
    width: 100%; padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff; font-family: inherit; font-size: 1.1rem; font-weight: 800;
    border: none; border-radius: 50px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(15,61,46,0.3);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,61,46,0.35);
}
.btn-submit-icon { margin-left: 6px; }

.doa-form-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 18px; }
