/* ==========================================
   ECONOMIZE COM APP - CSS GLOBAL
   Mobile-first | Profissional | Clean
   ========================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #334155;
  background-color: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #10B981;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #059669;
}

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

h1, h2, h3, h4 {
  color: #1E293B;
  line-height: 1.3;
}

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

/* ==========================================
   HEADER / NAV
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  height: 70px;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo:hover {
  color: #1E293B;
}

.logo span {
  color: #10B981;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #10B981;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #10B981;
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1E293B;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 8px 20px 20px;
  z-index: 999;
}

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

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid #F1F5F9;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: #10B981;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .hamburger {
    display: none;
  }
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
main {
  margin-top: 70px;
  min-height: calc(100vh - 270px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0F9FF 50%, #F5F3FF 100%);
  padding: 48px 0;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  color: #1E293B;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero h1 span {
  color: #10B981;
}

.hero p {
  font-size: 1.05rem;
  color: #64748B;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero {
    padding: 72px 0;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .hero p {
    font-size: 1.15rem;
  }
}

/* ==========================================
   FEED LAYOUT (Home)
   ========================================== */
.feed-section {
  padding: 40px 0 60px;
}

.section-title {
  font-size: 1.5rem;
  color: #1E293B;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin-left: 16px;
}

.feed-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .feed-layout {
    grid-template-columns: 1fr 340px;
  }
}

/* ==========================================
   POST CARDS
   ========================================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 540px) {
  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.post-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.post-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.post-card-image::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.post-card-image.cashback {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.post-card-image.cupons {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.post-card-image.renda-extra {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.post-card-body {
  padding: 20px;
}

.post-card-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.post-card-category.cashback {
  background: #ECFDF5;
  color: #059669;
}

.post-card-category.cupons {
  background: #EFF6FF;
  color: #1D4ED8;
}

.post-card-category.renda-extra {
  background: #F5F3FF;
  color: #6D28D9;
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-card-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: #10B981;
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card-meta {
  font-size: 0.78rem;
  color: #94A3B8;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #10B981;
  transition: gap 0.2s ease;
}

.read-more:hover {
  gap: 8px;
  color: #059669;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #E2E8F0;
}

.sidebar-widget h3 {
  font-size: 1.05rem;
  color: #1E293B;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #10B981;
  font-weight: 700;
}

.sidebar-widget p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.6;
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  border-bottom: 1px solid #E2E8F0;
}

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

.sidebar-widget ul li a {
  color: #475569;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-widget ul li a:hover {
  color: #10B981;
  padding-left: 4px;
}

.category-count {
  background: #E2E8F0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  color: #64748B;
}

/* ==========================================
   SINGLE POST PAGE
   ========================================== */
.post-header-banner {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.post-header-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 160%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.post-header-banner.cashback {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

.post-header-banner.cupons {
  background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
}

.post-header-banner.renda-extra {
  background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%);
}

@media (min-width: 768px) {
  .post-header-banner {
    height: 360px;
    font-size: 5.5rem;
  }
}

.post-content-wrapper {
  padding: 40px 0 60px;
}

.post-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .post-content-layout {
    grid-template-columns: 1fr 320px;
  }
}

/* Post article content */
.post-content {
  max-width: 100%;
  overflow-wrap: break-word;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.post-meta-bar span {
  font-size: 0.85rem;
  color: #94A3B8;
}

.post-content h1 {
  font-size: 1.6rem;
  color: #1E293B;
  margin-bottom: 20px;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .post-content h1 {
    font-size: 2.15rem;
  }
}

.post-content h2 {
  font-size: 1.3rem;
  color: #1E293B;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F1F5F9;
}

.post-content h3 {
  font-size: 1.1rem;
  color: #334155;
  margin: 28px 0 12px;
}

.post-content p {
  margin-bottom: 18px;
  color: #475569;
  line-height: 1.8;
  font-size: 1rem;
}

.post-content ul,
.post-content ol {
  margin: 16px 0 20px;
  padding-left: 28px;
}

.post-content li {
  margin-bottom: 10px;
  color: #475569;
  line-height: 1.7;
}

.post-content strong {
  color: #1E293B;
  font-weight: 600;
}

.post-content blockquote {
  border-left: 4px solid #10B981;
  padding: 16px 20px;
  background: #F0FDF4;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  color: #475569;
  font-style: italic;
}

.post-cta {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 28px;
  margin-top: 40px;
  text-align: center;
}

.post-cta h3 {
  color: #1E293B;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.post-cta p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.post-cta a {
  font-weight: 600;
}

/* ==========================================
   CATEGORY PAGE
   ========================================== */
.category-header {
  padding: 40px 0;
  text-align: center;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.category-header h1 {
  font-size: 1.75rem;
  color: #1E293B;
  margin-bottom: 8px;
}

.category-header p {
  color: #64748B;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .category-header h1 {
    font-size: 2.25rem;
  }
}

.category-posts {
  padding: 40px 0 60px;
}

.category-posts .container {
  max-width: 960px;
}

/* ==========================================
   STATIC PAGES
   ========================================== */
.page-section {
  padding: 40px 0 60px;
}

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

.page-content h1 {
  font-size: 1.75rem;
  color: #1E293B;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid #10B981;
}

@media (min-width: 768px) {
  .page-content h1 {
    font-size: 2.25rem;
  }
}

.page-content h2 {
  font-size: 1.35rem;
  color: #1E293B;
  margin: 36px 0 16px;
}

.page-content h3 {
  font-size: 1.15rem;
  color: #334155;
  margin: 28px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  color: #475569;
  line-height: 1.8;
}

.page-content ul,
.page-content ol {
  margin: 16px 0;
  padding-left: 28px;
}

.page-content ul li,
.page-content ol li {
  margin-bottom: 10px;
  color: #475569;
  line-height: 1.7;
}

.page-content ul li strong,
.page-content ol li strong {
  color: #1E293B;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-info {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.contact-info p {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #334155;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 12px 36px;
  background: #10B981;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  font-family: inherit;
}

.btn:hover {
  background: #059669;
  color: #FFFFFF;
}

.btn:active {
  transform: scale(0.97);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #1E293B;
  color: #CBD5E1;
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-logo span {
  color: #10B981;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #10B981;
}

.footer-copy {
  font-size: 0.82rem;
  color: #64748B;
  padding-top: 20px;
  border-top: 1px solid #334155;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: #94A3B8;
}

.breadcrumb a {
  color: #64748B;
}

.breadcrumb a:hover {
  color: #10B981;
}

.breadcrumb span {
  margin: 0 6px;
  color: #CBD5E1;
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center {
  text-align: center;
}

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