/* ==================================
   EventChi - Frontend Styles
   نسخه: 1.0.0
   ================================== */

/* ========== متغیرهای CSS ========== */
:root {
    --eventchi-primary: #3B82F6;
    --eventchi-primary-dark: #2563EB;
    --eventchi-primary-light: #DBEAFE;
    --eventchi-secondary: #8B5CF6;
    --eventchi-success: #10B981;
    --eventchi-success-light: #D1FAE5;
    --eventchi-warning: #F59E0B;
    --eventchi-warning-light: #FEF3C7;
    --eventchi-danger: #EF4444;
    --eventchi-danger-light: #FEE2E2;
    --eventchi-gray-50: #F9FAFB;
    --eventchi-gray-100: #F3F4F6;
    --eventchi-gray-200: #E5E7EB;
    --eventchi-gray-300: #D1D5DB;
    --eventchi-gray-400: #9CA3AF;
    --eventchi-gray-500: #6B7280;
    --eventchi-gray-600: #4B5563;
    --eventchi-gray-700: #374151;
    --eventchi-gray-800: #1F2937;
    --eventchi-gray-900: #111827;
    --eventchi-white: #FFFFFF;
    --eventchi-radius-sm: 8px;
    --eventchi-radius: 16px;
    --eventchi-radius-lg: 24px;
    --eventchi-radius-full: 9999px;
    --eventchi-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --eventchi-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --eventchi-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 10px -4px rgba(0, 0, 0, 0.1);
    --eventchi-shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    --eventchi-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --eventchi-font: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
}

/* ========== ریست و پایه ========== */
.eventchi-events-container,
.eventchi-widget,
.eventchi-form-wrapper,
.eventchi-countdown,
.eventchi-filters,
.eventchi-notify-box,
.eventchi-linked-event,
.eventchi-related-posts,
.eventchi-single-event,
.eventchi-archive-page {
    direction: rtl;
    font-family: var(--eventchi-font);
    box-sizing: border-box;
}

.eventchi-events-container *,
.eventchi-widget *,
.eventchi-form-wrapper *,
.eventchi-countdown *,
.eventchi-filters * {
    box-sizing: border-box;
}

/* ========== کانتینر اصلی ========== */
.eventchi-events-container {
    margin: 2rem 0;
}

/* ========== لایه‌بندی گرید ========== */
.eventchi-layout-grid {
    display: grid;
    gap: 1.5rem;
}

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

@media (max-width: 1200px) {
    .eventchi-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

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

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

/* ========== لایه‌بندی لیستی ========== */
.eventchi-layout-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eventchi-layout-list .eventchi-card {
    display: flex;
    flex-direction: row;
}

.eventchi-layout-list .eventchi-card-image {
    width: 280px;
    flex-shrink: 0;
    min-height: 100%;
}

.eventchi-layout-list .eventchi-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .eventchi-layout-list .eventchi-card {
        flex-direction: column;
    }
    
    .eventchi-layout-list .eventchi-card-image {
        width: 100%;
        aspect-ratio: 16/9;
    }
}

/* ========== کارت رویداد ========== */
.eventchi-card {
    background: var(--eventchi-white);
    border-radius: var(--eventchi-radius);
    box-shadow: var(--eventchi-shadow);
    overflow: hidden;
    transition: var(--eventchi-transition);
    border: 1px solid var(--eventchi-gray-100);
    position: relative;
}

.eventchi-card:hover {
    box-shadow: var(--eventchi-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--eventchi-primary-light);
}

.eventchi-card[data-status="در حال برگزاری"] {
    border-color: var(--eventchi-warning);
    box-shadow: 0 0 0 1px var(--eventchi-warning), var(--eventchi-shadow);
}

.eventchi-card[data-status="در حال برگزاری"]:hover {
    box-shadow: 0 0 0 2px var(--eventchi-warning), var(--eventchi-shadow-lg);
}

/* ========== تصویر کارت ========== */
.eventchi-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--eventchi-gray-200) 0%, var(--eventchi-gray-100) 100%);
}

.eventchi-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.eventchi-card:hover .eventchi-thumbnail {
    transform: scale(1.08);
}

.eventchi-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--eventchi-gray-400);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.3;
}

.eventchi-no-image svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* ========== نشان وضعیت ========== */
.eventchi-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: var(--eventchi-radius-full);
    color: var(--eventchi-white);
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    letter-spacing: 0.3px;
}

