@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* CSS Variables for Themes */
:root {
  /* Dark Mode (Default) Variables */
  --bg-base: #080710;
  --bg-gradient: linear-gradient(135deg, #0f0c20 0%, #06050b 100%);
  --bg-panel: rgba(18, 16, 35, 0.65);
  --bg-card: rgba(26, 24, 48, 0.45);
  --bg-card-hover: rgba(35, 32, 64, 0.65);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --accent-light: #a78bfa;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(16px);
  --font-title: 'Outfit', 'Noto Sans KR', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* Light Mode Variables */
  --bg-base: #f9fafb;
  --bg-gradient: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  --bg-panel: rgba(255, 255, 255, 0.75);
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent: #6d28d9;
  --accent-glow: rgba(109, 40, 217, 0.2);
  --accent-light: #7c3aed;
  --success: #059669;
  --success-glow: rgba(5, 150, 105, 0.15);
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-light), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-button {
  border: 0;
  background: transparent;
  font: inherit;
}

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

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-btn:hover, .nav-btn.active {
  color: var(--text-primary);
}

.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent);
}

.theme-toggle-btn {
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}

.theme-toggle-btn:hover {
  background: var(--border-hover);
  transform: rotate(15deg);
}

/* App Container Layout */
main {
  max-width: 1200px;
  margin: 6.5rem auto 4rem auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 320px;
  display: flex;
  align-items: center;
  background: #000;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: var(--transition);
}

.hero:hover .hero-img {
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 3rem;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px var(--accent-glow);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  color: #fff;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Tab Content Panels */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Filters & Search Dashboard Bar */
.dashboard-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  background: rgba(0, 0, 0, 0.3);
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sub-filter-row {
  width: 100%;
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sub-filter-row span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 0.5rem;
  font-weight: 600;
}

.tag-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 500;
}

.tag-filter-btn:hover, .tag-filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* AI Trend Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.trend-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trend-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ec4899);
  opacity: 0;
  transition: var(--transition);
}

.trend-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25);
}

.clickable-card {
  cursor: pointer;
}

.trend-card:hover::before {
  opacity: 1;
}

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

.card-category {
  background: var(--accent-glow);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.card-region {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
}

.bookmark-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.bookmark-btn:hover, .bookmark-btn.active {
  color: #fbbf24;
  transform: scale(1.1);
}

.trend-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.trend-card p.summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
}

