/* IT Freelance Industry News Styles */

:root {
  /* Dark Brown Theme Colors */
  --navy-900: #1a1410;
  --navy-800: #2d251f;
  --navy-700: #453830;
  --gold-500: #d4a574;
  --gold-400: #e0b989;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --text-primary: #1a1410;

  /* Legacy variable mappings for compatibility */
  --brand-primary: #d4a574;
  --brand-secondary: #2d251f;
  --brand-accent: #d4a574;
  --text-main: #1a1410;
  --text-muted: #64748b;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-soft: 0 16px 40px rgba(26, 20, 16, 0.15);
  --shadow-card: 0 20px 50px rgba(26, 20, 16, 0.22);
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: top 0.3s;
}

.skip-link:focus {
  top: 80px;
}

body {
  font-family: 'Inter', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  background: #ffffff;
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
}

.news-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1200px;
  margin: 100px auto 40px;
  padding: 0 1.75rem;
}

.main-content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

img,
.news-card-image,
.news-article-image,
.news-card figure img,
.featured-image img {
  max-width: 100%;
  height: auto;
  display: block;
}


main {
  max-width: 1080px;
  margin: 3.5rem auto 4rem;
  padding: 0 1.75rem;
}

.section-title {
  font-size: 2.2rem;
  color: var(--brand-secondary);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 999px;
  margin: 0.8rem auto 0;
}

.news-list {
  display: grid;
  gap: 2.2rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

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

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(224, 185, 137, 0.2));
}

.news-card-content {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.news-card-title {
  font-size: 1.25rem;
  color: var(--brand-secondary);
  line-height: 1.55;
}

.news-card-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.news-card-excerpt {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.news-card-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(212, 165, 116, 0.35);
  padding-bottom: 0.25rem;
  transition: var(--transition);
}

.news-card-link:hover {
  color: var(--gold-400);
  border-bottom-color: rgba(224, 185, 137, 0.45);
}

.news-article {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.news-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.news-title {
  font-size: 2.1rem;
  color: var(--brand-secondary);
  line-height: 1.5;
}

.news-article-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.news-content h2 {
  font-size: 1.45rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.news-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.news-source-section {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.news-source-list {
  display: grid;
  gap: 0.6rem;
  font-size: 0.96rem;
}

.news-source-list a {
  color: var(--gold-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
}

.share-btn.twitter {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.share-btn.facebook {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(26, 20, 16, 0.25);
}


@media (max-width: 960px) {
  .news-container {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .main-content {
    order: 0;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-image {
    height: 220px;
  }
}

@media (max-width: 720px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .news-article {
    padding: 2rem;
  }

  .news-title {
    font-size: 1.7rem;
  }

  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
