/*
Theme Name: 999 Viagens
Theme URI: https://999viagens.com.br
Description: Tema customizado para o blog da 999 Viagens
Version: 3.0
Author: 999 Viagens
*/

:root {
  --white: #fff;
  --blue: #1e90ff;
  --blue-dark: #1873cc;
  --navy: #0f2b4a;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f5;
  --gray-200: #e2e5e9;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: .2s ease;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body { font-family: var(--font); color: var(--gray-700); background: var(--gray-50); line-height: 1.6; }

.main { min-height: 100vh; display: flex; flex-direction: column; }

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

/* ===== HEADER ===== */
.header {
  width: 100%; padding: 0 2rem; height: 72px;
  background: var(--white); display: flex; align-items: center;
  box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000;
}
.header-container { display: flex; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; justify-content: space-between; }
.logo img { height: 36px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-menu { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-menu li { min-width: 80px; text-align: center; }
.nav-menu a { color: var(--gray-500); text-decoration: none; font-weight: 500; font-size: 15px; transition: color var(--transition); }
.nav-menu a:hover { color: var(--blue); }

.google-login-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 24px;
  border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white);
  color: var(--gray-700); font-family: var(--font); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.google-login-btn:hover { box-shadow: var(--shadow-sm); background: var(--gray-50); color: var(--gray-700); }
.google-login-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== TRANSPORT TABS ===== */
.transport-tabs { display: flex; justify-content: center; gap: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.transport-tab {
  display: flex; align-items: center; gap: 8px; padding: 14px 28px;
  border: none; border-bottom: 2px solid transparent; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--gray-500);
  transition: all var(--transition); text-decoration: none; font-family: var(--font);
}
.transport-tab:hover { color: var(--blue); border-bottom-color: var(--blue); }
.transport-icon { width: 18px; height: 18px; object-fit: contain; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; flex: 1; }

/* ===== HERO ===== */
.hero-section {
  padding: 72px 20px 56px;
  background: linear-gradient(135deg, #0f2b4a 0%, #1e90ff 50%, #47a3ff 100%);
  text-align: center;
}
.hero-title-main {
  max-width: 780px; margin: 0 auto 18px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2; color: var(--white); font-weight: 400; letter-spacing: -.02em;
}
.hero-title-main strong { font-weight: 700; color: var(--white); }
.hero-description { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 540px; margin: 0 auto 28px; line-height: 1.6; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 28px; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.55); }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.btn-primary {
  background: var(--blue); color: var(--white); padding: 11px 28px; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none; transition: background var(--transition);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  background: transparent; color: var(--white); padding: 11px 28px; border-radius: 8px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.25); transition: all var(--transition);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }

/* ===== POSTS SECTION ===== */
.posts-section { padding: 48px 20px 56px; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--gray-900);
  text-align: center; margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.25;
}
.section-subtitle { text-align: center; color: var(--gray-500); font-size: .9rem; margin-bottom: 28px; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; }
.search-box {
  position: relative; flex: 0 1 280px;
}
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.search-box input {
  width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--gray-200);
  border-radius: 8px; font-size: 14px; font-family: var(--font); background: var(--white);
  transition: border-color var(--transition); color: var(--gray-700);
}
.search-box input::placeholder { color: var(--gray-400); }
.search-box input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,144,255,.12); }

.category-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-btn {
  padding: 7px 16px; border: 1px solid var(--gray-200); border-radius: 20px;
  background: var(--white); color: var(--gray-500); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.cat-btn:hover { border-color: var(--blue); color: var(--blue); }
.cat-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ===== FEATURED POST ===== */
.featured-post {
  margin-bottom: 24px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.featured-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.featured-link { display: grid; grid-template-columns: 1.1fr 1fr; text-decoration: none; color: inherit; }
.featured-image-wrap { position: relative; overflow: hidden; min-height: 320px; }
.featured-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.featured-post:hover .featured-img { transform: scale(1.04); }
.featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--blue); color: var(--white); padding: 5px 14px;
  border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.featured-content { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-content .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--gray-500); }
