/* ==========================================================================
   OTOMOTO HOMEPAGE STYLESHEET
   Replicating https://www.otomoto.pl
   ========================================================================== */

/* Hero Banner & Master Search Box */
.home-hero-section {
  padding: 32px 0 24px 0;
}

.home-hero-header {
  margin-bottom: 24px;
}

.home-hero-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--oto-text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.home-hero-subtitle {
  font-size: 16px;
  color: var(--oto-text-secondary);
}

/* Master Search Card */
.master-search-card {
  background: #FFFFFF;
  border: 1px solid var(--oto-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 36px;
}

.search-category-tabs {
  display: flex;
  background: #F8F9FA;
  border-bottom: 1px solid var(--oto-border);
  overflow-x: auto;
}

.search-cat-tab {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--oto-text-secondary);
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-cat-tab:hover {
  color: var(--oto-red);
}

.search-cat-tab.active {
  color: var(--oto-red);
  background: #FFFFFF;
  border-bottom-color: var(--oto-red);
}

.search-form-body {
  padding: 24px;
}

.search-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.home-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-form-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oto-text-secondary);
  letter-spacing: 0.5px;
}

.home-form-field select,
.home-form-field input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--oto-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--oto-text-primary);
  background: #FFFFFF;
  outline: none;
  transition: border-color var(--transition-fast);
}

.home-form-field select:focus,
.home-form-field input:focus {
  border-color: var(--oto-red);
  box-shadow: 0 0 0 3px rgba(217, 28, 36, 0.12);
}

.search-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #F1F3F5;
}

.search-advanced-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--oto-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.search-advanced-link:hover {
  text-decoration: underline;
}

.btn-search-main {
  background: var(--oto-red);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(217, 28, 36, 0.3);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-search-main:hover {
  background: var(--oto-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 28, 36, 0.4);
}

/* Popular Brands Row */
.home-section-wrap {
  margin-bottom: 40px;
}

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.home-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--oto-text-primary);
}

.home-section-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--oto-red);
}

.home-section-link:hover {
  text-decoration: underline;
}

.brands-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.brand-pill-card {
  background: #FFFFFF;
  border: 1px solid var(--oto-border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.brand-pill-card:hover {
  border-color: var(--oto-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.brand-pill-card .brand-icon {
  font-size: 22px;
  font-weight: 900;
}

.brand-pill-card .brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--oto-text-primary);
}

/* Body Types Showcase */
.body-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.body-type-card {
  background: #FFFFFF;
  border: 1px solid var(--oto-border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.body-type-card:hover {
  border-color: var(--oto-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.body-type-card .silhouette-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.body-type-card .type-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--oto-text-primary);
}

.body-type-card .type-count {
  font-size: 12px;
  color: var(--oto-text-muted);
}

/* Promotional Services Cards (OTOMOTO Pay, Sell Car, CEPiK) */
.promo-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.promo-banner-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.promo-banner-card.pay {
  background: linear-gradient(135deg, #0A5424 0%, #157E3B 100%);
  color: #FFFFFF;
}

.promo-banner-card.sell {
  background: linear-gradient(135deg, #8E1015 0%, #D91C24 100%);
  color: #FFFFFF;
}

.promo-banner-card.cepik {
  background: linear-gradient(135deg, #0B3E84 0%, #1765CB 100%);
  color: #FFFFFF;
}

.promo-banner-card h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.promo-banner-card p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.promo-banner-btn {
  align-self: flex-start;
  background: #FFFFFF;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.promo-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Featured Listings Horizontal Carousel / Grid */
.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