.eventchi-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: var(--eventchi-radius-full);
    background: rgba(255, 255, 255, 0.95);
    color: var(--eventchi-gray-700);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* ========== محتوای کارت ========== */
.eventchi-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eventchi-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.5;
}

.eventchi-card-title a {
    color: var(--eventchi-gray-900);
    text-decoration: none;
    transition: var(--eventchi-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eventchi-card-title a:hover {
    color: var(--eventchi-primary);
}

/* ========== متا دیتا ========== */
.eventchi-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.eventchi-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--eventchi-gray-600);
    line-height: 1.4;
}

.eventchi-meta-icon {
    flex-shrink: 0;
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.eventchi-meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== خلاصه ========== */
.eventchi-card-excerpt {
    font-size: 0.875rem;
    color: var(--eventchi-gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eventchi-card-excerpt p {
    margin: 0;
}

/* ========== دکمه‌ها ========== */
.eventchi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--eventchi-radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--eventchi-transition);
    border: none;
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
}

.eventchi-btn-primary {
    background: var(--eventchi-primary);
    color: var(--eventchi-white);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.eventchi-btn-primary:hover {
    background: var(--eventchi-primary-dark);
    color: var(--eventchi-white);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.eventchi-btn-secondary {
    background: var(--eventchi-gray-100);
    color: var(--eventchi-gray-700);
}

.eventchi-btn-secondary:hover {
    background: var(--eventchi-gray-200);
    color: var(--eventchi-gray-900);
    text-decoration: none;
}

.eventchi-btn-subscribed {
    background: var(--eventchi-success-light);
    color: var(--eventchi-success);
    cursor: default;
}

.eventchi-btn-subscribed:hover {
    background: var(--eventchi-success-light);
    color: var(--eventchi-success);
}

.eventchi-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.eventchi-btn:hover svg {
    transform: translateX(-4px);
}

/* ========== شمارنده معکوس ========== */
.eventchi-countdown {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d1b69 100%);
    color: var(--eventchi-white);
    border-radius: var(--eventchi-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--eventchi-shadow-xl);
    position: relative;
    overflow: hidden;
}

.eventchi-countdown::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: eventchi-pulse 3s ease-in-out infinite;
}

@keyframes eventchi-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.eventchi-countdown-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.eventchi-countdown-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.eventchi-countdown-date {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.eventchi-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.eventchi-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.eventchi-countdown-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--eventchi-radius);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 90px;
    text-align: center;
}

.eventchi-countdown-text {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.8;
    font-weight: 500;
}

.eventchi-countdown-separator {
    font-size: 2.5rem;
    font-weight: 300;
    opacity: 0.5;
    margin-top: -1.5rem;
}

@media (max-width: 640px) {
    .eventchi-countdown {
        padding: 1.5rem 1rem;
    }
    
    .eventchi-countdown-number {
        font-size: 1.75rem;
        padding: 0.5rem 0.75rem;
        min-width: 60px;
    }
    
    .eventchi-countdown-item {
        min-width: 60px;
    }
    
    .eventchi-countdown-separator {
        font-size: 1.5rem;
    }
}

/* ========== وضعیت‌ها ========== */
.eventchi-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--eventchi-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.eventchi-status-icon {
    font-size: 0.875rem;
}

/* ========== حالت خالی ========== */
.eventchi-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--eventchi-gray-400);
    font-size: 1.125rem;
    background: var(--eventchi-gray-50);
    border-radius: var(--eventchi-radius);
    border: 2px dashed var(--eventchi-gray-200);
}

/* ========== ویجت ========== */
.eventchi-widget {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eventchi-widget-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--eventchi-white);
    border-radius: var(--eventchi-radius-sm);
    border: 1px solid var(--eventchi-gray-100);
    transition: var(--eventchi-transition);
    align-items: flex-start;
}

.eventchi-widget-item:hover {
    background: var(--eventchi-gray-50);
    border-color: var(--eventchi-primary-light);
}

.eventchi-widget-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.eventchi-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eventchi-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.eventchi-widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--eventchi-gray-800);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eventchi-widget-title:hover {
    color: var(--eventchi-primary);
}

