/* 
   Free Resources Section Styling
   This CSS provides styling for the RAPR flyer download card
*/

/* Resources Section */
.resources-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  position: relative;
}

.resources-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d1962a' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

/* Resource Card */
.resource-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 30px rgba(13, 26, 65, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  position: relative;
  border: 1px solid rgba(209, 150, 42, 0.2);
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(13, 26, 65, 0.15);
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Resource Content */
.resource-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.resource-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(209, 150, 42, 0.3);
}

.resource-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.resource-text {
  flex: 1;
}

.resource-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.resource-subtitle {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resource-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.resource-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-badge {
  background: rgba(209, 150, 42, 0.1);
  color: var(--navy);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(209, 150, 42, 0.2);
}

/* Resource Action */
.resource-action {
  text-align: center;
  flex-shrink: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(209, 150, 42, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-download:hover::before {
  left: 100%;
}

.btn-download:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 150, 42, 0.4);
}

.download-icon {
  font-size: 1.25rem;
  animation: bounce 2s infinite;
}

.download-text {
  position: relative;
  z-index: 1;
}

.resource-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Bounce animation for download icon */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .resource-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  
  .resource-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .resource-title {
    font-size: 1.5rem;
  }
  
  .btn-download {
    width: 100%;
    justify-content: center;
  }
  
  .feature-badge {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .resources-section {
    padding: 3rem 0;
  }
  
  .resource-card {
    margin: 0 1rem;
    padding: 1.5rem;
  }
  
  .resource-content {
    gap: 1rem;
  }
  
  .resource-icon {
    width: 50px;
    height: 50px;
  }
  
  .resource-icon svg {
    width: 25px;
    height: 25px;
  }
  
  .resource-title {
    font-size: 1.25rem;
  }
  
  .resource-description {
    font-size: 1rem;
  }
}
