/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

a {
  color: #1e40af;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #8b5cf6;
}

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

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

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1e293b;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* Header */
.header {
  background-color: #1e40af;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

.logo a {
  color: white;
}

.nav {
  display: flex;
}

.nav-item {
  margin-left: 1.5rem;
  color: white;
}

.nav-item:hover {
  color: #c7d2fe;
}

.nav-item.cta {
  background-color: #8b5cf6;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

.nav-item.cta:hover {
  background-color: #6366f1;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #1e40af, #6366f1);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-radius: 0.5rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: white;
  color: #1e40af;
}

.btn-primary:hover {
  background-color: #f1f5f9;
}

.btn-secondary {
  background-color: #8b5cf6;
  color: white;
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Card Sections */
.section {
  margin-bottom: 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

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

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

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

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-text {
  color: #64748b;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
}

/* Two Column Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 1.5rem;
}

/* Book and Product Cards */
.product-card {
  display: flex;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.product-image {
  width: 100px;
  min-width: 100px;
  margin-right: 1rem;
}

.product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-details {
  flex: 1;
}

.product-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.product-author {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Newsletter Section */
.newsletter {
  background-color: #f1f5f9;
  padding: 3rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 4rem;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Category Pills */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.category-pill {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.category-pill:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.category-description {
  font-size: 0.875rem;
  color: #64748b;
}

/* Footer */
.footer {
  background-color: #1e293b;
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-column h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: #cbd5e1;
}

.footer-link a:hover {
  color: white;
}

.footer-newsletter {
  margin-bottom: 1.5rem;
}

.footer-newsletter p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-input {
  padding: 0.75rem 1rem;
  background-color: #334155;
  border: none;
  border-radius: 0.25rem;
  color: white;
}

.footer-input::placeholder {
  color: #94a3b8;
}

.footer-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #6366f1;
}

.footer-button {
  padding: 0.75rem 1rem;
  background-color: #8b5cf6;
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-button:hover {
  background-color: #6366f1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Article Page */
.article {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.article-meta span {
  margin-right: 1rem;
}

.article-image {
  margin-bottom: 2rem;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.article-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.article-content blockquote {
  border-left: 4px solid #8b5cf6;
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #4b5563;
}

.article-author {
  display: flex;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.author-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

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

.author-bio h4 {
  margin-bottom: 0.25rem;
}

.author-bio p {
  color: #64748b;
  margin-bottom: 0;
}

.related-articles {
  margin-top: 3rem;
}

.related-articles h3 {
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.related-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.related-excerpt {
  color: #64748b;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.product-recommendations {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.product-recommendations h3 {
  margin-bottom: 1.5rem;
}

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

.product-item {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.product-item-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-item-image img {
  max-height: 100%;
  width: auto;
}

.product-item-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-item-link {
  color: #1e40af;
  font-weight: 600;
}

/* Comments Section */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.comments h3 {
  margin-bottom: 1.5rem;
}

.comment-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-item {
    margin: 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .article-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .product-image {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