.eventchi-widget-date,
.eventchi-widget-location {
    font-size: 0.75rem;
    color: var(--eventchi-gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eventchi-widget-all {
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--eventchi-primary);
    text-decoration: none;
    background: var(--eventchi-primary-light);
    border-radius: var(--eventchi-radius-sm);
    transition: var(--eventchi-transition);
}

.eventchi-widget-all:hover {
    background: var(--eventchi-primary);
    color: var(--eventchi-white);
    text-decoration: none;
}

.eventchi-widget-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--eventchi-gray-400);
    font-size: 0.875rem;
}

/* ========== فیلترها ========== */
.eventchi-filters {
    background: var(--eventchi-white);
    border-radius: var(--eventchi-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--eventchi-shadow-sm);
    border: 1px solid var(--eventchi-gray-100);
}

.eventchi-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.eventchi-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 150px;
}

.eventchi-filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--eventchi-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eventchi-filter-select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--eventchi-gray-300);
    border-radius: var(--eventchi-radius-sm);
    font-size: 0.875rem;
    font-family: var(--eventchi-font);
    background: var(--eventchi-white);
    color: var(--eventchi-gray-700);
    transition: var(--eventchi-transition);
    min-width: 150px;
    cursor: pointer;
}

.eventchi-filter-select:focus {
    outline: none;
    border-color: var(--eventchi-primary);
    box-shadow: 0 0 0 3px var(--eventchi-primary-light);
}

@media (max-width: 768px) {
    .eventchi-filter-form {
        flex-direction: column;
    }
    
    .eventchi-filter-group {
        width: 100%;
    }
    
    .eventchi-filter-select {
        width: 100%;
    }
}

/* ========== آرشیو ========== */
.eventchi-past-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eventchi-past-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--eventchi-white);
    border-radius: var(--eventchi-radius-sm);
    border: 1px solid var(--eventchi-gray-100);
    transition: var(--eventchi-transition);
}

.eventchi-past-item:hover {
    background: var(--eventchi-gray-50);
    border-color: var(--eventchi-primary-light);
    transform: translateX(-4px);
}

.eventchi-past-date {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: var(--eventchi-gray-500);
    font-weight: 600;
    background: var(--eventchi-gray-100);
    padding: 0.375rem 0.75rem;
    border-radius: var(--eventchi-radius-full);
}

.eventchi-past-item a {
    color: var(--eventchi-gray-800);
    text-decoration: none;
    font-weight: 600;
    transition: var(--eventchi-transition);
}

.eventchi-past-item a:hover {
    color: var(--eventchi-primary);
}

.eventchi-archive-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--eventchi-gray-800);
}

/* ========== لینک به اخبار ========== */
.eventchi-linked-event {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--eventchi-primary-light);
    border-radius: var(--eventchi-radius);
    border: 1px solid var(--eventchi-primary);
}

.eventchi-linked-event h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--eventchi-primary-dark);
}

.eventchi-linked-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.eventchi-linked-date {
    font-size: 0.875rem;
    color: var(--eventchi-gray-600);
    font-weight: 500;
}

.eventchi-related-posts {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--eventchi-gray-50);
    border-radius: var(--eventchi-radius);
}

.eventchi-related-posts h3 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: var(--eventchi-gray-800);
}

.eventchi-related-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eventchi-related-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--eventchi-white);
    border-radius: var(--eventchi-radius-sm);
    transition: var(--eventchi-transition);
}

.eventchi-related-item:hover {
    box-shadow: var(--eventchi-shadow-sm);
}

.eventchi-relation-type {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--eventchi-radius-full);
    background: var(--eventchi-primary-light);
    color: var(--eventchi-primary);
    white-space: nowrap;
}

.eventchi-related-item a {
    color: var(--eventchi-gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--eventchi-transition);
}

.eventchi-related-item a:hover {
    color: var(--eventchi-primary);
}

/* ========== فرم ارسال رویداد ========== */
.eventchi-form-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--eventchi-white);
    border-radius: var(--eventchi-radius-lg);
    box-shadow: var(--eventchi-shadow-lg);
}

.eventchi-form-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--eventchi-gray-900);
}

.eventchi-form-description {
    margin: 0 0 2rem;
    color: var(--eventchi-gray-500);
    font-size: 0.9375rem;
}

.eventchi-form-group {
    margin-bottom: 1.5rem;
}

.eventchi-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--eventchi-gray-700);
}

