/*
 * СТИЛИ ДЛЯ ПЕТИЦИИ МАСТЕР-КЛАССОВ И КАТЕГОРИЙ
 * По принципам Дональда Нормана
 */

/* ==========================================
   УЛУЧШЕНИЯ ЗАГОЛОВКОВ
   ========================================== */

/* Убираем разделительную линию */
.how-it-works .section-title {
    border: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.how-it-works .section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ==========================================
   СЕКЦИЯ КАТЕГОРИЙ
   ========================================== */

.categories-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #faf8f3 0%, #ffffff 100%);
}

.categories-heading {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-color);
}

/* ==========================================
   ПЕТИЦИЯ МАСТЕР-КЛАССОВ - По Норману
   ========================================== */

.masterclass-petition {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff 0%, #faf8f3 100%);
}

.petition-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.petition-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Иконка - без анимации */
.petition-icon {
    font-size: 80px;
    flex-shrink: 0;
    /* Без анимации */
}

.petition-content {
    width: 100%;
}

/* Заголовок - четкий и понятный */
.petition-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

/* Текст - информативный */
.petition-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0 0 32px 0;
}

/* Статистика - visibility по Норману */
.petition-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.petition-stat {
    text-align: center;
}

.petition-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.petition-goal .petition-stat-number {
    color: var(--text-muted);
}

.petition-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Progress bar - feedback по Норману */
.petition-progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 32px;
}

.petition-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.5s ease;
    border-radius: 999px;
}

/* Кнопка - явная affordance */
.petition-btn {
    width: 100%;
    max-width: 400px;
    padding: 20px 32px;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Подсказка - constraint по Норману */
.petition-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    font-size: 15px;
    color: #856404;
    margin: 0;
}

.petition-note-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */

@media (max-width: 768px) {
    .categories-heading {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .petition-card {
        padding: 32px 24px;
    }
    
    .petition-title {
        font-size: 24px;
        text-align: center;
    }
    
    .petition-text {
        font-size: 16px;
        text-align: center;
    }
    
    .petition-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .petition-stat-number {
        font-size: 36px;
    }
    
    .petition-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 40px 0;
    }
    
    .masterclass-petition {
        padding: 40px 0;
    }
    
    .petition-card {
        padding: 24px 20px;
    }
    
    .petition-title {
        font-size: 20px;
    }
    
    .petition-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .petition-stat {
        text-align: center;
    }
}

/* ==========================================
   УСПЕШНОЕ ГОЛОСОВАНИЕ - Feedback
   ========================================== */

.petition-voted {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.petition-voted .petition-title::after {
    content: ' ✅';
}

.petition-voted .petition-btn {
    background: #28a745;
    border-color: #28a745;
    pointer-events: none;
}

.petition-voted .petition-btn .btn-text::after {
    content: ' (Вы проголосовали!)';
}
