/*
Theme Name: YUHA! Blog Theme
Description: Tema personalizado para o blog da YUHA! - plataforma de marketing e analytics
Version: 1.0
Author: YUHA! Team
Text Domain: yuha-blog
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1); /* Equivalente ao shadow-md do Tailwind */
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.site-logo img {
  height: 38px;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #fa6101;
}

/* Blog Layout */
.blog-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.main-content {
  background: white;
}

.sidebar {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  height: fit-content;
  top: 2rem;
  box-sizing: border-box;
}

@media (max-width: 500px) {
  .sidebar {
    padding: 10px;
  }
}

/* Post Cards */
.post-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

@media (max-width: 500px) {
  .post-meta {
    flex-direction: column;
  }

  .post-content {
    padding: 0;
  }
}

.post-category {
  background: #fa6101;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
}

.post-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #13293d;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: #fa6101;
}

.post-excerpt {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  background: #13293d;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background: #fa6101;
  color: white;
}

/* Single Post */

.single-post .post-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.single-post .post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.single-post .post-content h2 {
  color: #13293d;
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
}

.single-post .post-content h3 {
  color: #13293d;
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #13293d 0%, #004aad 50%, #006494 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
}

.cta-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  background: #fa6101;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: #e55501;
  transform: translateY(-2px);
  color: white;
}

/* Footer */
.footer {
  background-color: #13293d;
  color: white;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-left {
    grid-column: span 2;
  }
}

.footer-logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: #94a3b8;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: #94a3b8;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #fa6101;
}

.footer-bottom {
  border-top: 1px solid #006494;
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
  }
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-link {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #fa6101;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .single-post .post-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }
}

/* Widget Styles */
.widget {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .widget {
    padding: 10px;
  }
}

.widget-title {
  color: #13293d;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #fa6101;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: #fa6101;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: #64748b;
  background: white;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #fa6101;
  color: white;
  border-color: #fa6101;
}

.pagination .current {
  background: #13293d;
  color: white;
  border-color: #13293d;
}

/* Comments */
.comments-area {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.comments-title {
  color: #13293d;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.comment {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #fa6101;
}

.comment-author {
  font-weight: bold;
  color: #13293d;
  margin-bottom: 0.5rem;
}

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

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #13293d;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fa6101;
  box-shadow: 0 0 0 3px rgba(250, 97, 1, 0.1);
}

.submit-button {
  background: #fa6101;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background: #e55501;
}

/* Archive Pages */
.archive-header {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #13293d 0%, #004aad 100%);
  color: white;
  margin-bottom: 3rem;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.archive-description {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 5rem 2rem;
}

.error-404 h1 {
  font-size: 6rem;
  color: #fa6101;
  font-weight: bold;
  margin-bottom: 2rem;
}

.error-404 h2 {
  font-size: 2rem;
  color: #13293d;
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 2rem;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print Styles */
@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .cta-section {
    display: none;
  }

  .blog-container {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* Estilo botão hamburguer */
.mobile-menu-button {
  background: none;
  border: none;
  font-size: 2rem;
  color: #000;
  display: none;
  cursor: pointer;
}

/* Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 280px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 2rem 1rem;
  transition: right 0.3s ease-in-out;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.mobile-sidebar .cta-header-button {
  background: #fa6101;
  color: white;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: block;
  text-align: center;
}

.mobile-sidebar a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-menu-close svg,
#mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-sidebar .close-sidebar {
  background: none;
  border: none;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
  text-align: left;
}

/* Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.mobile-overlay.active {
  display: block;
}

/* Responsivo */
@media (max-width: 768px) {
  .mobile-menu-button {
    display: inline-block;
  }

  .main-navigation,
  .header-actions {
    display: none;
  }
}