.eventchi-form-group input[type="text"],
.eventchi-form-group input[type="url"],
.eventchi-form-group input[type="time"],
.eventchi-form-group input[type="email"],
.eventchi-form-group input[type="file"],
.eventchi-form-group select,
.eventchi-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--eventchi-gray-300);
    border-radius: var(--eventchi-radius-sm);
    font-size: 0.9375rem;
    font-family: var(--eventchi-font);
    color: var(--eventchi-gray-800);
    transition: var(--eventchi-transition);
    background: var(--eventchi-white);
}

.eventchi-form-group input:focus,
.eventchi-form-group select:focus,
.eventchi-form-group textarea:focus {
    outline: none;
    border-color: var(--eventchi-primary);
    box-shadow: 0 0 0 3px var(--eventchi-primary-light);
}

.eventchi-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.eventchi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .eventchi-form-row {
        grid-template-columns: 1fr;
    }
    
    .eventchi-form-wrapper {
        padding: 1.5rem;
    }
}

.eventchi-form-hint {
    font-size: 0.75rem;
    color: var(--eventchi-gray-400);
    margin-top: 0.375rem;
}

.eventchi-submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--eventchi-primary) 0%, var(--eventchi-secondary) 100%);
    color: var(--eventchi-white);
    border: none;
    border-radius: var(--eventchi-radius-full);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--eventchi-font);
    cursor: pointer;
    transition: var(--eventchi-transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.eventchi-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.eventchi-submit-button:active {
    transform: translateY(0);
}

.eventchi-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.eventchi-error {
    padding: 1rem;
    background: var(--eventchi-danger-light);
    color: var(--eventchi-danger);
    border-radius: var(--eventchi-radius-sm);
    border: 1px solid var(--eventchi-danger);
    font-weight: 600;
    margin-top: 1rem;
}

.eventchi-success {
    text-align: center;
    padding: 3rem;
    background: var(--eventchi-success-light);
    border-radius: var(--eventchi-radius);
    border: 1px solid var(--eventchi-success);
}

.eventchi-success h3 {
    color: var(--eventchi-success);
    margin: 0 0 1rem;
}

.eventchi-success p {
    color: var(--eventchi-gray-600);
    margin-bottom: 1.5rem;
}

/* ========== اعلان‌ها ========== */
.eventchi-notify-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--eventchi-gray-50) 0%, var(--eventchi-primary-light) 100%);
    border-radius: var(--eventchi-radius);
    border: 1px solid var(--eventchi-primary-light);
    text-align: center;
}

.eventchi-notify-box h4 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    color: var(--eventchi-gray-800);
}

.eventchi-notify-box p {
    margin: 0 0 1rem;
    color: var(--eventchi-gray-600);
    font-size: 0.9375rem;
}

.eventchi-notify-guest {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.eventchi-notify-guest input {
    width: 100%;
    max-width: 350px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--eventchi-gray-300);
    border-radius: var(--eventchi-radius-full);
    font-size: 0.9375rem;
    font-family: var(--eventchi-font);
    text-align: center;
}

.eventchi-notify-hint {
    font-size: 0.75rem !important;
    color: var(--eventchi-gray-400) !important;
}

.eventchi-subscriber-count {
    margin-top: 0.75rem !important;
    font-size: 0.8125rem !important;
    color: var(--eventchi-gray-500) !important;
    font-weight: 500;
}

.eventchi-login-required {
    text-align: center;
    padding: 3rem;
    background: var(--eventchi-gray-50);
    border-radius: var(--eventchi-radius);
    border: 2px dashed var(--eventchi-gray-200);
}

.eventchi-login-required p {
    font-size: 1.125rem;
    color: var(--eventchi-gray-600);
    margin-bottom: 1.5rem;
}

/* ========== انیمیشن‌ها ========== */
@keyframes eventchi-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.eventchi-card {
    animation: eventchi-fadeIn 0.5s ease forwards;
}

.eventchi-card:nth-child(1) { animation-delay: 0.05s; }
.eventchi-card:nth-child(2) { animation-delay: 0.1s; }
.eventchi-card:nth-child(3) { animation-delay: 0.15s; }
.eventchi-card:nth-child(4) { animation-delay: 0.2s; }
.eventchi-card:nth-child(5) { animation-delay: 0.25s; }
.eventchi-card:nth-child(6) { animation-delay: 0.3s; }
.eventchi-card:nth-child(7) { animation-delay: 0.35s; }
.eventchi-card:nth-child(8) { animation-delay: 0.4s; }

