/* includes/assets/css/frontend.css */

:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --accent-color: #f0f7da;
    --text-color: #333;
    --light-text: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* فونت Vazirmatn */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

.kerman-mosques-rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

/* استایل‌های عمومی با فونت جدید */
.kerman-mosques-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

.kerman-current-date {
    text-align: center;
    margin: 15px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

/* استایل‌های کارت برنامه‌ها - در یک ردیف */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.program-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* استایل‌های کارت مساجد - کوچکتر و در یک ردیف */
.mosques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.mosque-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

.mosque-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mosque-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f7da;
}

.mosque-name {
    color: #2c5f2d;
    margin: 0;
    font-size: 1rem;
    flex: 1;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

.prayer-indicators {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.prayer-indicator {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: bold;
    color: white;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

.prayer-indicator.fajr { background: #4a6572; }
.prayer-indicator.dhuhr { background: #2271b1; }
.prayer-indicator.maghrib { background: #d63638; }

.mosque-details {
    margin-bottom: 10px;
}

.mosque-address,
.mosque-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #666;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

.mosque-address i,
.mosque-phone i {
    color: #97bc62;
    width: 14px;
}

.mosque-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.map-btn,
.programs-btn {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

/* استایل‌های اوقات نماز - کوچکتر و در یک ردیف */
.prayer-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.prayer-category {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.prayer-title {
    color: #2c5f2d;
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f7da;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

.mosques-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.mosque-card.compact {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}

.mosque-card.compact:hover {
    background: #f0f7da;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mosque-card.compact .mosque-name {
    font-weight: 500;
    color: #2c5f2d;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.mosque-card.compact .mosque-address {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.3;
}

/* استایل‌های اسلایدرها - هم اندازه */
.sliders-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.slider-column {
    min-height: 120px;
}

.events-slider,
.weekly-events-slider {
    height: 120px !important;
}

/* استایل‌های فونت برای تمام عناصر */
.kerman-full-page,
.kerman-section,
.section-title,
.program-title,
.mosque-name,
.prayer-title,
.filter-btn,
.kerman-btn {
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .mosques-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .mosques-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .prayer-categories {
        grid-template-columns: 1fr;
    }
    
    .sliders-row {
        grid-template-columns: 1fr;
    }
    
    .mosque-card {
        padding: 12px;
    }
    
    .mosque-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mosques-grid {
        grid-template-columns: 1fr;
    }
    
    .mosques-grid.compact {
        grid-template-columns: repeat(2, 1fr);
    }
}