/* Brochures/Resources Page Modern Styles */

/* Hero Section */
.resources-hero {
  padding-top: var(--space-20);
  padding-bottom: var(--space-16);
  background: var(--color-bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.resources-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(9, 105, 218, 0.03) 0%, 
    rgba(124, 58, 237, 0.02) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.resources-hero h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  color: var(--color-text-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Resources Section */
.resources-section {
  padding: var(--space-24) 0;
  background: var(--color-bg-primary);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* Resource Card */
.resource-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Resource Types */
.resource-card.brochure {
  --resource-color: #0969da;
}

.resource-card.video {
  --resource-color: #dc2626;
}

.resource-card.whitepaper {
  --resource-color: #7c3aed;
}

.resource-card.case-study {
  --resource-color: #059669;
}

/* Card Header */
.resource-header {
  height: 200px;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.resource-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(var(--resource-color-rgb, 9, 105, 218), 0.1) 0%, 
    transparent 100%
  );
}

.resource-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--resource-color);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.resource-type-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--resource-color);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card Content */
.resource-content {
  padding: var(--space-8);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.resource-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.resource-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.resource-meta {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.meta-item i {
  color: var(--resource-color);
}

/* Download Button */
.resource-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--resource-color);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.resource-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(9, 105, 218, 0.3);
  color: white;
  text-decoration: none;
}

.resource-cta i {
  transition: transform 0.2s ease;
}

.resource-cta:hover i {
  transform: translateX(4px);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.filter-tab {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--color-border);
  color: var(--color-text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.filter-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
  border-color: transparent;
  color: white;
}

/* Video Section */
.video-section {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: var(--space-8);
}

.video-info h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.video-info p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.resources-cta {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, #f8faff 0%, #fff5f7 100%);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .resources-hero h1 {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .filter-tabs {
    gap: var(--space-2);
  }
  
  .filter-tab {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }
}

/* Animations */
.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.resources-hero h1 {
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
