/**
 * KAICE Theme - 게스트 미디어 업로드 모달 스타일
 * 
 * @file guest-media-modal.css
 * @version 1.0.0
 * @description 게스트 이미지 업로드 모달 UI 스타일
 */

/* ========================================
   모달 오버레이
   ======================================== */
.guest-upload-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-modal-bg-light);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   모달 컨테이너
   ======================================== */
.guest-upload-container {
    background: white;
    border-radius: var(--theme-card-radius);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--theme-box-shadow);
}

/* ========================================
   모달 헤더
   ======================================== */
.guest-upload-container .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--theme-item-bg);
    padding-bottom: 15px;
}

.guest-upload-container .modal-header h3 {
    margin: 0;
    color: var(--theme-text-color);
    font-size: var(--theme-font-size-heading);
    font-family: var(--theme-font-bold);
}

.guest-upload-container .modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--theme-hint-text-color);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.3s ease;
}

.guest-upload-container .modal-close:hover {
    color: var(--theme-text-color);
}

/* ========================================
   업로드 안내 정보
   ======================================== */
.guest-upload-container .upload-info {
    background: var(--theme-info-bg);
    padding: 15px;
    border-radius: var(--theme-info-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--theme-main-color);
}

.guest-upload-container .upload-info p {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: var(--theme-text-color);
    font-family: var(--theme-font-bold);
}

.guest-upload-container .upload-info ul {
    margin: 0;
    padding-left: 20px;
    color: var(--theme-hint-text-color);
    line-height: 1.8;
    font-family: var(--theme-font-normal);
}

/* ========================================
   파일 입력 영역
   ======================================== */
.guest-upload-container .file-input-wrapper {
    border: 2px dashed var(--theme-item-border);
    border-radius: var(--theme-input-radius);
    padding: 40px;
    text-align: center;
    background: var(--theme-item-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.guest-upload-container .file-input-wrapper:hover,
.guest-upload-container .file-input-wrapper.dragover {
    border-color: var(--theme-main-color);
    background: var(--theme-info-bg);
}

.guest-upload-container .file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.guest-upload-container .file-input-wrapper p {
    margin: 0;
    color: var(--theme-hint-text-color);
    font-size: var(--theme-font-size-body);
    pointer-events: none;
    font-family: var(--theme-font-normal);
}

/* ========================================
   업로드 진행 상태
   ======================================== */
.guest-upload-container #upload-progress {
    display: none;
    margin: 20px 0;
}

.guest-upload-container .progress-text {
    text-align: center;
    margin-bottom: 8px;
    color: var(--theme-main-color);
    font-weight: bold;
    font-family: var(--theme-font-bold);
}

.guest-upload-container .progress-bar {
    background: var(--theme-card-border);
    border-radius: var(--theme-input-radius);
    height: 24px;
    overflow: hidden;
}

.guest-upload-container .progress-fill {
    background: linear-gradient(90deg, var(--theme-main-color), var(--theme-button-hover-bg));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--theme-font-size-caption);
    font-weight: bold;
    font-family: var(--theme-font-bold);
}

/* ========================================
   모달 액션 버튼
   ======================================== */
.guest-upload-container .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* ========================================
   업로드 결과 메시지
   ======================================== */
.guest-upload-container #upload-results {
    margin-top: 20px;
}

.guest-upload-container #upload-results > div {
    padding: 15px;
    border-radius: var(--theme-input-radius);
    font-family: var(--theme-font-normal);
}

/* 성공 메시지 */
.guest-upload-container #upload-results .success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* 에러 메시지 */
.guest-upload-container #upload-results .error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ========================================
   반응형 디자인
   ======================================== */
@media (max-width: 768px) {
    .guest-upload-container {
        padding: 20px;
        width: 95%;
    }
    
    .guest-upload-container .modal-header h3 {
        font-size: var(--theme-font-size-title);
    }
    
    .guest-upload-container .file-input-wrapper {
        padding: 30px 20px;
    }
    
    .guest-upload-container .modal-actions {
        flex-direction: column;
    }
    
    .guest-upload-container .modal-actions button {
        width: 100%;
    }
}

/* ========================================
   접근성 개선
   ======================================== */
.guest-upload-container .modal-close:focus,
.guest-upload-container .modal-actions button:focus {
    outline: 2px solid var(--theme-main-color);
    outline-offset: 2px;
}

.guest-upload-container input[type="file"]:focus + p {
    outline: 2px solid var(--theme-main-color);
    outline-offset: 2px;
}
