.c2c-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 150px);
}

/* 상단 인증 배너 */
.auth-banner {
    background-color: #fee500;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.auth-banner .auth-text h4 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}
.auth-banner .auth-text p {
    font-size: 15px;
    color: #333;
    margin: 0;
}
.auth-btn {
    background-color: #191919;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-btn:hover {
    background-color: #000;
    color: #fff;
}

/* 리스트 상단 컨트롤 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.list-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}
.write-btn {
    background-color: #2b70c9;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}
.write-btn:hover {
    background-color: #1e5296;
    color: #fff;
}

/* 미션 리스트 (그리드) */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.mission-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.mission-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}
.badge-urgent {
    background-color: #ffebee;
    color: #d32f2f;
}
.badge-normal {
    background-color: #e3f2fd;
    color: #1976d2;
}
.mission-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.mission-card .location {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mission-card .price {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

/* ============================================================
   C2C 글쓰기 (미션 등록) 화면
   ============================================================ */
.c2c-write-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    margin-top: 20px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}
.form-control-c2c {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}
.form-control-c2c:focus {
    border-color: #2b70c9;
    outline: none;
}
textarea.form-control-c2c {
    resize: vertical;
    min-height: 150px;
}
.btn-group-c2c {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}
.btn-c2c-submit {
    background-color: #2b70c9;
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-c2c-submit:hover {
    background-color: #1e5296;
}
.btn-c2c-cancel {
    background-color: #f5f5f5;
    color: #555;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}
.btn-c2c-cancel:hover {
    background-color: #e0e0e0;
}

/* ============================================================
   C2C 상세 보기 화면
   ============================================================ */
.c2c-view-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.c2c-view-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 25px;
}
.c2c-view-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}
.c2c-view-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #111;
    line-height: 1.4;
}
.c2c-profile-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.c2c-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.c2c-profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}
.c2c-profile-text .nickname {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}
.c2c-profile-text .meta {
    font-size: 13px;
    color: #888;
}
.c2c-temperature {
    text-align: right;
}
.c2c-temperature .temp-value {
    font-size: 16px;
    font-weight: 700;
    color: #2b70c9;
}
.c2c-temperature .temp-label {
    font-size: 12px;
    color: #888;
}
.c2c-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.c2c-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.c2c-info-item i {
    font-size: 20px;
    color: #555;
    margin-top: 2px;
}
.c2c-info-content .label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    display: block;
}
.c2c-info-content .value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}
.c2c-info-content .value.price {
    font-size: 24px;
    color: #2b70c9;
    font-weight: 800;
}
.c2c-view-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    min-height: 150px;
    white-space: pre-line;
    margin-bottom: 40px;
}
.c2c-action-bar {
    display: flex;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}
.c2c-btn {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.btn-list {
    background-color: #f1f3f5;
    color: #495057;
    flex: 1;
    max-width: 140px;
}
.btn-list:hover { background-color: #e9ecef; }
.btn-chat {
    background-color: #fee500;
    color: #111;
    flex: 2;
}
.btn-chat:hover { background-color: #f4dc00; }
.btn-apply {
    background-color: #2b70c9;
    color: #fff;
    flex: 2;
}
.btn-apply:hover { background-color: #1e5296; }

/* ============================================================
   모바일 반응형 (360px ~ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .auth-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .c2c-container {
        padding: 15px; /* 모바일에서 좌우 여백 확보 */
        min-height: auto;
    }
    .c2c-container.c2c-view-wrapper {
        padding: 0; /* 상세/구직상세 화면은 내부 컨테이너가 여백을 가지므로 예외 처리 */
    }
    .c2c-write-form {
        padding: 20px;
        margin-top: 0;
        border-radius: 12px;
        border: 1px solid #eee;
    }
    .btn-group-c2c {
        flex-direction: column;
        gap: 10px;
    }
    .btn-c2c-submit, .btn-c2c-cancel {
        width: 100%;
        padding: 15px;
    }
    
    .c2c-view-container {
        padding: 25px 20px;
        border-radius: 0;
        box-shadow: none;
    }
    .c2c-view-title {
        font-size: 22px;
    }
    .c2c-info-grid {
        padding: 20px;
        gap: 20px;
    }
    .c2c-info-content .value.price {
        font-size: 22px;
    }
    .c2c-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 20px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 100;
        margin: 0;
        border-top: 1px solid #ebebeb;
    }
    body {
        padding-bottom: 70px;
    }
    .btn-list {
        display: none; 
    }
}
@media (max-width: 480px) {
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .write-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    .mission-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .c2c-action-bar {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        gap: 8px;
    }
    .c2c-btn {
        padding: 12px 8px;
        font-size: 14px;
        letter-spacing: -0.5px;
    }
    .c2c-btn i {
        margin-right: 2px !important;
    }
}
