/**
 * FleetCalc Pro - Sponsors Directory Styles
 * Modern Cockpit Dark Theme with high contrast, accessible typography, and smooth responsiveness.
 */

:root {
  --sp-bg: #080d16;
  --sp-panel: #111827;
  --sp-card-bg: #151e2e;
  --sp-card-border: #233044;
  --sp-card-hover: #1e293b;
  --sp-accent-orange: #ff9800;
  --sp-accent-cyan: #38bdf8;
  --sp-text: #f1f5f9;
  --sp-muted: #94a3b8;
  --sp-line: #1e293b;
}

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body.sponsors-body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #162235 0%, #080d16 65%);
  color: var(--sp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
}

.sponsors-app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Header */
.sponsors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  margin-bottom: 24px;
}

.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.brand-accent {
  color: var(--sp-accent-orange);
}

.back-link {
  color: var(--sp-accent-cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.lang-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-label {
  font-size: 12px;
  color: var(--sp-muted);
}

/* Listboxes / Selects (Item 10.1: Fonte maior de 15px) */
.form-select,
.filters-grid select,
.filter-group select,
.lang-select {
  font-size: 15px !important;
  height: 42px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  box-sizing: border-box;
}

.filters-grid input.form-input {
  font-size: 15px !important;
  height: 42px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px 12px;
  box-sizing: border-box;
}

/* Company Card Distinct Elements (Item 10) */
.sponsor-company-logo-rect {
  width: 100%;
  height: 85px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  box-sizing: border-box;
  margin: 8px 0 12px 0;
  border: 1px solid #334155;
  overflow: hidden;
}

.sponsor-company-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.badge-featured-top {
  display: inline-block;
  align-self: flex-start;
  background: var(--sp-accent-orange);
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.company-title-blue {
  color: #38bdf8 !important;
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.company-tagline-blue {
  color: #7dd3fc !important;
  font-size: 12.5px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.45;
}

/* Hero */
.hero-section {
  text-align: center;
  margin-bottom: 28px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--sp-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Search Bar */
.search-section {
  margin-bottom: 20px;
}

.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  color: var(--sp-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 30px;
  padding: 14px 44px 14px 46px;
  font-size: 15px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--sp-accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--sp-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  display: none;
}

/* Filters Panel */
.filters-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filters-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
}

.results-count-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-muted);
}

.active-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid var(--sp-accent-orange);
  color: #ffb74d;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-remove-btn {
  cursor: pointer;
  font-weight: 900;
  color: #ffffff;
}

/* Section Headings */
.section-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Carousel */
.featured-carousel-section {
  margin-bottom: 36px;
}

.carousel-nav-controls {
  display: flex;
  gap: 8px;
}

.carousel-arrow-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.carousel-arrow-btn:hover {
  background: var(--sp-accent-orange);
  color: #000000;
  border-color: var(--sp-accent-orange);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--sp-accent-orange);
  transform: scale(1.2);
}

/* Sponsors Grid */
.sponsors-grid-section {
  margin-bottom: 40px;
}

.sponsors-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

/* Sponsor Card */
.sponsor-card {
  background: var(--sp-card-bg);
  border: 1px solid var(--sp-card-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  word-break: break-word;
}

.sponsor-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.sponsor-card.featured-card {
  border-top: 3px solid var(--sp-accent-orange);
}

.card-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.sponsor-avatar {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid #334155;
  flex-shrink: 0;
}

.card-title-group {
  flex: 1;
  min-width: 0;
}

.sponsor-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-featured {
  background: var(--sp-accent-orange);
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.sponsor-tagline {
  font-size: 12px;
  color: var(--sp-accent-cyan);
  margin: 0;
  line-height: 1.3;
}

.sponsor-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.sponsor-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.meta-pill {
  background: #1e293b;
  color: var(--sp-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--sp-line);
  margin-top: 12px;
}

.card-links-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Icon-Only Action Buttons — Clean, 40x40 Touch Target, High Clickability */
.sponsor-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease;
}

.sponsor-action-link svg {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.sponsor-action-link:hover {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: transparent;
}

.sponsor-action-link:active {
  transform: translateY(0) scale(0.96);
}

/* Brand-Specific Hover Colors */
.sponsor-action-link.sponsor-link-web:hover {
  background: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.sponsor-action-link.sponsor-link-linkedin:hover {
  background: #0a66c2;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.45);
}

.sponsor-action-link.sponsor-link-youtube:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
}

.sponsor-action-link.sponsor-link-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.45);
}

