/* ============================================
   History Page Specific Styles
   Becker Texas Properties
   ============================================ */

/* History Hero Section */
.history-hero {
  padding-top: 120px;
  padding-bottom: 4rem;
  background: radial-gradient(circle at center, rgba(0, 40, 104, 0.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-red);
  text-align: center;
}

.history-hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.history-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.history-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.date-start {
  background: linear-gradient(90deg, var(--texas-red), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.date-divider {
  color: var(--text-muted);
  opacity: 0.5;
}

.date-present {
  background: linear-gradient(90deg, var(--texas-blue), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* History Content */
.history-content {
  padding: 4rem 2rem;
}

.history-container {
  max-width: 1000px;
  margin: 0 auto;
}

.history-section {
  margin-bottom: 4rem;
}

.history-intro {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--texas-red);
  border-radius: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--texas-red), var(--texas-white), var(--texas-blue));
}

.section-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.section-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Gift Cards */
.gift-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gift-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.gift-card:hover {
  transform: translateY(-5px);
  border-color: var(--texas-red);
  box-shadow: 0 15px 40px rgba(191, 10, 48, 0.2);
}

.gift-number {
  position: absolute;
  top: -1rem;
  left: 2rem;
  background: var(--texas-red);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.gift-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.gift-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Family Benefits Section */
.family-benefits {
  margin-top: 3rem;
}

.family-benefits h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border-top: 3px solid var(--texas-red);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(191, 10, 48, 0.2);
  background: rgba(191, 10, 48, 0.05);
}

.benefit-card h4 {
  color: var(--texas-red);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.benefit-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Historical Images Section */
.historical-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.image-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.image-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.image-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: sepia(20%) contrast(1.1);
  transition: filter 0.3s ease;
}

.image-card:hover img {
  filter: sepia(0%) contrast(1);
}

.image-caption {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
}

.image-caption h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.image-caption p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--texas-red), var(--texas-white), var(--texas-blue));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  animation: slideInFromLeft 0.8s ease both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-item::before {
  content: '★';
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 2rem;
  height: 2rem;
  background: var(--bg-dark);
  color: var(--texas-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--texas-red);
  font-size: 1rem;
}

.timeline-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--texas-red);
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border-left: 3px solid var(--texas-red);
}

.timeline-content h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Call to Action */
.history-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  margin-top: 4rem;
}

.history-cta h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
}

/* Animations */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .history-hero {
    padding-top: 100px;
    padding-bottom: 3rem;
  }
  
  .history-title {
    font-size: 1.8rem;
  }
  
  .history-dates {
    font-size: 2rem;
    gap: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .gift-cards {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: 2rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-item::before {
    left: -1.85rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.8rem;
  }
  
  .timeline-year {
    font-size: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  
  .historical-images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .history-content {
    padding: 3rem 1rem;
  }
  
  .history-intro {
    padding: 1.5rem;
    font-size: 1.1rem;
  }
  
  .gift-card {
    padding: 1.5rem;
  }
  
  .section-content p {
    font-size: 1rem;
  }
}