/* ============================================
   Pet Industry Portal - Modern Article Theme
   Version: 1.0
   Design: Clean, Modern, Content-Focused
   ============================================ */

/* CSS Variables */
:root {
  /* Color Palette - Warm Coral & Teal */
  --primary-color: #e07a5f;
  --primary-hover: #c96a52;
  --secondary-color: #3d405b;
  --accent-color: #81b29a;
  --background-color: #fdfcf8;
  --surface-color: #ffffff;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-muted: #b2bec3;
  --border-color: #dfe6e9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
 Header Styles
 ============================================ */
.site-header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

@media (max-width:768px) {
  .header-inner {
    height: 55px;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

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

.nav-list a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--surface-color);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay .nav-list {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 24px;
}

.mobile-menu-overlay .nav-list a {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
 Main Content Layout
 ============================================ */
.main-content {
  padding: 32px 0 64px;
  min-height: calc(100vh - 300px);
}

.content-layout {
  display: grid;
  gap: 40px;
}

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

.sidebar-column {
  min-width: 0;
}

/* ============================================
 Section Titles
 ============================================ */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 32px;
}

/* ============================================
 Featured Section (Homepage)
 ============================================ */
.featured-section {
  margin-bottom: 48px;
}

.featured-grid {
  display: grid;
  gap: 20px;
}

.featured-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.featured-link {
  display: block;
}

.featured-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.featured-card:hover .featured-image-wrapper img {
  transform: scale(1.05);
}

.featured-content {
  padding: 20px;
}

.featured-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  background-color: rgba(224, 122, 95, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-primary .featured-title {
  font-size: 1.375rem;
}

.featured-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.reading-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
 Categories Section
 ============================================ */
.categories-section {
  margin-bottom: 48px;
  padding: 40px 0;
  background: linear-gradient(135deg, rgba(129, 178, 154, 0.08) 0%, rgba(224, 122, 95, 0.08) 100%);
  border-radius: var(--radius-lg);
}

.categories-section .container {
  padding: 0 24px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: calc(var(--card-index) * 0.05s);
  opacity: 0;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background-color: var(--secondary-color);
}

.category-card:hover .category-name,
.category-card:hover .category-arrow {
  color: var(--surface-color);
}

.category-card:hover .category-icon {
  color: var(--primary-color);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(129, 178, 154, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent-color);
  flex-shrink: 0;
}

.category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.category-arrow {
  color: var(--text-muted);
  font-size: 1.125rem;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-arrow {
  transform: translateX(4px);
}

/* ============================================
 Latest Articles Grid
 ============================================ */
.latest-section {
  margin-bottom: 48px;
}

.articles-grid {
  display: grid;
  gap: 24px;
}

.article-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.article-link {
  display: block;
}

.article-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.article-card:hover .article-image-wrapper img {
  transform: scale(1.05);
}

.article-content {
  padding: 20px;
}

.article-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.meta-separator {
  margin: 0 2px;
}

/* ============================================
 Sidebar Styles
 ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-section {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.category-link:last-child {
  border-bottom: none;
}

.category-link:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.category-link:hover .category-arrow {
  transform: translateX(4px);
}

.trending-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trending-item time {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trending-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.trending-link:hover {
  color: var(--primary-color);
}

/* ============================================
 Breadcrumb Navigation
 ============================================ */
.breadcrumb-nav {
  margin-bottom: 24px;
}

@media (max-width:768px) {
  .breadcrumb-nav {
    margin-bottom: 10px;
  }
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
  content: '>';
  color: var(--text-muted);
  font-size: 0.75rem;
}

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* ============================================
 Category Page - List View
 ============================================ */
.category-title {
  font-size: 2.25rem;
  margin-bottom: 32px;
}

.category-articles-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 768px) {
  .category-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
  }
}

.list-article-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.list-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.list-article-link {
  display: flex;
  flex-direction: column;
}

.list-article-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.list-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.list-article-card:hover .list-article-image img {
  transform: scale(1.05);
}

.list-article-content {
  padding: 20px;
}

.list-article-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.list-article-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.list-article-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
/* ============================================
 Pagination Styles
 ============================================ */
.pagination-nav {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pagination-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination-item.active .pagination-link,
.pagination-link.current {
  color: var(--surface-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination-item.disabled .pagination-link {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-item.ellipsis .pagination-link {
  border: none;
  background: none;
  cursor: default;
}

/* ============================================
 Article Detail Page
 ============================================ */
.article-detail {
  padding-top: 16px;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.article-detail-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: rgba(129, 178, 154, 0.08);
  border-radius: var(--radius-md);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-color);
  box-shadow: var(--shadow-sm);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-brief {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Article Body Content */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-body h2 {
  font-size: 1.5rem;
}

.article-body h3 {
  font-size: 1.25rem;
}

.article-body h4 {
  font-size: 1.125rem;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 32px auto;
  display: block;
  box-shadow: var(--shadow-md);
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

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

.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background-color: rgba(224, 122, 95, 0.08);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--primary-hover);
}

.article-body code {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.875em;
  background-color: rgba(61, 64, 91, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.article-body pre {
  background-color: var(--secondary-color);
  color: var(--surface-color);
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Article Navigation */
.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-prev,
.nav-next {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-next {
  text-align: right;
  align-items: flex-end;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

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

/* Related Articles */
.related-articles {
  margin-bottom: 48px;
}

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

.related-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-link {
  display: block;
}

.related-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  padding: 12px;
}

/* Comment Section */
.comment-section {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  color: var(--surface-color);
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
 Author Profile Page
 ============================================ */
.author-profile {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 0;
}

.author-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.author-avatar-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface-color);
}

.author-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.author-profile-tagline {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 500px;
}

.author-profile-content {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.author-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.author-bio p {
  margin-bottom: 16px;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

/* ============================================
 Standalone Page (About Us)
 ============================================ */
.standalone-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 0;
}

.standalone-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.standalone-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.standalone-content {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text-primary);
}

.standalone-content h2,
.standalone-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 32px;
  margin-bottom: 16px;
}

.standalone-content h2 {
  font-size: 1.5rem;
}

.standalone-content h3 {
  font-size: 1.25rem;
}

.standalone-content p {
  margin-bottom: 20px;
}

.standalone-content ul,
.standalone-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.standalone-content ul {
  list-style: disc;
}

.standalone-content ol {
  list-style: decimal;
}

.standalone-content li {
  margin-bottom: 8px;
}

/* ============================================
 More Articles Page - Compact Grid
 ============================================ */
.compact-articles-grid {
  display: grid;
  gap: 20px;
}

.compact-article-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.compact-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.compact-article-link {
  display: flex;
  flex-direction: column;
}

.compact-article-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.compact-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.compact-article-card:hover .compact-article-image img {
  transform: scale(1.05);
}

.compact-article-content {
  padding: 16px;
}

.compact-article-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
 All Articles Page - Simple List
 ============================================ */
.all-articles-list {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.simple-article-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
}

.simple-article-item:last-child {
  border-bottom: none;
}

.simple-article-item:hover {
  background-color: rgba(129, 178, 154, 0.04);
}

.simple-article-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 2px;
}

.simple-article-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.simple-article-item:hover .simple-article-title {
  color: var(--primary-color);
}

/* ============================================
 Footer Styles
 ============================================ */
.site-footer {
  background-color: var(--secondary-color);
  color: var(--surface-color);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-menu a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--surface-color);
}

.footer-recommended {
  text-align: center;
}

.footer-recommended h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--surface-color);
}

.recommended-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.recommended-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recommended-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recommended-item a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.recommended-item a:hover {
  color: var(--primary-color);
}

.footer-copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-copyright a:hover {
  color: var(--surface-color);
}


/* ============================================
 Responsive Styles - Tablet & Desktop
 ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .container {
      padding: 0 32px;
  }
  
  .main-content {
      padding: 40px 0 80px;
  }
  
  /* Header */
  .mobile-menu-toggle {
      display: none;
  }
  
  .main-nav {
      display: block;
  }
  
  /* Featured Section */
  .featured-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
  }
  
  .featured-primary {
      grid-column: span 2;
  }
  
  .featured-primary .featured-link {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
  }
  
  .featured-primary .featured-image-wrapper {
      aspect-ratio: auto;
  }
  
  .featured-primary .featured-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
  }
  
  .featured-primary .featured-title {
      font-size: 1.625rem;
  }
  
  /* Categories */
  .categories-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
  }
  
  .category-card {
      padding: 20px;
  }
  
  /* Articles Grid */
  .articles-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
  }
  
  /* Content Layout */
  .content-layout {
      grid-template-columns: 1fr 280px;
      gap: 40px;
  }
  
  /* Category List */
  .list-article-link {
      flex-direction: row;
  }
  
  .list-article-image {
      width: 280px;
      flex-shrink: 0;
      aspect-ratio: 4 / 3;
  }
  
  .list-article-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
  }
  
  .list-article-title {
      font-size: 1.375rem;
  }
  
  /* Article Detail */
  .article-detail-title {
      font-size: 2.25rem;
  }
  
  .related-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
  }
  
  /* Form */
  .form-row {
      grid-template-columns: 1fr 1fr;
  }
  
  /* Author Profile */
  .author-profile-header {
      flex-direction: row;
      text-align: left;
  }
  
  /* Compact Articles */
  .compact-articles-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  /* Simple Articles */
  .simple-article-item {
      align-items: center;
  }
  
  .simple-article-title {
      font-size: 1.0625rem;
  }
  
  /* Footer */
  .footer-menu {
      gap: 32px;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .container {
      padding: 0 40px;
  }
  
  /* Featured Section */
  .featured-grid {
      grid-template-columns: repeat(3, 1fr);
  }
  
  .featured-primary {
      grid-column: span 2;
      grid-row: span 2;
  }
  
  .featured-primary .featured-link {
      display: flex;
      flex-direction: column;
      height: 100%;
  }
  
  .featured-primary .featured-image-wrapper {
      flex: 1;
      aspect-ratio: 16 / 10;
  }
  
  .featured-secondary .featured-title {
      font-size: 1rem;
  }
  
  /* Categories */
  .categories-grid {
      grid-template-columns: repeat(4, 1fr);
  }
  
  /* Articles Grid */
  .articles-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  /* Content Layout */
  .content-layout {
      grid-template-columns: 1fr 320px;
      gap: 48px;
  }
  
  /* Compact Articles */
  .compact-articles-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
  .featured-primary .featured-title {
      font-size: 1.875rem;
  }
  
  .articles-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
 Print Styles
 ============================================ */
@media print {
  .site-header,
  .sidebar-column,
  .mobile-menu-toggle,
  .pagination-nav,
  .comment-section,
  .related-articles,
  .article-navigation,
  .site-footer {
      display: none !important;
  }
  
  .main-content {
      padding: 0;
  }
  
  .main-column {
      width: 100%;
      max-width: none;
  }
  
  .article-body {
      font-size: 12pt;
      line-height: 1.6;
  }
  
  .article-detail-title {
      font-size: 24pt;
  }
  
  a {
      text-decoration: none;
      color: var(--text-primary);
  }
  
  .article-body a::after {
      content: ' (' attr(href) ')';
      font-size: 10pt;
      color: var(--text-secondary);
  }
}


/* ============================================
 Reading Progress Bar
 ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(224, 122, 95, 0.15);
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  width: 0%;
  transition: width 0.1s ease;
}

/* ============================================
 Form Error States
 ============================================ */
.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
  display: block;
  font-size: 0.8125rem;
  color: #e74c3c;
  margin-top: 6px;
}

/* ============================================
 Scroll Animation Classes
 ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for cards */
.article-card:nth-child(1) { transition-delay: 0.05s; }
.article-card:nth-child(2) { transition-delay: 0.1s; }
.article-card:nth-child(3) { transition-delay: 0.15s; }
.article-card:nth-child(4) { transition-delay: 0.2s; }
.article-card:nth-child(5) { transition-delay: 0.25s; }
.article-card:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
 Image Loading States
 ============================================ */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="eager"] {
  opacity: 1;
}

/* Image placeholder while loading */
.article-image-wrapper,
.featured-image-wrapper,
.list-article-image,
.compact-article-image,
.related-image {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* ============================================
 Focus Styles for Accessibility
 ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--surface-color);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
 Selection Styles
 ============================================ */
::selection {
  background-color: rgba(224, 122, 95, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: rgba(224, 122, 95, 0.3);
  color: var(--text-primary);
}
