@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&display=swap');
body { 
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.scroll-mt-28 { scroll-margin-top: 7rem; }
/* Hide scrollbar for horizontal scrolling */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
/* Enhanced text readability */
.text-enhanced { 
    letter-spacing: -0.01em;
    line-height: 1.6;
}
/* Prevent italic for Korean text - use alternatives instead */
* {
    font-style: normal !important;
}
/* Korean-friendly emphasis alternatives */
.korean-emphasis {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-weight: 700;
    border-left: 3px solid rgb(99, 102, 241);
}
.korean-highlight {
    background: linear-gradient(120deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-weight: 700;
    color: rgb(146, 64, 14);
}

/* Radial Graph Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1f2937;
    --text-sub: #4b5563;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --tooltip-bg: rgba(17, 24, 39, 0.95);
}

/* Animated Gradient Background for Radar Section */
.radar-section-wrapper {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    border-radius: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.radar-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 900px;
    position: relative;
    transition: transform 0.3s ease;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-btn:hover, .category-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.radar-header {
    text-align: center;
    margin-bottom: 40px;
}

.kicker {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.radar-h1 {
    color: #111827;
    font-size: 2.5rem;
    margin: 0 0 16px 0;
    font-weight: 800;
    line-height: 1.3;
    background: -webkit-linear-gradient(45deg, #1e40af, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: keep-all;
}

.radar-subtitle {
    color: var(--text-sub);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
    word-break: keep-all;
    opacity: 0.9;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#radarCanvas {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#radarTooltip {
    position: absolute;
    opacity: 0;
    background: var(--tooltip-bg);
    color: white;
    padding: 32px;
    border-radius: 16px;
    pointer-events: none;
    font-size: 0.9375rem;
    width: 360px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    backdrop-filter: blur(8px);
    transform: translate(-50%, -50%) scale(0.9);
}

#radarTooltip.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#radarTooltip h3 {
    margin: 0 0 20px 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #60a5fa;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 14px;
    letter-spacing: -0.02em;
}

#radarTooltip .stat-row {
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9375rem;
}

#radarTooltip .desc-item {
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: left;
    font-size: 0.9375rem;
    color: #e5e7eb;
}

#radarTooltip .desc-item:last-child {
    margin-bottom: 0;
}

#radarTooltip .label {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.radar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 10px;
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.current { background-color: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }
.dot.target { background-color: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }

@media (max-width: 600px) {
    .radar-section-wrapper { padding: 15px; }
    .radar-container { padding: 20px; }
    .radar-h1 { font-size: 2rem; }
    .radar-legend { gap: 10px; }
    .legend-item { font-size: 0.8rem; padding: 6px 12px; }
    .category-btn { font-size: 0.8rem; padding: 6px 12px; }
    #radarTooltip { width: 85%; padding: 20px; }
}

