/* Main Styles for Political Philosophy Reading List Website */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --link-color: #3498db;
  --link-hover-color: #2980b9;
  --background-color: #f9f9f9;
  --card-background: #ffffff;
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.site-description {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Navigation */
nav {
  background-color: var(--dark-color);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-right: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content */
main {
  padding: 2rem 0;
}

section {
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

/* Book Cards */
.book-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.book-card {
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.book-author {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.book-content {
  padding: 1.5rem;
}

.book-description {
  margin-bottom: 1rem;
}

.book-category {
  display: inline-block;
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Category Pages */
.category-description {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Reading Pathways */
.pathway {
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pathway-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.pathway-description {
  margin-bottom: 1rem;
}

.pathway-books {
  list-style-position: inside;
  margin-left: 1rem;
}

.pathway-book-item {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-nav-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-item {
  margin: 0 1rem;
}

.footer-nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    padding: 1rem 0;
    z-index: 100;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-item {
    margin-right: 0;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .book-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-nav-list {
    flex-direction: column;
  }
  
  .footer-nav-item {
    margin: 0.5rem 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--link-hover-color);
}

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

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