.trend-bullets li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.trend-bullets li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.card-tag {
  background: var(--border);
  color: var(--text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  background: var(--bg-panel);
  border-radius: 16px;
  border: 1px dashed var(--border);
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.section-title-wrapper {
  margin-bottom: 1.5rem;
}

.section-title-wrapper h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title-wrapper h2 i {
  color: var(--accent-light);
}

.section-title-wrapper p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.section-divider {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.job-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Blog Section List Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.blog-card-img-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
  opacity: 0.9;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-card p.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  margin-top: auto;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Dedicated Blog Post Reader View */
.blog-reader {
  display: none;
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

.blog-reader.active-reader {
  display: block;
}

.reader-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.back-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--accent-light);
  transform: translateX(-4px);
}

.reader-category {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.reader-header h1 {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.reader-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reader-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reader-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  background: #000;
  margin-bottom: 2.5rem;
}

.reader-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.reader-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.reader-body p {
  margin-bottom: 1.8rem;
}

.reader-body .introduction {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 2rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2rem;
}

.reader-body h3, .reader-body h4 {
  font-family: var(--font-title);
  color: var(--text-primary);
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
}

.reader-body h3 {
  font-size: 1.6rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.reader-body h4 {
  font-size: 1.25rem;
}

.reader-body ul, .reader-body ol {
  margin-bottom: 1.8rem;
  padding-left: 1.5rem;
}

.reader-body li {
  margin-bottom: 0.5rem;
}

/* Quote/Highlight box in reader */
.reader-body blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  color: var(--text-primary);
  font-style: italic;
}

/* Custom code snippets inside blog */
code {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #ff79c6;
}

pre {
  background: #000;
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 1.8rem;
}

pre code {
  color: #f8f8f2;
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--accent-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 3rem 0;
  margin-top: 6rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .blog-reader {
    padding: 2rem;
  }
  
  .reader-header h1 {
    font-size: 1.8rem;
  }
  
  .reader-hero-img-wrapper {
    height: 280px;
  }
  
  .hero {
    height: auto;
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .dashboard-control {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-tags {
    justify-content: center;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Trend Summary Panel and Real-time News styling
   ========================================================================== */
.summary-panel {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.summary-header h2 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.summary-header h2 i {
  color: var(--accent-light);
  text-shadow: 0 0 10px var(--accent-glow);
}

.summary-tabs {
  display: flex;
  gap: 0.5rem;
}

.summary-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.data-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.42);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.data-source-pill.live {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(22, 163, 74, 0.14);
}

.summary-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.summary-tab-btn:hover, .summary-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.summary-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.summary-body h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--accent-light);
}

.summary-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.summary-body li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.summary-body li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

.summary-body p {
  margin-bottom: 1rem;
}

.summary-body strong {
  color: var(--accent-light);
}

.report-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.chart-panel {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.chart-panel h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-panel h3 i {
  color: var(--accent-light);
}

.bar-chart {
  display: grid;
  gap: 0.65rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(100px, 1.5fr) 32px;
  gap: 0.6rem;
  align-items: center;
  min-height: 24px;
  font-size: 0.82rem;
}

.bar-label {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ec4899);
  border-radius: inherit;
}

.source-fill {
  background: linear-gradient(90deg, var(--success), #38bdf8);
}

.bar-count {
  color: var(--text-muted);
  font-weight: 700;
  text-align: right;
}

/* Real-time News Specific Styling */
.realtime-tag-TC {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #f472b6 !important;
  border: 1px solid rgba(236, 72, 153, 0.2) !important;
}

.realtime-tag-HN {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #fb923c !important;
  border: 1px solid rgba(249, 115, 22, 0.2) !important;
}

.realtime-tag-Toss {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.realtime-tag-Kakao {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #fde047 !important;
  border: 1px solid rgba(234, 179, 8, 0.2) !important;
}

.news-link-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  text-decoration: none;
}

.news-link-btn:hover {
  background: var(--border-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.inline-detail-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.inline-detail-btn:hover {
  color: var(--text-primary);
  background: var(--border-hover);
}

.trend-reader {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow);
  animation: fadeIn 0.4s ease;
}

.trend-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.trend-detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.source-link-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.source-link-list li {
  display: grid;
  gap: 0.2rem;
}

.source-link-list a {
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.source-link-list a:hover {
  text-decoration: underline;
}

.source-link-list span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.news-detail-view {
  animation: fadeIn 0.4s ease;
}

.news-detail {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.news-detail-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.news-detail-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.news-detail h1 {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.16;
  margin-bottom: 1rem;
}

.news-detail-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 850px;
}

.news-detail-actions {
  margin-top: 1.5rem;
}

.primary-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: var(--transition);
}

.primary-link-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 0 15px var(--accent-glow);
}

.news-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
}

.insight-panel,
.source-panel,
.related-news-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.insight-panel h2,
.source-panel h2,
.related-news-section h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-panel h2 i,
.source-panel h2 i,
.related-news-section h2 i {
  color: var(--accent-light);
}

.insight-panel ul {
  list-style: none;
}

.insight-panel li {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
}

.insight-panel li::before {
  content: '•';
  color: var(--accent-light);
  position: absolute;
  left: 0;
}

.source-panel dl {
  display: grid;
  gap: 1rem;
}

.source-panel dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.source-panel dd {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.source-panel a {
  color: var(--accent-light);
}

.related-news-section {
  margin-top: 1.5rem;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.related-news-card {
  text-align: left;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.related-news-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.related-news-card span {
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.related-news-card strong {
  display: block;
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ==========================================================================
   Job specific guidebook and filter styles
   ========================================================================== */
.job-sub-btn {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.job-sub-btn:hover, .job-sub-btn.active {
  background: var(--accent-glow);
  color: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
}

.job-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.job-tab-btn:hover, .job-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.job-guide-card {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeIn 0.4s ease;
}

.job-guide-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.job-guide-header i {
  font-size: 1.8rem;
}

.job-guide-header h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
}

.job-guide-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .report-charts,
  .news-detail-grid,
  .trend-detail-grid,
  .trend-detail-sections {
    grid-template-columns: 1fr;
  }

  .news-detail,
  .trend-reader {
    padding: 1.5rem;
  }

  .bar-row {
    grid-template-columns: minmax(72px, 0.9fr) minmax(80px, 1.3fr) 28px;
  }

  .job-guide-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.job-guide-section-block {
  margin-bottom: 1.5rem;
}

.job-guide-section-block h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-guide-section-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.job-guide-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.job-guide-tool-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.job-guide-tool-badge:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.job-guide-roadmap {
  list-style: none;
  padding-left: 0;
}

.job-guide-roadmap li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.3rem;
}

.job-guide-roadmap li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}