.featured-title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-weight: 700; color: var(--gray-900);
  line-height: 1.3; margin-bottom: 12px; letter-spacing: -.01em;
}
.featured-excerpt { color: var(--gray-500); font-size: .95rem; line-height: 1.65; margin-bottom: 20px; }

.cat-tag {
  background: rgba(30,144,255,.1); color: var(--blue); padding: 3px 10px;
  border-radius: 12px; font-size: 12px; font-weight: 600;
}

.read-more-btn {
  display: inline-block; background: var(--blue); color: var(--white); padding: 10px 24px;
  border-radius: 8px; font-weight: 600; font-size: 14px; transition: background var(--transition);
  text-align: center;
}
.read-more-btn:hover { background: var(--blue-dark); }

/* ===== BLOG GRID ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-link { text-decoration: none; color: inherit; display: block; }
.image-container { position: relative; width: 100%; height: 180px; overflow: hidden; }
.post-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .post-image { transform: scale(1.04); }
.card-content { padding: 16px; }
.card-content .meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--gray-400); }
.post-title { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 6px; line-height: 1.35; }
.excerpt { color: var(--gray-500); line-height: 1.55; margin-bottom: 12px; font-size: .875rem; }
.read-more-link { color: var(--blue); font-weight: 600; font-size: .875rem; transition: color var(--transition); }
.read-more-link:hover { color: var(--blue-dark); }
.read-time { color: var(--gray-400); }

.no-results { text-align: center; padding: 48px 0; color: var(--gray-500); font-size: 1rem; }

/* ===== CTA BOTTOM ===== */
.cta-bottom { background: var(--white); border-top: 3px solid var(--blue); padding: 44px 20px; text-align: center; }
.cta-bottom h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.cta-bottom p { color: var(--gray-500); margin-bottom: 16px; font-size: .9rem; }

/* ===== PAGINATION ===== */
.pagination { margin: 24px 0; text-align: center; }
.pagination ul { display: flex; justify-content: center; gap: 6px; list-style: none; }
.pagination a, .pagination span {
  display: block; padding: 9px 16px; background: var(--white); color: var(--blue);
  border: 1px solid var(--gray-200); border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 14px; transition: all var(--transition);
}
.pagination a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ===== SINGLE POST ===== */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.post-main { min-width: 0; }

article { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-sm); }
article h1 { font-size: 2.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; line-height: 1.2; letter-spacing: -.02em; }
article .meta { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
article .featured-image { width: 100%; margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; }
article .featured-image img { width: 100%; display: block; }
article .content { font-size: 1.0625rem; line-height: 1.8; color: var(--gray-700); }
article .content h2 {
  font-size: 1.625rem; font-weight: 700; color: var(--navy); margin: 2.5rem 0 1.25rem;
  padding: .75rem 1.25rem; background: var(--gray-50); border-left: 3px solid var(--blue); border-radius: 4px;
}
article .content h3 { font-size: 1.375rem; font-weight: 600; color: var(--navy); margin: 2rem 0 .75rem; padding-left: .75rem; border-left: 3px solid var(--blue); }
article .content p { margin-bottom: 1.25rem; }
article .content strong { font-weight: 600; color: var(--blue); }
article .content ul, article .content ol { margin: 1.25rem 0; padding-left: 0; list-style: none; }
article .content li { margin-bottom: .75rem; line-height: 1.7; padding-left: 1.75rem; position: relative; }
article .content ul li::before { content: "•"; color: var(--blue); font-weight: bold; font-size: 1.1em; position: absolute; left: .5rem; }
article .content li strong {
  display: inline-block; font-weight: 600; color: var(--navy); background: var(--gray-50);
  padding: .3rem .6rem; border-radius: 6px; margin-bottom: .3rem; border-left: 3px solid var(--blue);
  font-size: 1.02em; transition: transform var(--transition);
}
article .content li:hover strong { transform: translateX(3px); }
article .content blockquote { border-left: 3px solid var(--blue); padding: .75rem 1.25rem; margin: 1.5rem 0; background: var(--gray-50); font-style: italic; color: var(--gray-500); border-radius: 0 4px 4px 0; }
article .content a { color: var(--blue); text-decoration: none; font-weight: 600; transition: color var(--transition); }
article .content a:hover { color: var(--blue-dark); }
article .content hr { border: none; border-top: 1px solid var(--gray-200); margin: 2.5rem 0 1.5rem; }

article .content > ul:last-of-type {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.25rem 0; list-style: none;
}
article .content > ul:last-of-type::before {
  content: "📚 Leia Também"; display: block; font-size: 1.125rem; font-weight: 700;
  color: var(--navy); margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--blue);
}
article .content > ul:last-of-type li { margin-bottom: .5rem; padding-left: 1.5rem; }
article .content > ul:last-of-type li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: bold; }
article .content > ul:last-of-type li a { color: var(--navy); font-weight: 500; font-size: .95rem; }
article .content > ul:last-of-type li a:hover { color: var(--blue); }

