/* Main Styles for Peter Drew's Website */

:root {
  --primary-color: #1a4b84;
  --secondary-color: #2c7bb6;
  --accent-color: #f8b400;
  --text-color: #333;
  --light-text: #666;
  --background-color: #fff;
  --light-background: #f5f8fa;
  --border-color: #e1e4e8;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Georgia', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: bold;
}

.site-subtitle {
  font-size: 1.2rem;
  margin-top: 5px;
  font-weight: normal;
}

/* Navigation */
nav {
  background-color: var(--secondary-color);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin: 0 15px;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.nav-list a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
  padding: 40px 0;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.author-bio {
  background-color: var(--light-background);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  border-left: 4px solid var(--accent-color);
}

/* Article List */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.article-card {
  background-color: var(--light-background);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-content {
  padding: 20px;
}

.article-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.article-snippet {
  color: var(--light-text);
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.read-more:hover {
  background-color: var(--secondary-color);
}

/* Single Article Page */
.article-header {
  margin-bottom: 30px;
}

.article-meta {
  color: var(--light-text);
  margin-bottom: 20px;
  font-style: italic;
}

.article-body {
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 20px;
}

/* Related Articles */
.related-articles {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.related-articles h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.related-item {
  background-color: var(--light-background);
  padding: 15px;
  border-radius: 5px;
}

.related-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination a {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  background-color: var(--light-background);
  border-radius: 3px;
  text-decoration: none;
  color: var(--text-color);
  transition: background-color 0.3s;
}

.pagination a:hover {
  background-color: var(--border-color);
}

.pagination .active {
  background-color: var(--primary-color);
  color: white;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 0;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav ul {
  display: flex;
  list-style: none;
}

.footer-nav li {
  margin-right: 20px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-list li {
    margin: 5px 10px;
  }
  
  .article-list {
    grid-template-columns: 1fr;
  }
  
  .related-list {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav ul {
    justify-content: center;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
  
  .article-title {
    font-size: 1.2rem;
  }
}