/**
 * استایل‌های عمومی کمپین
 * 
 * @package Campaign_Management
 */

/* ========================================
   تنظیمات عمومی
======================================== */

.campaign-single-wrapper,
.campaign-archive-wrapper {
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   صفحه تک کمپین
======================================== */

.campaign-single-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.campaign-main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========================================
   هدر کمپین
======================================== */

.campaign-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.organizer-logo {
    flex-shrink: 0;
}

.organizer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e5e5;
}

.campaign-title-section {
    flex: 1;
}

.campaign-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.campaign-organizer {
    margin: 0;
    color: #666;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.campaign-organizer i {
    color: #0073aa;
}

.campaign-meta-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.campaign-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.category-badge:hover {
    background: #005177;
    color: #fff;
}

/* ========================================
   رسانه شاخص
======================================== */

.campaign-featured-media {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.campaign-featured-image img,
.campaign-video iframe {
    width: 100%;
    height: auto;
    display: block;
}

.campaign-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.campaign-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   نوار پیشرفت
======================================== */

.campaign-progress-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.campaign-progress-bar-wrapper {
    margin-bottom: 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-raised strong {
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
}

.progress-raised span,
.progress-goal {
    color: #666;
    font-size: 14px;
}

.campaign-progress-bar {
    width: 100%;
    height: 24px;
    background: #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.campaign-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #46b450 0%, #5bc560 100%);
    transition: width 0.5s ease;
    position: relative;
}

.campaign-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, transparent 100%);
}

.progress-percentage {
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
}

/* ========================================
   شمارش معکوس
======================================== */

.campaign-countdown-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff8e5;
    border-radius: 8px;
    border: 2px dashed #f0ad4e;
}

.campaign-countdown-section h3 {
    margin: 0 0 15px 0;
    text-align: center;
    color: #856404;
}

.campaign-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    min-width: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.countdown-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #f0ad4e;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.campaign-countdown.expired {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background: #f8d7da;
    border-radius: 8px;
}

/* ========================================
   محتوای کمپین
======================================== */

.campaign-content {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.campaign-content h2 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: #1a1a1a;
}

.campaign-content h3 {
    font-size: 20px;
    margin: 25px 0 12px 0;
    color: #1a1a1a;
}

.campaign-content p {
    margin-bottom: 15px;
}

.campaign-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.campaign-content ul,
.campaign-content ol {
    margin: 15px 0;
    padding-right: 25px;
}

.campaign-content li {
    margin-bottom: 8px;
}

/* ========================================
   گالری
======================================== */

.campaign-gallery {
    margin-bottom: 40px;
}

.campaign-gallery h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ========================================
   حامیان
======================================== */

.campaign-supporters {
    margin-bottom: 40px;
}

.campaign-supporters h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.supporters-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.supporter-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-right: 4px solid #0073aa;
}

.supporter-avatar {
    flex-shrink: 0;
}

.supporter-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.supporter-info {
    flex: 1;
}

.supporter-name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.supporter-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.supporter-amount {
    font-weight: 600;
    color: #0073aa;
    margin-left: 10px;
}

.supporter-date {
    color: #999;
}

.supporter-message {
    font-size: 14px;
    color: #555;
    font-style: italic;
    margin: 8px 0 0 0;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
}

/* ========================================
   اشتراک‌گذاری
======================================== */

.campaign-share-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.campaign-share-buttons h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1a1a1a;
}

.share-buttons-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-button.telegram {
    background: #0088cc;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.copy-link {
    background: #6c757d;
}

/* ========================================
   آمار کمپین
======================================== */

.campaign-stats-box {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.campaign-stats-box .stat-item {
    text-align: center;
    flex: 1;
}

.campaign-stats-box .stat-icon {
    font-size: 32px;
    color: #0073aa;
    margin-bottom: 10px;
}

.campaign-stats-box .stat-content strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.campaign-stats-box .stat-content span {
    font-size: 13px;
    color: #666;
}

/* ========================================
   سایدبار
======================================== */

.campaign-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-widget .widget-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #0073aa;
}

.sidebar-widget .widget-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
}

.sidebar-widget .organizer-info {
    padding: 20px;
    text-align: center;
}

.organizer-logo-large {
    margin-bottom: 15px;
}

.organizer-logo-large img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e5e5;
}

.organizer-info h4 {
    margin: 10px 0;
    font-size: 18px;
    color: #1a1a1a;
}

.organizer-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.organizer-info a {
    color: #0073aa;
    text-decoration: none;
}

.organizer-info a:hover {
    text-decoration: underline;
}

/* ========================================
   فرم کمک (سایدبار)
======================================== */

.campaign-donate-widget {
    padding: 0;
}

.campaign-donate-widget .widget-header {
    padding: 20px;
}

.campaign-donation-form {
    padding: 20px;
}

.suggested-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.amount-btn:hover {
    background: #e5e5e5;
    border-color: #0073aa;
}

.amount-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.campaign-ended {
    padding: 20px;
    text-align: center;
    color: #721c24;
    background: #f8d7da;
}

.campaign-ended i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* ========================================
   واکنش‌گرا
======================================== */

@media (max-width: 992px) {
    .campaign-single-content {
        grid-template-columns: 1fr;
    }
    
    .campaign-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .campaign-header {
        flex-direction: column;
        text-align: center;
    }
    
    .campaign-title {
        font-size: 24px;
    }
    
    .campaign-countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 10px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .suggested-amounts {
        grid-template-columns: 1fr;
    }
    
    .campaign-stats-box {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .campaign-single-wrapper,
    .campaign-archive-wrapper {
        padding: 20px 0;
    }
    
    .campaign-main {
        padding: 20px 15px;
    }
    
    .share-buttons-wrapper {
        justify-content: center;
    }
}