/* ==========================================================================
   Imports
   ========================================================================== */

@import './highlight-styles.css';
@import './markdown-styles.css';

/* ==========================================================================
   Variables and Reset
   ========================================================================== */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-muted: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-radius: 8px;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Breakpoints */
  --mobile-max: 767px;
  --tablet-min: 768px;
  --tablet-max: 1023px;
  --desktop-min: 1024px;
}

/* ==========================================================================
   Base Layout
   ========================================================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   Database Category Styles
   ========================================================================== */

.database-category-section {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.category-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.database-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.database-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.database-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.database-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.database-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.database-name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.database-name a:hover {
  color: var(--primary-color);
}

.database-type {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.database-actions {
  margin-top: auto;
}

.playground-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: calc(var(--border-radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.playground-link:hover {
  background: var(--primary-hover);
}

/* Mobile: <= 767px */
@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .database-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-title {
    font-size: 1.25rem;
  }
  
  .database-card {
    padding: 1rem;
  }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 768px;
    padding: 0 2rem;
  }
}

/* Desktop: >= 1024px */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
}

/* ==========================================================================
   Language Selection Page
   ========================================================================== */

.language-selection {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f172a;
}

.language-selection .container {
  text-align: center;
  padding: 2rem;
}

.language-selection h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.language-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #64748b;
  font-weight: 500;
}

.language-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.language-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.language-button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .language-selection h1 {
    font-size: 1.5rem;
  }
  
  .language-subtitle {
    font-size: 1rem;
  }
  
  .language-options {
    flex-direction: column;
    align-items: center;
  }
  
  .language-button {
    width: 100%;
    max-width: 300px;
  }
}

/* ==========================================================================
   Page Header and Navigation
   ========================================================================== */

.page-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

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