/* ========== اسکلتون لودینگ ========== */
.eventchi-skeleton {
    background: linear-gradient(90deg, var(--eventchi-gray-200) 25%, var(--eventchi-gray-100) 50%, var(--eventchi-gray-200) 75%);
    background-size: 200% 100%;
    animation: eventchi-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--eventchi-radius-sm);
}

@keyframes eventchi-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========== پرینت ========== */
@media print {
    .eventchi-card-badge,
    .eventchi-type-badge,
    .eventchi-btn,
    .eventchi-filters,
    .eventchi-notify-box {
        display: none !important;
    }
    
    .eventchi-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

.ev-sc-empty { text-align: center; padding: 40px; color: #6B7280; font-size: 14px; background: #F9FAFB; border-radius: 8px; }

.ev-sc-grid { display: grid; gap: 16px; }
.ev-sc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ev-sc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ev-sc-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .ev-sc-cols-3, .ev-sc-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ev-sc-cols-2, .ev-sc-cols-3, .ev-sc-cols-4 { grid-template-columns: 1fr; } }

.ev-sc-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; transition: all 0.2s; }
.ev-sc-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.ev-sc-card__image { display: block; position: relative; overflow: hidden; aspect-ratio: 16/10; background: #F3F4F6; }
.ev-sc-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ev-sc-card:hover .ev-sc-card__img { transform: scale(1.05); }
.ev-sc-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 40px; color: #D1D5DB; background: linear-gradient(135deg, #F9FAFB, #E5E7EB); }
.ev-sc-card__badge { position: absolute; top: 8px; right: 8px; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #fff; }
.ev-sc-card__body { padding: 14px; }
.ev-sc-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6B7280; margin-bottom: 8px; }
.ev-sc-card__date { font-weight: 500; }
.ev-sc-card__time { background: #F3F4F6; padding: 1px 6px; border-radius: 3px; }
.ev-sc-card__title { font-size: 15px; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
.ev-sc-card__title a { color: #1D2327; text-decoration: none; }
.ev-sc-card__title a:hover { color: #193052; }
.ev-sc-card__location { font-size: 12px; color: #6B7280; margin: 0 0 4px; }
.ev-sc-card__cost { font-size: 12px; color: #193052; font-weight: 600; margin: 0; }

.ev-countdown { background: linear-gradient(135deg, #1D2327 0%, #193052 100%); color: #fff; border-radius: 10px; padding: 24px; text-align: center; }
.ev-countdown__title { font-size: 12px; opacity: 0.7; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.ev-countdown__date { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.ev-countdown__timer { display: flex; justify-content: center; gap: 16px; }
.ev-countdown__unit { display: flex; flex-direction: column; align-items: center; }
.ev-countdown__num { font-size: 36px; font-weight: 900; font-variant-numeric: tabular-nums; background: rgba(255,255,255,0.15); border-radius: 8px; padding: 8px 14px; min-width: 70px; text-align: center; }
.ev-countdown__label { font-size: 11px; margin-top: 6px; opacity: 0.7; }
@media (max-width: 480px) {
    .ev-countdown__num { font-size: 24px; min-width: 50px; padding: 6px 10px; }
    .ev-countdown__timer { gap: 8px; }
}

.ev-today { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: 16px; }
.ev-today__title { font-size: 15px; font-weight: 700; color: #1D2327; margin: 0 0 12px; }
.ev-today__list { list-style: none; margin: 0; padding: 0; }
.ev-today__list li { padding: 8px 0; border-bottom: 1px solid #F3F4F6; }
.ev-today__list li:last-child { border-bottom: none; }
.ev-today__list a { color: #1D2327; text-decoration: none; font-weight: 500; font-size: 14px; }
.ev-today__list a:hover { color: #193052; }
.ev-today__time { font-size: 12px; color: #6B7280; margin-right: 8px; }

.ev-past { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: 16px; }
.ev-past__title { font-size: 15px; font-weight: 700; color: #1D2327; margin: 0 0 12px; }
.ev-past__list { display: flex; flex-direction: column; gap: 4px; }
.ev-past__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; transition: background 0.2s; }
.ev-past__item:hover { background: #F9FAFB; }
.ev-past__date { font-size: 12px; color: #6B7280; font-weight: 500; white-space: nowrap; background: #F3F4F6; padding: 2px 8px; border-radius: 4px; }
.ev-past__item a { color: #1D2327; text-decoration: none; font-size: 14px; font-weight: 500; }
.ev-past__item a:hover { color: #193052; }