/**
 * UGC 신고/차단 시스템 - 공통 CSS
 * 앱스토어 UGC 가이드라인 대응
 */

/* 숨김 처리 */
.ugc-hidden {
    display: none !important;
}

/* 모달 오버레이 */
.ugc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* 모달 */
.ugc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ugc-modal-sm {
    max-width: 320px;
}

/* 모달 헤더 */
.ugc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.ugc-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.ugc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* 모달 본문 */
.ugc-modal-body {
    padding: 20px;
}

.ugc-modal-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}

.ugc-modal-notice {
    margin: 8px 0 0;
    font-size: 13px;
    color: #999;
}

/* 신고 사유 목록 */
.ugc-reason-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ugc-reason-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.ugc-reason-item:hover {
    background: #f0f0f0;
}

.ugc-reason-item input[type="radio"] {
    margin-right: 10px;
    accent-color: #ff6b9d;
}

.ugc-reason-item span {
    font-size: 14px;
    color: #333;
}

/* 상세 입력 */
.ugc-reason-detail-wrap {
    margin-top: 12px;
}

.ugc-reason-detail-wrap textarea {
    width: 100%;
    height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

.ugc-reason-detail-wrap textarea:focus {
    outline: none;
    border-color: #ff6b9d;
}

/* 모달 푸터 */
.ugc-modal-footer {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

/* 버튼 */
.ugc-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ugc-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.ugc-btn-cancel:hover {
    background: #e5e5e5;
}

.ugc-btn-submit {
    background: #ff6b9d;
    color: #fff;
}

.ugc-btn-submit:hover {
    background: #e55a8a;
}

.ugc-btn-danger {
    background: #dc3545;
    color: #fff;
}

.ugc-btn-danger:hover {
    background: #c82333;
}

/* 신고/차단 버튼 (게시판 스킨용) */
.btn-report-content,
.btn-block-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: none;
    border: none;
    font-size: 13px;
    color: #999;
    cursor: pointer;
}

.btn-report-content:hover,
.btn-block-user:hover {
    color: #dc3545;
}

/* 더보기 메뉴 스타일 */
.ugc-more-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow: hidden;
    display: none;
}

.ugc-more-menu.active {
    display: block;
}

.ugc-more-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.ugc-more-menu-item:hover {
    background: #f8f8f8;
}

.ugc-more-menu-item.danger {
    color: #dc3545;
}

/* 차단 관리 페이지 */
.ugc-block-list {
    padding: 16px;
}

.ugc-block-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.ugc-block-item:last-child {
    border-bottom: none;
}

.ugc-block-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ugc-block-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
}

.ugc-block-nick {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.ugc-block-date {
    font-size: 12px;
    color: #999;
}

.ugc-btn-unblock {
    padding: 8px 14px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.ugc-btn-unblock:hover {
    background: #e5e5e5;
}

/* 빈 목록 */
.ugc-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
