/* 폰트 설정 */
body {
    font-family: 'Noto Sans KR', sans-serif;
}

/* 탭 스타일 */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* 별점 평가 스타일 */
.star-rating {
    display: inline-flex;
    font-size: 1.5rem;
}

.star {
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-right: 0.25rem;
}

.star:hover,
.star.hovered {
    color: #fbbf24;
}

.star.selected {
    color: #f59e0b;
}

/* 아이디어 카드 스타일 */
.idea-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.idea-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* 평가 결과 카드 */
.result-card {
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
}

/* 순위 뱃지 */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.125rem;
}

.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.rank-2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: white;
    box-shadow: 0 4px 6px rgba(148, 163, 184, 0.3);
}

.rank-3 {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.3);
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* 평가 진행 상태 바 */
.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

/* 팀 색상 */
.team-color-1 {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border-left: 4px solid #ec4899;
}

.team-color-2 {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid #3b82f6;
}

.team-color-3 {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-left: 4px solid #10b981;
}

.team-color-4 {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border-left: 4px solid #f97316;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .tab-btn {
        flex: 1;
        text-align: center;
        font-size: 0.875rem;
    }
    
    .tab-btn i {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .star-rating {
        font-size: 1.25rem;
    }
}

/* 툴팁 스타일 */
.tooltip {
    position: relative;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 0.5rem;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
}

/* 로딩 스피너 */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* 알림 메시지 */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
}