/* 
* 12Novels - Custom CSS
* A modern, responsive design for Philippine literary website
*/

:root {
  --primary-color: #5c2e91;
  --secondary-color: #ff8a00;
  --accent-color: #00a8e8;
  --background-color: #f8f9fa;
  --text-color: #333333;
  --light-color: #ffffff;
  --dark-color: #212529;
  --border-color: #e1e1e1;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

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

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--secondary-color);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: #4a2475;
  color: var(--light-color);
}

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

.btn-secondary:hover {
  background-color: #e67e00;
}

/* Header */
header {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo a {
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
}

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

nav li {
  margin-left: 1.5rem;
}

nav a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(to right, #5c2e91, #7952b3);
  color: var(--light-color);
  padding: 6rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  color: var(--light-color);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Featured Section */
.featured {
  padding: 5rem 0;
}

.featured h2, .categories h2, .authors h2, .games h2, .about h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

.novel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.novel-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-left: 5px solid var(--primary-color);
  padding: 1.5rem;
}

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

.novel-info {
  padding: 1rem 0;
}

.novel-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.author {
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Categories Section */
.categories {
  padding: 5rem 0;
  background-color: #f0f0f0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.category-item {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.category-item:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: var(--light-color);
}

.category-item span {
  font-weight: 600;
  font-size: 1.2rem;
}

.category-item:hover span {
  color: var(--light-color);
}

/* Authors Section */
.authors {
  padding: 5rem 0;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.author-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--secondary-color);
  padding: 1.5rem;
}

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

.author-info h3 {
  font-size: 1.3rem;
}

/* Games Section */
.games {
  padding: 5rem 0;
  background-color: #f0f0f0;
}

.games p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.game-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.game-links {
  list-style: circle inside;
  margin: 1rem 0;
}

.game-links li {
  margin-bottom: 0.5rem;
}

.game-card ul {
  padding-left: 1rem;
}

.game-card ul li {
  margin-bottom: 0.5rem;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo p {
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1rem;
}

.footer-links h4 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-newsletter h4 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-newsletter form {
  display: flex;
  flex-wrap: wrap;
}

.footer-newsletter input {
  flex: 1;
  min-width: 120px;
  padding: 0.8rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.footer-newsletter button {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
}

.social-icons {
  display: flex;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 1.5rem;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

.social-icons span {
  font-size: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav li {
    margin: 0.5rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .featured h2, .categories h2, .authors h2, .games h2, .about h2 {
    font-size: 1.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .social-icons {
    margin-top: 1rem;
    justify-content: center;
  }

  .social-icons a {
    margin: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-newsletter form {
    flex-direction: column;
  }

  .footer-newsletter input {
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
  }

  .footer-newsletter button {
    border-radius: var(--border-radius);
    width: 100%;
  }
}
