/* 기본 리셋 및 폰트 설정 */
* {
    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-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 스타일 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 네비게이션 */
.nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: 600;
}

/* 메인 콘텐츠 */
.main-content {
    margin-bottom: 3rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.welcome-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome-section p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 기능 카드 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* CTA 섹션 */
.cta-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 버튼 스타일 */
.btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    padding: 12px 32px !important;
    margin: 8px !important;
    border: 2px solid #ccc !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    min-width: 150px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 999 !important;
    overflow: visible !important;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78,205,196,0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.button-group {
    display: flex !important;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 60px;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .button-group .btn {
        width: 200px;
    }
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 평가 단계 */
.evaluation-steps {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.evaluation-steps h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 평가 폼 */
.evaluation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.evaluation-header h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.evaluation-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.evaluation-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.script-tips {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #4ecdc4;
}

.script-tips h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.script-tips ul {
    list-style: none;
    padding-left: 0;
}

.script-tips li {
    color: #7f8c8d;
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.script-tips li:before {
    content: "•";
    color: #4ecdc4;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 평가 기준 */
.evaluation-criteria {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.evaluation-criteria h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.criteria-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.criteria-category h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.criteria-category ul {
    list-style: none;
    padding-left: 0;
}

.criteria-category li {
    color: #7f8c8d;
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
}

.criteria-category li:before {
    content: "✓";
    color: #4ecdc4;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.scoring-info {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.scoring-info p {
    color: #2c3e50;
    font-weight: 500;
}

/* 가중치 정보 스타일 */
.weight-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 2px solid #e74c3c;
}

.weight-info h3 {
    color: #e74c3c;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.weight-category {
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    border: 1px solid #fecaca;
}

.weight-category h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weight-value {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.weight-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.weight-footer {
    background: #fef2f2;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.weight-footer p {
    margin: 0.5rem 0;
    color: #2c3e50;
}

.weight-footer small {
    color: #666;
    font-size: 0.85rem;
}

/* 결과 페이지 스타일 */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.result-header h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.result-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.result-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.result-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 기본 정보 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.info-item span {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 총점 요약 */
.total-score-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.total-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.score-label {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.score-max {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.score-percentage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.percentage-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.percentage-label {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.score-grade {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.grade {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
}

.grade-label {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* 카테고리 결과 */
.category-results {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.category-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.criteria-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* 세부 항목 결과 (20개 항목용) */
.criteria-result-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ecf0f1;
    transition: all 0.3s ease;
}

.criteria-result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.detailed-item {
    border-left-color: #667eea;
}

.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.criteria-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.criteria-score {
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.score-perfect {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.score-partial {
    background: #fff3cd;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.score-none {
    background: #f8d7da;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.criteria-feedback {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.criteria-example {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #4ecdc4;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.criteria-example strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.3rem;
}

/* 개선점 */
.improvement-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #f39c12;
}

/* 차트 */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-item {
    text-align: center;
}

.chart-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* 액션 버튼 */
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #000;
}

/* 로딩 스피너 */
.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.loading-detail {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 공유 옵션 */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-option {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.share-option label {
    min-width: 100px;
    font-weight: 600;
    color: #2c3e50;
}

.share-option input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .total-score-container {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 평가 옵션 섹션 숨기기 */
.evaluation-options-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
