/**
 * AI Photo Contest - Styles
 */

/* 컨테이너 */
.aipc-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 섹션 */
.aipc-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 헤더 */
.aipc-header {
    text-align: center;
    padding: 30px 20px 20px;
}

.aipc-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.aipc-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 드롭존 */
.aipc-dropzone {
    margin: 0 20px 20px;
    border: 3px dashed #ddd;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.aipc-dropzone:hover,
.aipc-dropzone.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.aipc-upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.aipc-upload-text {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px;
    font-weight: 500;
}

.aipc-upload-hint {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* 미리보기 */
.aipc-preview-section {
    padding: 20px;
}

#aipc-preview-image {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
    background: #f5f5f5;
}

.aipc-preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 버튼 */
.aipc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
}

.aipc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.aipc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.aipc-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.aipc-btn-secondary:hover {
    background: #eee;
}

.aipc-btn-cta {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.aipc-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
    color: white;
}

/* 로딩 */
.aipc-loading-section {
    padding: 60px 20px;
    text-align: center;
}

.aipc-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.aipc-loading-content h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px;
}

.aipc-loading-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 결과 */
.aipc-result-section {
    padding: 0;
}

.aipc-result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.aipc-result-header h2 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.aipc-result-body {
    padding: 25px;
}

#aipc-result-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
    background: #f5f5f5;
    margin-bottom: 20px;
}

/* 점수 섹션 */
.aipc-score-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.aipc-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.aipc-score-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.aipc-score-label {
    font-size: 14px;
    opacity: 0.9;
}

.aipc-rank-badge {
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
}

.aipc-rank-badge.gold {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: white;
}

.aipc-rank-badge.silver {
    background: linear-gradient(135deg, #bdc3c7, #9ca3af);
    color: white;
}

.aipc-rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

/* 심사평 */
.aipc-comment-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.aipc-comment-box h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px;
}

#aipc-comment-text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* 포인트 박스 */
.aipc-points-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.aipc-points-box.rejected {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.aipc-points-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aipc-points-icon {
    font-size: 24px;
}

.aipc-points-text {
    color: white;
    font-size: 16px;
    font-weight: 700;
}

/* CTA 섹션 */
.aipc-cta-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 에러 */
.aipc-error-section {
    padding: 60px 20px;
    text-align: center;
}

.aipc-error-content {
    background: #fff5f5;
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #fed7d7;
}

.aipc-error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

#aipc-error-title {
    font-size: 18px;
    color: #c53030;
    margin: 0 0 10px;
}

#aipc-error-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

/* 반응형 */
@media (max-width: 480px) {
    .aipc-container {
        padding: 10px;
    }
    
    .aipc-header h2 {
        font-size: 20px;
    }
    
    .aipc-dropzone {
        padding: 30px 15px;
    }
    
    .aipc-preview-actions {
        flex-direction: column;
    }
    
    .aipc-score-circle {
        width: 80px;
        height: 80px;
    }
    
    .aipc-score-number {
        font-size: 28px;
    }
}
