/* 기본 리셋 및 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 컨테이너 스타일 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 헤더 스타일 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* 메인 콘텐츠 스타일 */
.main-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* 입력 섹션 스타일 */
.input-section {
    margin-bottom: 40px;
}

/* 분석 방법 선택 스타일 */
.analysis-method-selector {
    margin-bottom: 30px;
}

.method-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.method-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.method-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.method-tab:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.method-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tab-icon {
    font-size: 1.1rem;
}

/* 분석 섹션 스타일 */
.analysis-section {
    display: none;
    margin-bottom: 30px;
}

.analysis-section.active {
    display: block;
}

/* 이미지 업로드 스타일 */
.image-upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.image-upload-area {
    border: 2px dashed #667eea;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.image-upload-area:hover {
    border-color: #764ba2;
    background: #f0f0ff;
}

.image-upload-area.dragover {
    border-color: #28a745;
    background: #f0fff0;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #667eea;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.9rem;
    color: #666;
}

.uploaded-image-preview {
    position: relative;
    max-width: 100%;
    margin-top: 15px;
    text-align: center;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.remove-image-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* 관점 선택 스타일 */
.perspective-selector {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.perspective-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.perspective-options {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.perspective-option {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.perspective-option input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.perspective-option:hover .option-content {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.perspective-option input[type="radio"]:checked + .option-content {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.option-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.option-text {
    flex: 1;
}

.option-text strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4px;
}

.option-text small {
    display: block;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.url-input-container {
    max-width: 600px;
    margin: 0 auto;
}

.input-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.url-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.analyze-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.input-hints {
    margin-top: 15px;
}

.hint-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* 결과 섹션 스타일 */
.results-section {
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.results-title {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.new-analysis-btn {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-analysis-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.results-content {
    display: grid;
    gap: 30px;
}

/* 섹션 공통 스타일 */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.info-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.feedback-item:hover {
    transform: translateX(5px);
}

.feedback-item.strength {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.feedback-item.weakness {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffe8e8 100%);
}

.feedback-item.suggestion {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
}

.feedback-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.feedback-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 점수 표시 스타일 */
.score-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.score-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 로딩 섹션 스타일 */
.loading-section {
    text-align: center;
    padding: 60px 20px;
}

.loading-content {
    max-width: 400px;
    margin: 0 auto;
}

.loading-spinner-large {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.loading-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.loading-description {
    color: #666;
    font-size: 1rem;
}

/* 푸터 스타일 */
.footer {
    text-align: center;
    padding: 20px 0;
}

.footer-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .analyze-btn {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    /* 모바일에서 새로운 요소들 */
    .method-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .method-tab {
        width: 100%;
        justify-content: center;
    }
    
    .perspective-options {
        gap: 10px;
    }
    
    .option-content {
        padding: 15px;
        gap: 12px;
    }
    
    .option-icon {
        font-size: 1.3rem;
        min-width: 35px;
    }
    
    .image-upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .url-input {
        padding: 12px 15px;
    }
    
    .analyze-btn {
        padding: 12px 20px;
    }
} 