.sponsor-action-link.sponsor-link-facebook:hover {
  background: #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

.sponsor-action-link.sponsor-link-x:hover {
  background: #000000;
  border-color: #64748b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: #0f172a;
  border: 1px dashed #334155;
  border-radius: 12px;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* Footer */
.sponsors-footer {
  margin-top: auto;
  padding: 20px 0 10px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--sp-muted);
}

/* ==========================================================================
   Responsive Adaptations for Tablets & Smartphones
   ========================================================================== */

@media (max-width: 768px) {
  .sponsors-app-container {
    padding: 12px 14px 32px;
  }

  .sponsors-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .header-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .header-right {
    width: 100%;
  }

  .lang-selector-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .lang-select {
    flex: 1;
    min-width: 0;
    font-size: 14px !important;
    height: 40px;
  }

  .hero-section {
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .page-subtitle {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .search-section {
    margin-bottom: 16px;
  }

  .search-bar-wrapper {
    width: 100%;
  }

  .search-input {
    font-size: 14px;
    padding: 12px 40px 12px 42px;
  }

  .filters-panel {
    padding: 14px;
    margin-bottom: 24px;
  }

  .filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filters-summary-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #btnResetFilters {
    width: 100%;
    text-align: center;
  }

  .sponsors-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 14px;
  }

  .sponsor-card {
    padding: 16px;
  }

  .sponsor-company-logo-rect {
    height: 75px;
    padding: 8px 12px;
  }

  .company-title-blue {
    font-size: 17px;
  }

  .company-tagline-blue {
    font-size: 12px;
  }

  .sponsor-desc {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .carousel-arrow-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .section-heading {
    font-size: 16px;
  }

  .sponsors-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  .sponsors-app-container {
    padding: 10px 10px 24px;
  }

  .sponsors-header {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 18px;
  }

  .back-link {
    font-size: 11.5px;
  }

  .page-title {
    font-size: 20px;
  }

  .page-subtitle {
    font-size: 12.5px;
  }

  .sponsor-card {
    padding: 14px;
    border-radius: 10px;
  }

  .card-top-row {
    gap: 12px;
    margin-bottom: 10px;
  }

  .sponsor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
  }

  .sponsor-name {
    font-size: 16px;
  }

  .sponsor-company-logo-rect {
    height: 68px;
  }

  .meta-pill {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  .sponsor-action-link {
    width: 38px;
    height: 38px;
  }

  .sponsor-action-link svg {
    width: 18px;
    height: 18px;
  }
}


/* ==========================================================================
   Seção: Chamada para Novos Patrocinadores (Become a Sponsor CTA)
   ========================================================================== */
.become-sponsor-section {
  margin-top: 48px;
  margin-bottom: 32px;
}

.become-sponsor-card {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.95) 0%, rgba(18, 28, 48, 0.95) 100%);
  border: 1px solid rgba(255, 152, 0, 0.35);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.become-sponsor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff9800 0%, #00e5ff 100%);
}

.become-sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 152, 0, 0.12);
  color: #ffab40;
  border: 1px solid rgba(255, 152, 0, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.become-sponsor-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.become-sponsor-subtitle {
  font-size: 15px;
  color: #94a3b8;
  max-width: 820px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.become-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.become-sponsor-box {
  background: #090e18;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.become-sponsor-box:hover {
  transform: translateY(-2px);
  border-color: #334155;
}

.become-sponsor-box.featured {
  border-color: rgba(255, 152, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 152, 0, 0.08) 0%, #090e18 100%);
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.12);
}

.bsp-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bsp-box-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.bsp-box-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #00e5ff;
}

.bsp-box-tag.highlight {
  color: #ffab40;
}

.bsp-box-title {
  font-size: 16.5px;
  font-weight: 750;
  color: #ffffff;
  margin: 2px 0 0;
}

.bsp-box-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.become-sponsor-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bsp-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff9800;
  color: #000000;
  font-weight: 850;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid #d77b00;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35);
  transition: all 0.2s ease;
}

.bsp-cta-primary:hover {
  background: #ffad33;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.5);
}

.bsp-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #00e5ff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  transition: all 0.2s ease;
}

.bsp-cta-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: #00e5ff;
}

@media (max-width: 768px) {
  .become-sponsor-card {
    padding: 24px 18px;
  }
  .become-sponsor-grid {
    grid-template-columns: 1fr;
  }
  .become-sponsor-title {
    font-size: 21px;
  }
  .become-sponsor-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .bsp-cta-primary,
  .bsp-cta-secondary {
    justify-content: center;
  }
}
