/* Plano Community Spotlight - Warm Amber Palette */
:root {
  --primary-dark: #8B4513;
  --primary-medium: #D2691E;
  --primary-light: #CD853F;
  --accent-warm: #F5DEB3;
  --accent-cream: #FFF8DC;
  --text-dark: #2C2C2C;
  --text-light: #6B6B6B;
  --border-color: #E0D4B8;
  --bg-light: #FFFBF5;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 1.5rem 0 1rem 0;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 3px solid var(--primary-medium);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin: 1rem 0;
  text-align: justify;
}

a {
  color: var(--primary-medium);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-medium);
}

/* Layout Structure */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(139, 69, 19, 0.15);
}

.site-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.site-tagline {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.95;
  margin-top: 0.5rem;
}

nav {
  background-color: var(--accent-warm);
  padding: 1rem;
  border-bottom: 2px solid var(--primary-medium);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

nav a {
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: var(--primary-light);
  color: white;
  border-bottom-color: transparent;
}

main {
  flex: 1;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.content-area {
  background-color: white;
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--primary-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Article Card Styling */
.article-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(139, 69, 19, 0.12);
}

.article-title {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
}

.article-title a {
  color: var(--primary-dark);
}

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

.meta-info {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0.5rem 0 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-date {
  display: flex;
  align-items: center;
}

.meta-date::before {
  content: '📅';
  margin-right: 0.3rem;
}

.meta-category {
  display: inline-block;
  background-color: var(--accent-cream);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--primary-light);
}

.article-description {
  font-size: 1.05rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--primary-light);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.read-more:hover {
  background-color: var(--primary-medium);
  border-bottom: none;
}

/* Article Detail Page */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-content h2 {
  margin-top: 2.5rem;
}

.article-content h3 {
  margin-top: 2rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

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

.article-content blockquote {
  border-left: 4px solid var(--primary-medium);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--accent-cream);
}

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

.article-content th {
  background-color: var(--primary-light);
  color: white;
  font-weight: 600;
}

.article-content tr:hover {
  background-color: var(--accent-warm);
}

.article-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 2rem 0;
  border: 2px solid var(--border-color);
}

/* Article List */
.article-list {
  list-style: none;
}

.article-list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--accent-warm);
}

footer a:hover {
  color: white;
  border-bottom-color: var(--accent-warm);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-divider {
  height: 1px;
  background-color: var(--primary-medium);
  margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .site-title {
    font-size: 1.6rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }

  main {
    margin: 1.5rem auto;
  }

  .content-area {
    padding: 1.5rem;
  }

  .article-card {
    padding: 1.5rem;
  }

  .meta-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 1.5rem 1rem;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .site-tagline {
    font-size: 0.9rem;
  }

  nav ul {
    gap: 0.5rem;
  }

  nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

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

  .content-area {
    border-left-width: 3px;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}

/* Utility Classes */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

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

.text-muted {
  color: var(--text-light);
}

.no-wrap {
  white-space: nowrap;
}
