/* BoraSair.pt - Premium Modern CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --brand-coral: #FF5A36;
  --brand-orange: #FF7A00;
  --brand-gradient: linear-gradient(135deg, #FF5A36 0%, #FF7A00 100%);
  --brand-gradient-hover: linear-gradient(135deg, #E0484D 0%, #E66E00 100%);
  
  --bg-main: #F6F8FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F3F5;
  --bg-dark: #1E242B;
  
  --text-dark: #1E242B;
  --text-muted: #6C7A89;
  --text-light: #9EA8B3;
  --text-white: #FFFFFF;
  
  --accent-free: #10B981;
  --accent-free-bg: #ECFDF5;
  --accent-featured: #FF7A00;
  --accent-expired: #9CA3AF;
}

/* Rule for Expired Events (Grayscale for 48 Hours) */
.card-pin.recently-expired {
  filter: grayscale(100%) !important;
  opacity: 0.8 !important;
  border: 1px solid #CBD5E1 !important;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.card-pin.recently-expired img {
  filter: grayscale(100%) !important;
}
.card-pin.recently-expired:hover {
  filter: grayscale(30%) !important;
  opacity: 0.95 !important;
}
.card-pin.recently-expired:hover img {
  filter: grayscale(30%) !important;
}  

:root {
  --border-color: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --shadow-hover: 0 16px 32px rgba(255, 90, 54, 0.18);
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1320px;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo .logo-main {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo .logo-extension {
  color: var(--text-dark);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-coral);
  background-color: rgba(255, 90, 54, 0.08);
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 90, 54, 0.25);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 54, 0.35);
  background: var(--brand-gradient-hover);
}

/* Auto Update Status Bar */
.update-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.update-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* Hero Section */
.hero-section {
  padding: 40px 0 30px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 90, 54, 0.06) 0%, transparent 70%);
}

.hero-title {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px auto;
  font-weight: 400;
}

/* Search Bar */
.search-wrapper {
  max-width: 680px;
  margin: 0 auto 24px auto;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.search-box:focus-within {
  border-color: var(--brand-coral);
  box-shadow: 0 8px 24px rgba(255, 90, 54, 0.15);
}

.search-icon {
  font-size: 20px;
  color: var(--text-muted);
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--text-dark);
}

.search-btn {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-btn:hover {
  opacity: 0.95;
}

/* Scrollable Filter Chips Bar - FIXED FULL VISIBILITY */
.pills-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 8px;
  justify-content: flex-start !important; /* CRITICAL FIX: prevent cut-off */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.pills-container::-webkit-scrollbar {
  height: 6px;
}

.pills-container::-webkit-scrollbar-thumb {
  background: rgba(255, 90, 54, 0.3);
  border-radius: var(--radius-full);
}

.pills-container::-webkit-scrollbar-thumb:hover {
  background: var(--brand-coral);
}

.pill-chip {
  white-space: nowrap;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  flex-shrink: 0;
}

.pill-chip:hover {
  border-color: var(--brand-coral);
  color: var(--brand-coral);
  transform: translateY(-2px);
}

.pill-chip.active {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.25);
}

/* Section Controls & Headers */
.section-block {
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-emoji {
  font-size: 28px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* "Ver Mais +" Section Action Button */
.see-more-container {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-see-more {
  background: var(--bg-card);
  color: var(--brand-coral);
  border: 2px solid var(--brand-coral);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-see-more:hover {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 54, 0.3);
}

/* Grid Slider Container & Navigation Arrows */
.grid-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.grid-slider-wrapper .pinterest-grid {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 6px 2px;
}

.grid-slider-wrapper .pinterest-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.grid-slider-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  z-index: 10;
}

.grid-slider-arrow:hover {
  background: var(--brand-coral);
  color: white;
  border-color: var(--brand-coral);
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(255, 90, 54, 0.35);
}

.grid-slider-arrow:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .grid-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* Pinterest Masonry Grid */
.pinterest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1200px) {
  .pinterest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .pinterest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .pinterest-grid {
    grid-template-columns: 1fr;
  }
}

/* Event Card */
.card-pin {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.card-pin:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 90, 54, 0.3);
}

.card-media {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  background: var(--bg-subtle);
}

.card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-pin:hover .card-media img {
  transform: scale(1.06);
}

.card-fallback-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
}

.card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  line-height: 1.2;
}

/* 24-Hour NEW Mini Tag Badge */
.badge-new {
  background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
  color: white;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 12px rgba(249, 115, 22, 0.8); }
}

.badge-featured {
  background: linear-gradient(135deg, #FF7A00 0%, #FF5A36 100%);
  color: white;
}

.badge-free {
  background: var(--accent-free);
  color: white;
}

.badge-price {
  background: rgba(30, 36, 43, 0.88);
  backdrop-filter: blur(4px);
  color: white;
}

.badge-audience {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--brand-coral);
  font-weight: 700;
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
}

.card-location-text {
  color: var(--text-dark);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.card-action-btn {
  color: var(--brand-coral);
  font-weight: 800;
  font-size: 13px;
}

/* Modal View */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 20, 23, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--brand-coral);
  color: white;
  border-color: transparent;
}

.modal-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px;
}

.modal-main-col h2 {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.modal-why-box {
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.08) 0%, rgba(255, 122, 0, 0.08) 100%);
  border-left: 4px solid var(--brand-coral);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}

.modal-why-box h4 {
  color: var(--brand-coral);
  font-size: 16px;
  margin-bottom: 6px;
}

.modal-why-box p {
  font-size: 15px;
  font-style: italic;
  color: var(--text-dark);
}

.modal-desc-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.modal-sidebar-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.modal-meta-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-meta-icon {
  font-size: 22px;
}

.modal-meta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-action-link {
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

/* Footer Section */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 30px 0;
  margin-top: 80px;
  border-top: 4px solid var(--brand-coral);
}

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

.footer-brand-title {
  color: white;
  font-size: 28px;
  margin-bottom: 14px;
}

.footer-desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

.footer-heading {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--brand-coral);
  border-radius: 2px;
}

.footer ul, .footer ol, .footer-links-list {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-links-list a {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--brand-coral);
  padding-left: 4px;
}

.newsletter-form-container {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.newsletter-form-container input[type="email"] {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  border: 1px solid #2D3540;
  background: #1A1F26;
  color: white;
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-form-container input[type="email"]:focus {
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.2);
}

.newsletter-form-container button {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.newsletter-form-container button:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-title { font-size: 36px; }
  .modal-content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 28px; }
  .search-box { padding: 4px 6px 4px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
