/* ============================================
   OLHAR 4K — Refinements v1
   Identidade visual, breadcrumbs e polimento
   ============================================ */

/* ==============================
   BREADCRUMB
   ============================== */
.breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  font-size: 0.82rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.breadcrumb-list li + li::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #cbd5e1;
  font-size: 0.75rem;
}

.breadcrumb-list a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
  color: var(--accent-dark);
}

.breadcrumb-list a i {
  font-size: 0.75rem;
  color: var(--accent);
}

.breadcrumb-list li:last-child {
  color: #0f172a;
  font-weight: 600;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 8px 0;
    font-size: 0.75rem;
  }
  .breadcrumb-list li:last-child {
    max-width: 160px;
  }
}

/* ==============================
   STRONGER VISUAL IDENTITY
   ============================== */

/* Subtle pattern overlay on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Decorative accent line under main headings */
.post-header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin-top: 12px;
}

/* Logo hover glow */
.logo:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.3));
}

/* Section headers with decorative top border */
.section-header {
  position: relative;
}

.section-header::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 0 auto 16px;
  opacity: 0.5;
}

.section-header-left::before {
  margin: 0 0 16px;
}

/* Cards: more prominent inner shadow on hover */
.blog-card:hover,
.tur-card:hover,
.partnership-card:hover,
.kit-item:hover {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.12),
    0 0 0 1px rgba(245, 158, 11, 0.08) !important;
}

/* Accent underline on active nav items */
.nav-link.active {
  color: #fff !important;
}

/* Button hover enhancement */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  border-radius: inherit;
}

.btn-primary:hover::after {
  transform: translateX(0);
}

/* Smooth image loading */
img {
  transition: opacity 0.4s ease;
}

/* Better focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Post image entrance animation */
.post-image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.post-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,23,42,0.3) 100%);
  pointer-events: none;
}

/* Hero badges with glow */
.hero-badge,
.tur-hero-badge {
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

/* Smooth transitions on interactive elements */
a, button, .btn {
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card, .tur-card, .kit-item, .partnership-card, .promo-box {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

/* Reading progress glow enhancement */
.reading-progress {
  box-shadow:
    0 0 10px rgba(245, 158, 11, 0.5),
    0 0 20px rgba(245, 158, 11, 0.2);
}

/* ==============================
   TURISMO PAGE REFINEMENTS
   ============================== */
.tur-hero-content h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.tur-hero-content p {
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

/* ==============================
   POST SIDEBAR IMPROVEMENTS
   ============================== */
.sidebar-widget {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--accent-dark);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.sidebar-list a {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-list a:hover {
  color: var(--accent-dark);
  padding-left: 4px;
}

.sidebar-cat-count {
  margin-left: auto;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
}

/* ==============================
   POST COMMENTS IMPROVEMENTS
   ============================== */
.comments-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-title i {
  color: var(--accent);
}

.comments-form {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.comments-form input,
.comments-form textarea {
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.comments-form input:focus,
.comments-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.comments-form textarea {
  min-height: 100px;
  resize: vertical;
}

.comment-item {
  padding: 16px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fafbfc;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-head strong {
  font-size: 0.9rem;
  color: #0f172a;
}

.comment-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.comment-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

.comments-empty {
  text-align: center;
  color: #94a3b8;
  padding: 24px;
  font-size: 0.9rem;
}

/* ==============================
   RESPONSIVE FINE-TUNING
   ============================== */
@media (max-width: 768px) {
  .post-header h1::after {
    width: 40px;
  }

  .section-header::before {
    width: 30px;
  }

  .sidebar-widget {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .breadcrumb-list li:last-child {
    max-width: 120px;
  }
}

/* ==============================
   BOTÃO PARCERIAS (Ver Conteúdo)
   ============================== */
.section-partnerships .btn-outline {
  background: transparent !important;
  border: 2px solid var(--accent-dark) !important;
  color: var(--accent-dark) !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}

.section-partnerships .btn-outline:hover {
  background: var(--accent-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4) !important;
}

/* ==============================
   MODAL DE PARCERIA
   ============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  padding: 40px 36px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.modal-header p {
  color: #64748b;
  font-size: 0.9rem;
}

/* Form */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-field {
  margin-bottom: 0;
}

.modal-form-grid .modal-field {
  margin-bottom: 0;
}



.modal-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.modal-field .required {
  color: #ef4444;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
  background: #fff;
}

.modal-field textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-form-footer {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-form-footer .btn {
  width: 100%;
  justify-content: center;
  max-width: 320px;
}

.modal-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 14px;
  line-height: 1.5;
  max-width: 420px;
}

.modal-note strong {
  color: #64748b;
}

.modal-spinner {
  margin-right: 6px;
}

/* Success state */
.modal-success {
  text-align: center;
  padding: 20px 0;
}

.modal-success-icon {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 16px;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.modal-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.modal-success p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-success .btn {
  min-width: 160px;
  justify-content: center;
}

/* Scrollbar for modal */
.modal-box::-webkit-scrollbar {
  width: 4px;
}

.modal-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

@media (max-width: 500px) {
  .modal-box {
    padding: 28px 20px;
  }

  .modal-form-grid {
    grid-template-columns: 1fr;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }
}

/* ==============================
   BUTTON: open modal trigger
   ============================== */
#openPartnerModal {
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

/* ==============================
   PRINT STYLES
   ============================== */
@media print {
  .breadcrumb,
  .header,
  .footer,
  .back-to-top,
  .cookie-consent,
  .drawer,
  .drawer-overlay,
  .search-overlay,
  .post-sidebar,
  .post-comments,
  .post-nav,
  .newsletter-box,
  .section-partnerships,
  .testimonial-controls {
    display: none !important;
  }

  .post-page {
    padding: 0 !important;
  }

  .post-body {
    font-size: 12pt !important;
    line-height: 1.6 !important;
    color: #000 !important;
  }

  .post-image {
    max-height: 300px !important;
    page-break-inside: avoid;
  }
}

/* ==============================
   WIDGET EMBED (Busca de Hotéis)
   ============================== */
.widget-embed {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.widget-embed > * {
  max-width: 100%;
}

.widget-embed input,
.widget-embed select,
.widget-embed button {
  font-family: inherit;
}

@media (max-width: 768px) {
  .widget-embed {
    padding: 12px;
    border-radius: 14px;
  }
}

.footer-bottom-links {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: var(--accent, #f59e0b);
}

@media (max-width: 480px) {
  .widget-embed {
    padding: 8px;
    border-radius: 10px;
  }
}
