/* ===== RESEARCH INSTITUTE INDEX PAGE STYLES ===== */

/* Hero */
.research-hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}

.research-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(147, 52, 172, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.research-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.research-hero h1 .gradient {
  background: linear-gradient(135deg, #9334e6, #4285f4, #34a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.research-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Category Cards */
.research-categories {
  padding: 0 0 48px;
}

.research-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .research-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .research-categories-grid {
    grid-template-columns: 1fr;
  }
}

.research-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.research-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.research-category-card[data-type="R-TECH"]:hover { border-color: var(--accent-purple); }
.research-category-card[data-type="R-BENCH"]:hover { border-color: var(--accent-blue); }
.research-category-card[data-type="R-INDUSTRY"]:hover { border-color: var(--accent-green); }
.research-category-card[data-type="R-CASE"]:hover { border-color: var(--accent-orange); }

.research-category-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.research-category-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.research-category-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.research-category-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Filter */
.research-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.research-filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.research-filter-btn:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.research-filter-btn.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

/* Article Cards */
.research-section {
  padding: 0 0 80px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.research-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-decoration: none;
  transition: var(--transition-normal);
  height: 100%;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.research-card[data-type="R-TECH"]:hover { border-color: var(--accent-purple); }
.research-card[data-type="R-BENCH"]:hover { border-color: var(--accent-blue); }
.research-card[data-type="R-INDUSTRY"]:hover { border-color: var(--accent-green); }
.research-card[data-type="R-CASE"]:hover { border-color: var(--accent-orange); }

.research-card-featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 32px;
}

@media (max-width: 1024px) {
  .research-card-featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .research-card-featured {
    grid-column: span 1;
    flex-direction: column;
  }
}

.research-featured-visual {
  font-size: 100px;
  flex-shrink: 0;
}

.research-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.research-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-tech { background: rgba(147, 52, 172, 0.12); color: var(--accent-purple); }
.badge-bench { background: rgba(66, 133, 244, 0.12); color: var(--accent-blue); }
.badge-industry { background: rgba(52, 168, 83, 0.12); color: var(--accent-green); }
.badge-case { background: rgba(251, 188, 4, 0.12); color: var(--accent-orange); }

.research-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.research-featured-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.research-card-abstract {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex-grow: 1;
}

.research-card-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.research-product-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: 100px;
  text-decoration: none;
}

.research-product-tag:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.research-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.research-read {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-purple);
}

.research-card:hover .research-read {
  color: var(--accent-red);
}

.research-difficulty {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* Empty State */
.research-empty {
  text-align: center;
  padding: 80px 20px;
}

.research-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.research-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.research-empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== RESEARCH ARTICLE PAGE STYLES ===== */

/* Breadcrumb */
.research-breadcrumb {
  padding: 80px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.research-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.research-breadcrumb a:hover {
  color: var(--accent-purple);
}

/* Header */
.research-header {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--border-color);
}

.research-header .container {
  max-width: 800px;
}

.research-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.research-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.research-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.research-abstract {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.research-abstract h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.research-abstract p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.research-products {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.research-products a {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
}

.research-products a:hover {
  text-decoration: underline;
}

/* TOC */
.research-toc {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.research-toc .container {
  max-width: 800px;
}

.research-toc h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.research-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}

.research-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}

.research-toc li::before {
  content: counter(toc) ".";
  font-weight: 600;
  color: var(--accent-purple);
  margin-right: 8px;
}

.research-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

.research-toc a:hover {
  color: var(--accent-purple);
}

/* Body */
.research-body {
  padding: 40px 0 60px;
}

.research-body .container {
  max-width: 800px;
}

.research-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 8px;
  color: var(--text-primary);
}

.research-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.research-body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.research-body ul,
.research-body ol {
  margin: 0 0 20px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.research-body li {
  margin-bottom: 8px;
}

.research-body blockquote {
  border-left: 3px solid var(--accent-purple);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--bg-tertiary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.research-body strong {
  color: var(--text-primary);
}

.research-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.research-body th {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.research-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.research-body tr:hover td {
  background: var(--bg-hover);
}

.research-body .highlight-box {
  background: linear-gradient(135deg, rgba(147, 52, 172, 0.05), rgba(66, 133, 244, 0.05));
  border: 1px solid rgba(147, 52, 172, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.research-body .highlight-box-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-purple);
}

/* Findings */
.research-findings {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.research-findings .container {
  max-width: 800px;
}

.research-findings h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.research-findings ul {
  list-style: none;
  padding: 0;
}

.research-findings li {
  padding: 12px 0 12px 28px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.research-findings li::before {
  content: '💡';
  position: absolute;
  left: 0;
}

/* References */
.research-references {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

.research-references .container {
  max-width: 800px;
}

.research-references h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.research-references ol {
  margin: 0 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.research-references a {
  color: var(--accent-blue);
  text-decoration: none;
}

.research-references a:hover {
  text-decoration: underline;
}

/* Related */
.research-related {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.research-related .container {
  max-width: 800px;
}

.research-related h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.research-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .research-related-grid {
    grid-template-columns: 1fr;
  }
}

.research-related-card {
  display: block;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-fast);
}

.research-related-card:hover {
  background: var(--bg-hover);
}

.research-related-type {
  font-size: 12px;
  color: var(--accent-purple);
  font-weight: 600;
}

.research-related-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 6px;
}

/* Back Nav */
.research-back {
  padding: 24px 0 60px;
}

.research-back .container {
  max-width: 800px;
}

.research-back a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.research-back a:hover {
  color: var(--accent-purple);
}

/* Home Section - Research Preview */
.research-home-section {
  padding: 0 0 80px;
}

.research-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .research-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .research-home-grid {
    grid-template-columns: 1fr;
  }
}

.research-home-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-decoration: none;
  transition: var(--transition-normal);
  height: 100%;
}

.research-home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.research-home-card[data-type="R-TECH"]:hover { border-color: var(--accent-purple); }
.research-home-card[data-type="R-BENCH"]:hover { border-color: var(--accent-blue); }
.research-home-card[data-type="R-INDUSTRY"]:hover { border-color: var(--accent-green); }
.research-home-card[data-type="R-CASE"]:hover { border-color: var(--accent-orange); }

.research-home-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.research-home-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.research-home-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .research-body p { font-size: 15px; }
  .research-body h2 { font-size: 20px; }
}