.page-header h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.site-title {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.site-title:hover {
  color: var(--primary-color);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.language-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.language-link:hover {
  color: var(--primary-color);
  background: var(--bg-muted);
}

.language-link.active {
  color: var(--primary-color);
  font-weight: 600;
  background: var(--bg-secondary);
}

.language-separator {
  color: var(--text-muted);
  font-weight: 300;
  user-select: none;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  font-weight: 500;
}

.main-navigation a:hover {
  background: var(--bg-muted);
  color: var(--primary-color);
}

/* Mobile navigation */
@media (max-width: 767px) {
  .header-top {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  
  .main-navigation ul {
    justify-content: center;
    gap: 0.25rem;
  }
  
  .main-navigation a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .page-header h1 {
    font-size: 1.25rem;
    text-align: center;
  }
  
  .site-title {
    font-size: 1.25rem;
  }
  
  .language-switcher {
    font-size: 0.85rem;
  }
}

/* Tablet navigation */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-navigation ul {
    justify-content: center;
  }
}

/* ==========================================================================
   Home Page
   ========================================================================== */

.home-page {
  min-height: 100vh;
}

.main-content {
  padding: 1rem 0;
}

.hero {
  padding: 3rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
}

.features {
  padding: 3rem 0;
}

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.feature-card h3 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  display: inline-block;
  transition: all 0.2s ease;
}

.feature-card a:hover {
  background: var(--primary-color);
  color: white;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .hero {
    padding: 2rem 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .features {
    padding: 2rem 0;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Catalog Page
   ========================================================================== */

.catalog-page .feature-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-page .feature-card {
  width: 100%;
  padding: 1.5rem;
}

.catalog-page .feature-card h3 a {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.catalog-page .feature-card h3 a:hover {
  color: var(--primary-color);
}

/* Mobile adjustments for catalog page */
@media (max-width: 767px) {
  .catalog-page .feature-grid {
    gap: 0.75rem;
  }
  
  .catalog-page .feature-card {
    padding: 1rem;
  }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  margin: 1rem 0 0 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.breadcrumbs-link:hover {
  color: var(--primary-color);
  background: var(--bg-muted);
}

.breadcrumbs-current {
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

.breadcrumbs-separator {
  color: var(--text-muted);
  font-weight: 400;
  user-select: none;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .breadcrumbs {
    margin: 0.75rem 0 0 0;
    padding: 0.5rem 0;
  }
  
  .breadcrumbs-list {
    font-size: 0.8rem;
    gap: 0.25rem;
  }
  
  .breadcrumbs-link {
    padding: 0.2rem 0.4rem;
  }
  
  .breadcrumbs-current {
    padding: 0.2rem 0.4rem;
  }
}

/* ==========================================================================
   Back Link
   ========================================================================== */

.back-link {
  padding: 1rem 0;
}

.back-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-link-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ==========================================================================
   Languages Table
   ========================================================================== */

.languages-table-section {
  margin: 2rem 0;
}

.table-container {
  overflow-x: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.languages-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.languages-table th,
.languages-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.languages-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.languages-table tbody tr:hover {
  background: var(--bg-muted);
}

.languages-table tbody tr:last-child td {
  border-bottom: none;
}

/* Specific column styles */
.languages-table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  width: 60px;
}

.languages-table td:nth-child(2) a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.languages-table td:nth-child(2) a:hover {
  text-decoration: underline;
}

.description-cell {
  max-width: 250px;
  line-height: 1.5;
}

.trend-cell {
  max-width: 200px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.languages-table td:nth-child(5) a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
}

.languages-table td:nth-child(5) a:hover {
  text-decoration: underline;
}

/* Ranking columns styling */
.languages-table td:nth-child(n+6) {
  text-align: center;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 60px;
}

/* Mobile responsive table */
@media (max-width: 767px) {
  .table-container {
    margin: 0 -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .languages-table {
    font-size: 0.8rem;
  }
  
  .languages-table th,
  .languages-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .description-cell {
    max-width: 150px;
    font-size: 0.75rem;
  }
  
  .trend-cell {
    max-width: 120px;
    font-size: 0.75rem;
  }
  
  .languages-table td:nth-child(5) {
    font-size: 0.7rem;
  }
}

/* Tablet responsive table */
@media (min-width: 768px) and (max-width: 1023px) {
  .languages-table {
    font-size: 0.85rem;
  }
  
  .description-cell {
    max-width: 200px;
  }
  
  .trend-cell {
    max-width: 150px;
  }
}

/* ==========================================================================
   Libraries Table
   ========================================================================== */

.libraries-table-section {
  margin: 2rem 0;
}

.libraries-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.libraries-table th,
.libraries-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.libraries-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.libraries-table tbody tr:hover {
  background: var(--bg-muted);
}

.libraries-table tbody tr:last-child td {
  border-bottom: none;
}

/* Specific column styles for libraries table */
.libraries-table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  width: 60px;
}

.libraries-table td:nth-child(2) {
  font-weight: 600;
  color: var(--text-primary);
}

.libraries-table .description-cell {
  max-width: 250px;
  line-height: 1.5;
}

.libraries-table .trend-cell {
  max-width: 200px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.libraries-table td:nth-child(n+5) {
  text-align: center;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 60px;
}

.libraries-table td:nth-child(7) a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
}

.libraries-table td:nth-child(7) a:hover {
  text-decoration: underline;
}

/* Mobile responsive table for libraries */
@media (max-width: 767px) {
  .libraries-table {
    font-size: 0.8rem;
  }
  
  .libraries-table th,
  .libraries-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .libraries-table .description-cell {
    max-width: 150px;
    font-size: 0.75rem;
  }
  
  .libraries-table .trend-cell {
    max-width: 120px;
    font-size: 0.75rem;
  }
  
  .libraries-table td:nth-child(7) {
    font-size: 0.7rem;
  }
}

/* Tablet responsive table for libraries */
@media (min-width: 768px) and (max-width: 1023px) {
  .libraries-table {
    font-size: 0.85rem;
  }
  
  .libraries-table .description-cell {
    max-width: 200px;
  }
  
  .libraries-table .trend-cell {
    max-width: 150px;
  }
}

/* ==========================================================================
   Languages List
   ========================================================================== */

.languages-list-section {
  margin: 2rem 0;
}

.languages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.language-item {
  width: 100%;
}

.language-link {
  display: block;
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.language-link:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.language-content {
  padding: 1.5rem;
}

.language-name {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.language-description {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .languages-list {
    gap: 0.75rem;
  }
  
  .language-content {
    padding: 1rem;
  }
  
  .language-name {
    font-size: 1.1rem;
  }
  
  .language-description {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Language Detail Page
   ========================================================================== */

.language-detail-page {
  min-height: 100vh;
}

.language-detail {
  margin: 2rem 0;
}

.language-header {
  margin-bottom: 2rem;
}

.language-header h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-weight: 800;
}

.language-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.ranking-info {
  margin: 1rem 0;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.overall-ranking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.ranking-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ranking-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.source-rankings h4 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0 0;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}


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

.ranking-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  text-align: center;
}

.ranking-source {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ranking-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.language-content {
  margin-top: 0.75rem;
}

/* Language detail page styles */
.language-detail-content {
  margin-top: 1rem;
}

.language-header {
  margin-bottom: 0.5rem;
}

.language-header h1 {
  margin: 0;
  font-size: 2rem;
}

/* ==========================================================================
   Markdown Content Styles
   ========================================================================== */

.markdown-content {
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1rem;
}

.markdown-content h1 {
  font-size: 2rem;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem 0;
  color: var(--text-primary);
  font-weight: 600;
}

.markdown-content h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.25rem 0;
  color: var(--text-primary);
  font-weight: 600;
}

.markdown-content p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

.markdown-content code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  padding: 0.2rem 0.4rem;
  background: var(--hljs-bg, var(--bg-muted));
  color: var(--hljs-color, var(--error-color));
  border-radius: 4px;
  border: 1px solid var(--hljs-border, var(--border-color));
}

.markdown-content pre {
  background: transparent;
  border: none;
  padding: 0;
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.markdown-content pre code {
  background: var(--hljs-bg, var(--bg-secondary));
  border: 1px solid var(--hljs-border, var(--border-color));
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: block;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--hljs-color, var(--text-primary));
  tab-size: 4;
  -webkit-text-size-adjust: none;
  white-space: pre;
  overflow-x: auto;
}

/* コードブロック内の要素スタイルのリセット */
.markdown-content pre code * {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
}

/* コメント行はブロック表示 */
.markdown-content pre code .hljs-comment {
  display: block !important;
}

.markdown-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content strong {
  font-weight: 700;
  color: var(--text-primary);
}

.markdown-content em {
  font-style: italic;
  color: var(--text-secondary);
}

.markdown-content ul,
.markdown-content ol {
  margin: 1rem 0 1.5rem 0;
  padding-left: 2rem;
}

.markdown-content li {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.markdown-content table th,
.markdown-content table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.markdown-content table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.markdown-content table tr:nth-child(even) {
  background: var(--bg-muted);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .language-header h1 {
    font-size: 2rem;
  }
  
  .language-description {
    font-size: 1rem;
  }
  
  .ranking-info {
    padding: 1rem;
  }
  
  .overall-ranking {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
  }
  
  .ranking-label {
    font-size: 1rem;
  }
  
  .ranking-number {
    font-size: 1.5rem;
  }
  
  .ranking-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
  }
  
  .ranking-item {
    padding: 0.5rem;
  }
  
  .ranking-source {
    font-size: 0.7rem;
  }
  
  .ranking-value {
    font-size: 1rem;
  }
  
  .markdown-content {
    font-size: 0.9rem;
  }
  
  .markdown-content h1 {
    font-size: 1.5rem;
  }
  
  .markdown-content h2 {
    font-size: 1.25rem;
  }
  
  .markdown-content h3 {
    font-size: 1.1rem;
    margin: 0.75rem 0 0.2rem 0;
  }
  
  .markdown-content pre {
    padding: 1rem;
    font-size: 0.8rem;
    margin: 0.2rem 0 1rem 0;
  }
  
  .markdown-content table {
    font-size: 0.8rem;
  }
  
  .markdown-content table th,
  .markdown-content table td {
    padding: 0.5rem;
  }
}

/* ==========================================================================
   Error Page
   ========================================================================== */

.error-page-container {
  min-height: 100vh;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
}

.error-content h1 {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  color: var(--error-color);
  font-weight: 800;
}

.error-content p {
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.home-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.2s ease;
}

.home-link:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .error-content {
    padding: 2rem 1rem;
  }
  
  .error-content h1 {
    font-size: 2rem;
  }
  
  .error-content p {
    font-size: 1rem;
  }
  
  .home-link {
    width: 100%;
    max-width: 300px;
  }
}

/* ==========================================================================
   MDX Content Styles
   ========================================================================== */

.mdx-content {
  line-height: 1.7;
  color: var(--text-primary);
}

.mdx-content h1,
.mdx-content h2,
.mdx-content h3,
.mdx-content h4,
.mdx-content h5,
.mdx-content h6 {
  margin: 2rem 0 1rem 0;
  font-weight: 700;
  line-height: 1.3;
}

.mdx-content h1 {
  font-size: 2rem;
  margin-top: 0;
}

.mdx-content h2 {
  font-size: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.mdx-content h3 {
  font-size: 1.5rem;
}

.mdx-content h4 {
  font-size: 1.25rem;
}

.mdx-content h5 {
  font-size: 1.125rem;
}

.mdx-content h6 {
  font-size: 1rem;
}

.mdx-content p {
  margin: 0 0 1rem 0;
}

.mdx-content ul,
.mdx-content ol {
  margin: 0 0 1rem 0;
  padding-left: 2rem;
}

.mdx-content li {
  margin: 0.5rem 0;
}

.mdx-content pre {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.mdx-content pre code {
  display: block;
  padding: 1.5rem;
  background: var(--hljs-bg, #f8fafc);
  border: 1px solid var(--hljs-border, #e2e8f0);
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  tab-size: 4;
  overflow-x: auto;
}

.mdx-content code {
  padding: 0.2rem 0.4rem;
  background: #f1f5f9;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.875em;
}

.mdx-content pre code {
  padding: 1.5rem;
  background: none;
  font-size: 0.9rem;
}

.mdx-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-left: 4px solid var(--primary-color);
  color: var(--text-secondary);
}

.mdx-content blockquote p:last-child {
  margin-bottom: 0;
}

.mdx-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.mdx-content th,
.mdx-content td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.mdx-content th {
  background: #f8fafc;
  font-weight: 600;
}

.mdx-content tr:nth-child(even) {
  background: #f8fafc;
}

.mdx-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.mdx-content a:hover {
  color: var(--primary-color-dark);
}

.mdx-content hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.mdx-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

.mdx-content strong {
  font-weight: 700;
}

.mdx-content em {
  font-style: italic;
}

/* ==========================================================================
   Data Sources Section
   ========================================================================== */

.data-sources {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.data-sources h3 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.data-sources ul {
  list-style: disc;
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.data-sources li {
  margin: 0.5rem 0;
}

.data-sources a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.data-sources a:hover {
  text-decoration: underline;
}

/* Mobile adjustments for data sources */
@media (max-width: 767px) {
  .data-sources {
    margin: 1.5rem 0;
    padding: 1rem;
  }
  
  .data-sources h3 {
    font-size: 1rem;
  }
  
  .data-sources ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  display: inline-block;
  transition: all 0.2s ease;
}

.footer-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
  }
  
  .footer-content {
    padding: 0 1rem;
  }
  
  .footer-link {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    max-width: 280px;
  }
}

/* ==========================================================================
   highlight-styles Customization
   ========================================================================== */

.markdown-content .hljs {
  margin: 1.5rem 0;
}
.markdown-content .hljs {
  margin: 0;
}

/* ==========================================================================
   New Pages Styles
   ========================================================================== */

/* Compare Page Styles */
.compare-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.compare-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.category-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Guides Page Styles */
.guides-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.guides-table th,
.guides-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.guides-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.guides-table tbody tr:hover {
  background: var(--bg-muted);
}

.guide-title-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.guide-title-link:hover {
  text-decoration: underline;
}

.guide-author {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.tag-more {
  background: var(--bg-muted);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
}

.difficulty-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.difficulty-beginner {
  background: #d1fae5;
  color: #065f46;
}

.difficulty-intermediate {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-advanced {
  background: #fee2e2;
  color: #991b1b;
}

.duration-cell,
.category-cell,
.date-cell {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Learn Page Styles */
.learn-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.learn-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.resource-count {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Roadmaps Page Styles */
.roadmaps-grid {
  margin: 2rem 0;
}

.roadmap-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.roadmap-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

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

.roadmap-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.level-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
}

.level-beginner {
  background: #d1fae5;
  color: #065f46;
}

.level-intermediate {
  background: #fef3c7;
  color: #92400e;
}

.level-advanced {
  background: #fee2e2;
  color: #991b1b;
}

.duration-badge {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.roadmap-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.roadmap-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.technologies-section h4,
.skills-section h4 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.technology-tags,
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.skill-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.roadmap-footer {
  text-align: right;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* News Page Styles */
.news-articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

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

.news-meta {
  display: flex;
  gap: 0.5rem;
}

.category-release {
  background: #3b82f6;
  color: white;
}

.category-product {
  background: #10b981;
  color: white;
}

.category-security {
  background: #ef4444;
  color: white;
}

.category-community {
  background: #8b5cf6;
  color: white;
}

.priority-high {
  background: #dc2626;
  color: white;
}

.priority-medium {
  background: #d97706;
  color: white;
}

.priority-low {
  background: #64748b;
  color: white;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.news-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.news-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-summary {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.news-source {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.source-label,
.author-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reading-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Articles Page Styles */
.featured-articles {
  margin: 2rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.featured-article-card {
  background: white;
  color: var(--text-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease;
}

.featured-article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.featured-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #3182ce;
  z-index: 1;
}

.featured-article-card > * {
  position: relative;
  z-index: 2;
}

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

.featured-badge {
  background: #fffbeb;
  color: #f59e0b;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-article-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.featured-article-card h4 a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
}

.featured-article-card h4 a:hover {
  color: #3182ce;
  text-decoration: underline;
}

.featured-article-card .article-summary {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.featured-article-card .article-tags .tag {
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Guide Detail Page Code Block Styles
   ========================================================================== */

/* ガイド詳細ページのコードブロック特別スタイル */
.guide-detail-page pre,
.tool-detail-page pre {
  margin: 1.5rem 0;
  background: transparent;
  border: none;
  padding: 0;
}

.guide-detail-page pre code,
.tool-detail-page pre code {
  display: block;
  background: var(--hljs-bg, #f8fafc);
  border: 1px solid var(--hljs-border, #e2e8f0);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  color: var(--hljs-color, #0f172a);
}

/* コードブロック内の子要素をインライン化 */
.guide-detail-page pre code > *,
.tool-detail-page pre code > * {
  display: inline;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* コメント行（generic要素）の処理 */
.guide-detail-page pre code > generic,
.tool-detail-page pre code > generic,
.guide-detail-page pre code .hljs-comment,
.tool-detail-page pre code .hljs-comment {
  display: block;
  color: var(--hljs-comment, #6a737d);
  font-style: italic;
  margin: 0;
  padding: 0;
}

.articles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.articles-table th,
.articles-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.articles-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.article-title-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-title-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.article-title-link:hover {
  text-decoration: underline;
}

.featured-indicator {
  color: #f59e0b;
  margin-left: 0.5rem;
}

.article-author {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.summary-cell {
  max-width: 300px;
  line-height: 1.5;
}

.article-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.tag-small {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
}

.time-cell,
.category-cell,
.date-cell {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Community Page Styles */
.community-card {
  position: relative;
}

.community-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.community-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.community-stats {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.count-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.active {
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.community-highlights {
  margin: 2rem 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.highlight-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.highlight-card h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.highlight-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-card li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.highlight-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 600;
}

/* About Page Styles */
.mission-statement {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1rem 0 2rem 0;
  text-align: center;
}

.mission-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

.site-statistics {
  margin: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.features-section,
.technology-section,
.team-section,
.contact-section {
  margin: 2rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tech-category h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.team-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.team-card h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.team-role {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.contact-label {
  font-weight: 600;
  min-width: 100px;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .roadmap-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .roadmap-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .roadmap-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid,
  .tech-categories,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .contact-label {
    min-width: auto;
  }
}

 div.framework-tags span
,div.tech-tags span
,div.article-tags span
,div.cms-tags span
,div.feature-tags span
,div.topic-tags span
,div.technology-tags span
,div.skill-tags span
,div.guide-tags span
,div.langugae-tags span
,div.skill-tags span
,div.news-tags span
{
  margin-right:0.5em;;

}
/* Chart Container Styles */
.chart-container {
  margin: 2rem 0;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.chart-container img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
