@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Cores Principais */
  --artsy-red: #FF385C;
  --dark-navy: #222222;
  --soft-white: #F7F7F7;
  --mint-green: #00A699;
  
  /* Gradientes */
  --hero-gradient: linear-gradient(135deg, rgba(34, 34, 34, 0.9) 0%, rgba(34, 34, 34, 0.4) 100%);
  --red-gradient: linear-gradient(135deg, #FF385C 0%, #D81B4B 100%);

  /* Neutros */
  --text-dark: #222222;
  --text-gray: #717171;
  --border-color: #DDDDDD;
  --bg-white: #FFFFFF;
  --bg-gray: #F7F7F7;

  /* Efeitos */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --hover-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------------- HEADER ---------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--hover-transition);
}

.logo-container h1 {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--artsy-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: var(--artsy-red);
}

.btn-primary {
  background: var(--red-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--hover-transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--dark-navy);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--hover-transition);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--bg-gray);
}

.btn-success {
  background: var(--mint-green);
  color: white;
}

.btn-success:hover {
  background: #008f82;
}

/* ---------------- HERO SECTION ---------------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: var(--hero-gradient), url('https://images.unsplash.com/photo-1512918728675-ed5a9ecdebfd?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  padding: 0 5%;
}

.hero-content {
  max-width: 600px;
  color: white;
  animation: fadeUp 0.8s ease-out;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* ---------------- CATEGORIES / FEATURES ---------------- */
.section {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

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

.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--hover-transition);
  border: 1px solid var(--border-color);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--artsy-red);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--artsy-red);
  margin-bottom: 1.5rem;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ---------------- BLOG GRID ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--hover-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: var(--hover-transition);
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-img-wrapper {
  overflow: hidden;
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  color: var(--artsy-red);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Faz o link do título expandir e cobrir todo o card (imagem, texto, padding) */
.blog-title a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.blog-excerpt {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* ---------------- NEWSLETTER ---------------- */
.newsletter {
  background: var(--dark-navy);
  color: white;
  text-align: center;
  padding: 5rem 5%;
}

.newsletter h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter p {
  color: #aaa;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

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

.newsletter-form input {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.newsletter-form button {
  border-radius: 30px;
}

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--bg-white);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  color: var(--artsy-red);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.footer-about p {
  color: var(--text-gray);
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-gray);
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-gray);
  font-size: 0.875rem;
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none; /* Em um setup real, criaria um menu hamburger */
  }
  .newsletter-form {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ---------------- ARTICLE PAGES ---------------- */
.page-header {
  background: var(--dark-navy);
  color: white;
  padding: 6rem 5% 4rem;
  text-align: center;
  animation: fadeUp 0.8s ease-out;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.article-meta i {
  color: var(--artsy-red);
}

.article-container {
  max-width: 900px;
  margin: -3rem auto 5rem;
  background: var(--bg-white);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 5;
}

.article-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.article-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

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

.article-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 3.5rem 0 1.5rem;
  color: var(--dark-navy);
  position: relative;
}

.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 4px;
  background: var(--red-gradient);
  border-radius: 2px;
}

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

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

/* Custom Boxes */
.summary-box, .tip-box, .cta-box {
  padding: 2.5rem;
  border-radius: 20px;
  margin: 3rem 0;
}

.summary-box {
  background: #f8f9fa;
  border-left: 6px solid var(--artsy-red);
}

.summary-box h3 {
  margin-bottom: 1.5rem;
  color: var(--artsy-red);
}

.tip-box {
  background: #fff8e1;
  border: 1px dashed #ffd54f;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tip-box i {
  font-size: 2rem;
  color: #ffa000;
}

.cta-box {
  background: var(--dark-navy);
  color: white;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-box p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Related Posts */
.related-posts {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.related-card {
  background: var(--bg-gray);
  padding: 1.5rem;
  border-radius: 16px;
  transition: var(--hover-transition);
  border: 1px solid transparent;
}

.related-card:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--artsy-red);
}

.related-card span {
  font-size: 0.8rem;
  color: var(--artsy-red);
  font-weight: 700;
  text-transform: uppercase;
}

.related-card p {
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
  .article-container {
    margin: -2rem 5% 5rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding-top: 4rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  .article-img {
    height: 300px;
  }
  .article-content {
    font-size: 1.05rem;
  }
}
