/* News Section Styles for Mobile App Industry Hub */

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

:root {
  /* Color Palette - Mobile App Industry */
  --primary-color: #5B7FFF;
  --secondary-color: #8B5CF6;
  --accent-color: #00D9FF;
  --text-dark: #1a1a2e;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #5B7FFF 0%, #8B5CF6 100%);
  --gradient-accent: linear-gradient(135deg, #00D9FF 0%, #5B7FFF 100%);
  --shadow-sm: 0 2px 4px rgba(91, 127, 255, 0.08);
  --shadow-md: 0 4px 6px rgba(91, 127, 255, 0.12);
  --shadow-lg: 0 10px 15px rgba(91, 127, 255, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Header Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.nav {
  padding: 1rem 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Main Content Layout */
.news-container {
  max-width: 1400px;
  margin: 80px auto 0;
  padding: 3rem 20px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

/* Article Styles */
.main-content {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--bg-light);
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

.article-meta time {
  font-weight: 500;
}

.featured-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.article-content ul,
.article-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* News Source Section */
.news-source-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

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

.news-source-list dt {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.news-source-list dd {
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.news-source-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Share Buttons */
.share-buttons {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--bg-light);
  display: flex;
  gap: 1rem;
}

.share-button {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.share-button.twitter {
  background: #1DA1F2;
  color: white;
}

.share-button.facebook {
  background: #1877F2;
  color: white;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--bg-light);
  color: var(--text-dark);
}

/* Ad Space */
.ad-space {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* Related Links */
.related-links {
  list-style: none;
}

.related-links li {
  margin-bottom: 0.8rem;
}

.related-links a {
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition);
}

.related-links a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* News List Page */
.news-list-container {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 3rem 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-description {
  color: var(--text-light);
  font-size: 1.1rem;
}

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

.news-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.news-card-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.news-card-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.news-card-link:hover {
  color: var(--secondary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination-button {
  padding: 0.8rem 1.5rem;
  background: var(--bg-white);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-weight: 600;
}

.pagination-button:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.pagination-button.active {
  background: var(--primary-color);
  color: white;
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .main-content {
    padding: 2rem 1.5rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .news-container,
  .news-list-container {
    padding: 2rem 15px;
  }

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

  .article-content {
    font-size: 1rem;
  }
}
