

/* ===========================
   로딩 표시
   =========================== */

.loading-indicator {
    text-align: center;
    padding: 40px;
    margin-top: 30px;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* ===========================
   결과 섹션
   =========================== */

.result-section {
    margin-top: 40px;
}

.result-card {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    padding: 20px 30px;
    color: white;
}

.result-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.success-card .result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.failure-card .result-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.error-card .result-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.result-body {
    padding: 30px;
    background: white;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 20px;
    margin: 10px -10px;
    border-radius: 8px;
    border: none;
}

.label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

.value {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.rank-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
    margin: 20px 0;
}

.evaluation-box {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.evaluation-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evaluation-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.failure-message,
.error-message {
    text-align: center;
    padding: 30px;
    font-size: 1.2rem;
    color: #666;
}

.failure-message p,
.error-message p {
    margin: 10px 0;
}

/* ===========================
   안내 섹션
   =========================== */

.info-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.info-section h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #fff;
}

.info-section ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

.info-section ul ul {
    margin-top: 10px;
    padding-left: 20px;
}

.info-section strong {
    color: #fff;
}

.info-section code {
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
}

/* ===========================
   푸터
   =========================== */

.footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9rem;
}

/* ===========================
   반응형 디자인
   =========================== */

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 20px;
    }

    .page-title h2 {
        font-size: 1.5rem;
    }

    .search-box {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        font-size: 1rem;
    }

    .result-body {
        padding: 20px;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rank-value {
        font-size: 1.5rem;
    }

    .info-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .page-title h2 {
        font-size: 1.3rem;
    }

    .input-field {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}