/* 
 * Styles dla pojedynczej oferty pracy
 * Nowy layout z białą kartą i ikonami + hero image
 */

/* Hero Section z obrazkiem w tle */
.offer-hero-section {
  position: relative;
  min-height: 450px;
  margin-bottom: 30px;
  width: 100%;
  overflow: hidden;
}

.offer-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.offer-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
  z-index: 2;
}

.offer-hero-content {
  position: relative;
  z-index: 3;
  padding-top: 30px;
  padding-bottom: 30px;
}

.offer-hero-content .offer-header-card {
  max-width: 600px;
}

/* Karta oferty */
.offer-header-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.offer-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 20px;
}

.offer-title-section {
  flex: 1;
}

.offer-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.offer-title-section h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.offer-date {
  color: #666;
  font-size: 14px;
  display: inline-block;
}

.btn-favorite {
  background: white;
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.btn-favorite:hover {
  border-color: #FF6B35;
  color: #FF6B35;
  transform: scale(1.05);
}

.offer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.offer-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.offer-info-item i {
  color: #0066CC;
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.offer-info-item span {
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}

.offer-reference {
  padding-top: 15px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 14px;
}

/* Responsywność */
@media (max-width: 768px) {

  /* Hero section na mobile */
  .offer-hero-section {
    min-height: auto;
  }

  .offer-hero-image {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
  }

  .offer-hero-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.9) 100%);
  }

  .offer-hero-content {
    padding-right: 0;
  }

  /* Karta */
  .offer-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .offer-header-card {
    padding: 20px;
  }

  .offer-title-section h1 {
    font-size: 22px;
  }

  .offer-header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-favorite {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .offer-header-card {
    padding: 15px;
    border-radius: 8px;
  }

  .offer-title-section h1 {
    font-size: 20px;
  }

  .offer-info-item {
    padding: 6px 0;
  }

  .offer-info-item i {
    font-size: 16px;
  }

  .offer-info-item span {
    font-size: 14px;
  }
}

/* Dostosowanie do istniejących stylów strony */
.bloc_content_offre {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .bloc_content_offre {
    padding: 20px;
  }
}