/**
 * استایل‌های آماده برای ویجت‌های المنتور
 */

/* استایل‌های عمومی */
.shahreza-widget {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;

    color: #05384d;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background-color: #f9a825;
}

/* استایل کارت‌ها */
.shahreza-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

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

.shahreza-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.shahreza-card-content {
    padding: 20px;
}

.shahreza-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2e7d32;
}

.shahreza-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* استایل دکمه‌ها */
.shahreza-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2e7d32;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.shahreza-btn:hover {
    background-color: #1b5e20;
    color: #fff;
}

.shahreza-btn-outline {
    background-color: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32;
}

.shahreza-btn-outline:hover {
    background-color: #2e7d32;
    color: #fff;
}

/* استایل شبکه‌ها */
.shahreza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.shahreza-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.shahreza-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.shahreza-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .shahreza-grid-2,
    .shahreza-grid-3,
    .shahreza-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* استایل نوار کناری */
.shahreza-sidebar-widget {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* استایل هدر */
.shahreza-header {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    padding: 15px 0;
}

/* استایل فوتر */
.shahreza-footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
}

/* استایل تب‌ها */
.shahreza-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.shahreza-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.shahreza-tab.active {
    color: #2e7d32;
    border-bottom: 2px solid #2e7d32;
}

.shahreza-tab:hover {
    color: #2e7d32;
}

/* استایل آکاردئون */
.shahreza-accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.shahreza-accordion-header {
    padding: 15px;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shahreza-accordion-header i {
    transition: transform 0.3s ease;
}

.shahreza-accordion-item.active .shahreza-accordion-header i {
    transform: rotate(180deg);
}

.shahreza-accordion-content {
    padding: 15px;
    display: none;
}

.shahreza-accordion-item.active .shahreza-accordion-content {
    display: block;
}

/* استایل شمارنده */
.shahreza-counter {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    border-radius: 8px;
}

.shahreza-counter-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.shahreza-counter-label {
    font-size: 18px;
    opacity: 0.9;
}

/* استایل گالری */
.shahreza-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.shahreza-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shahreza-gallery-item:hover img {
    transform: scale(1.1);
}

.shahreza-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.shahreza-gallery-item:hover .shahreza-gallery-overlay {
    transform: translateY(0);
}

/* استایل فرم جستجو */
.shahreza-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.shahreza-search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.shahreza-search-button {
    padding: 12px 20px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.shahreza-search-button:hover {
    background: #1b5e20;
}

/* استایل برچسب وضعیت */
.shahreza-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.shahreza-status-success {
    background: #4caf50;
    color: #fff;
}

.shahreza-status-warning {
    background: #ff9800;
    color: #fff;
}

.shahreza-status-danger {
    background: #f44336;
    color: #fff;
}

.shahreza-status-info {
    background: #2196f3;
    color: #fff;
}

/* استایل تاریخ */
.shahreza-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.shahreza-date i {
    margin-left: 5px;
    color: #2e7d32;
}