/* Resources Page Styles - My STE Buddy */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  min-height: 45vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 45vh;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: heroIconFloat 3s ease-in-out infinite;
}

@keyframes heroIconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Quick Navigation */
.quick-nav {
  padding: 4rem 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.quick-nav h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 3rem;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  color: #667eea;
  border-color: #667eea;
  text-decoration: none;
}

.nav-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea;
  transition: all 0.3s ease;
}

.nav-item:hover i {
  transform: scale(1.1);
  color: #764ba2;
}

.nav-item span {
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

/* Resource Sections */
.resource-section {
  padding: 5rem 0;
}

.resource-section.alt {
  background: #f8fafc;
}

.resource-section h2 {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.resource-section h2 i {
  color: #667eea;
}

.resource-section > .container > p {
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 3rem;
  max-width: 800px;
}

/* Resource Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.resource-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #667eea;
}

.resource-card.featured {
  border-left: 4px solid #667eea;
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
}

.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.resource-card h3 {
  font-size: 1.3rem;
  color: #2d3748;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.resource-card p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.resource-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-badge {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.resource-link:hover {
  color: #764ba2;
  text-decoration: none;
  transform: translateX(2px);
}

.resource-link i {
  font-size: 0.8rem;
}

/* STE Highlight Section */
.ste-highlight {
  background: linear-gradient(135deg, #0077cc 0%, #00aaff 100%);
  color: white;
  padding: 4rem 0;
  margin: 4rem 0;
}

.ste-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.ste-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.ste-logo {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.ste-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: white;
}

.ste-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.ste-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: white;
  color: #0077cc;
  border-color: white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline:hover {
  background: white;
  color: #0077cc;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Communities Section */
.platform-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.platform-section {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.platform-section h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.platform-section h3 i {
  color: #667eea;
  font-size: 1.3rem;
}

.community-list {
  space-y: 1.5rem;
}

.community-item {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  margin-bottom: 1.5rem;
}

.community-item h4 {
  font-size: 1.1rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.community-item p {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.community-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.community-link:hover {
  color: #764ba2;
  text-decoration: none;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 10px;
}

.btn-large i {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .nav-item {
    padding: 1.5rem 1rem;
  }
  
  .nav-item i {
    font-size: 1.5rem;
  }
  
  .nav-item span {
    font-size: 0.85rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .resource-card {
    padding: 1.5rem;
  }
  
  .resource-section {
    padding: 3rem 0;
  }
  
  .resource-section h2 {
    font-size: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .ste-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .ste-text h2 {
    font-size: 1.8rem;
  }
  
  .ste-actions {
    justify-content: center;
  }
  
  .platform-sections {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .platform-section {
    padding: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2.2rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-large {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .resource-section h2 {
    font-size: 1.7rem;
  }
  
  .ste-icon {
    width: 80px;
    height: 80px;
  }
  
  .ste-logo {
    width: 40px;
    height: 40px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
}