/* campaign.css - 캠페인 페이지 공통 스타일 (CC, GC, IC) */

/* 메인 래퍼 */
.campaign-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.campaign-container {
    margin: 0 auto;
}

/* ===================== 캠페인 소개 ===================== */
.campaign-intro {
    text-align: center;
    margin-bottom: 50px;
    animation: campFadeIn 0.5s ease forwards;
}

.campaign-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--main-color);
    background-color: #f5f3fa;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.campaign-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 16px;
}

.campaign-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================== 섹션 공통 ===================== */
.campaign-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--main-color);
}

/* ===================== 분류 그리드 ===================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-item {
    padding: 18px 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    background-color: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    line-height: 1.5;
    transition: background-color 0.2s ease;
}

.category-item:hover {
    background-color: #f0edf7;
    border-color: var(--main-color);
    color: var(--main-color);
}

/* ===================== CC 활동 리스트 (번호형) ===================== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.act-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.act-item:last-child {
    border-bottom: none;
}

.act-num {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--main-color);
    opacity: 0.6;
    min-width: 30px;
    padding-top: 2px;
}

.act-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.5;
}

.act-sub {
    font-size: 14px;
    color: var(--main-color);
    font-weight: 500;
    margin: 0 0 4px;
}

.act-detail {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.act-detail li {
    position: relative;
    padding-left: 14px;
    font-size: 14px;
    color: #777;
    line-height: 1.7;
}

.act-detail li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #bbb;
}

/* ===================== GC/IC 카테고리별 활동 ===================== */
.act-category {
    margin-bottom: 40px;
}

.act-category:last-child {
    margin-bottom: 0;
}

.act-cat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 18px;
    padding: 14px 20px;
    background-color: #f5f3fa;
    border-radius: 8px;
}

.act-cat-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--main-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 활동 카드 그리드 */
.act-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.act-card {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.act-card:hover {
    border-color: #ccc;
}

.act-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.5;
}

.act-card > p {
    font-size: 14px;
    line-height: 1.7;
    color: #777;
    margin: 0;
}

.act-card .act-detail {
    margin: 4px 0 0;
}

/* ===================== 애니메이션 ===================== */
@keyframes campFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== 반응형 ===================== */
@media (max-width: 768px) {
    .campaign-wrapper {
        padding: 0 15px 60px;
    }

    .campaign-title {
        font-size: 26px;
    }

    .campaign-description {
        font-size: 15px;
    }

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

    .act-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 18px;
    }

    .act-cat-title {
        font-size: 16px;
        padding: 12px 16px;
    }

    .act-body h3 {
        font-size: 15px;
    }

    .act-card h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .campaign-title {
        font-size: 22px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .category-item {
        padding: 14px 10px;
        font-size: 13px;
    }

    .act-item {
        gap: 12px;
        padding: 16px 0;
    }

    .act-num {
        font-size: 16px;
        min-width: 24px;
    }

    .act-card {
        padding: 16px;
    }
}