/* ===== SIDEBAR ===== */
.post-sidebar { position: sticky; top: 92px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.sidebar-widget h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.related-posts { display: flex; flex-direction: column; gap: 10px; }
.related-post-card {
  display: flex; gap: 10px; padding: .625rem; border-radius: 8px;
  transition: all var(--transition); text-decoration: none; border: 1px solid var(--gray-200);
}
.related-post-card:hover { background: var(--gray-50); transform: translateX(3px); }
.related-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.related-content h4 { font-size: .8125rem; font-weight: 600; color: var(--navy); margin-bottom: .375rem; line-height: 1.3; }
.related-date { font-size: 12px; color: var(--gray-400); }
.cta-widget { background: var(--blue); color: var(--white); }
.cta-widget h3 { color: var(--white); }
.cta-widget p { color: var(--white); margin-bottom: 10px; font-size: 14px; }
.sidebar-cta-btn {
  display: block; background: var(--white); color: var(--blue); padding: 10px 20px;
  border-radius: 8px; font-weight: 700; text-align: center; text-decoration: none;
  font-size: 14px; transition: opacity var(--transition);
}
.sidebar-cta-btn:hover { opacity: .85; }

/* ===== FOOTER ===== */
.footer { border-top: 3px solid var(--blue); background: var(--white); padding: 40px 0 28px; margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; font-size: .9rem; padding: 0 2rem; color: var(--gray-700); }
.footer-col { flex: 1 1 220px; }
.footer h4 { font-size: 14px; font-weight: 600; margin: 20px 0 6px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 6px; }
.footer a { color: var(--gray-700); text-decoration: none; transition: color var(--transition); }
.footer a:hover { color: var(--blue); }
.footer-bottom { text-align: center; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--gray-200); color: var(--gray-500); font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-link { grid-template-columns: 1fr; }
  .featured-image-wrap { min-height: 220px; }
  .featured-content { padding: 24px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 768px) {
  .header { padding: 0 1rem; height: 64px; }
  .logo img { height: 32px; }
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: 14px; }
  .hero-section { padding: 48px 1rem 40px; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 1.25rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 8px; }
  .btn-primary, .btn-secondary { width: 60%; max-width: 240px; text-align: center; }
  .posts-section { padding: 36px 1rem; }
  .filter-bar { flex-direction: column; }
  .search-box { flex: 1 1 100%; width: 100%; }
  .category-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .category-filters::-webkit-scrollbar { display: none; }
  .cat-btn { white-space: nowrap; flex-shrink: 0; }
  .image-container { height: 150px; }
  .footer-inner { flex-direction: column; gap: 28px; padding: 0 1rem; }
  article { padding: 1.75rem 1.25rem; }
  article h1 { font-size: 1.625rem; }
  article .content { font-size: 1rem; }
  article .content h2 { font-size: 1.375rem; }
  .related-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
  .header { padding: 0 .75rem; height: 56px; }
  .logo img { height: 28px; }
  .hero-section { padding: 36px .75rem 28px; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.125rem; }
  .stat-label { font-size: 11px; }
  .btn-primary, .btn-secondary { width: 70%; max-width: 200px; padding: 10px 20px; font-size: 13px; }
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  .image-container { height: 190px; }
  .cta-bottom { padding: 32px .75rem; }
  .cta-bottom h2 { font-size: 1.1rem; }
  .footer { padding: 24px 0 16px; }
  .related-posts { grid-template-columns: 1fr; }
}
