/**
 * Webinars Page Styles
 * Extracted from page-webinars.php inline <style> block
 *
 * @package Teleworld_AI_Theme
 * @since 1.1.0
 */

/* Webinars Page Styles */
.webinars-page {
  padding-top: calc(var(--header-height) + 20px);
}

/* Webinars Hero */
.webinars-hero {
  background: linear-gradient(
    135deg,
    #1e1b4b 0%,
    #312e81 25%,
    #1e293b 75%,
    #0f172a 100%
  );
  padding: 80px 0;
  text-align: center;
}

.webinars-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 500;
}

/* Upcoming Webinars Section */
.upcoming-webinars-section {
  padding: 100px 0;
}

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

.webinar-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.webinar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.webinar-card.featured {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.webinar-header {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.webinar-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
}

.webinar-icon {
  font-size: 3rem;
  color: #8b5cf6;
}

.webinar-date {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.webinar-content {
  padding: 2rem;
}

.webinar-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.webinar-status.live {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.webinar-status.technical {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.webinar-status.business {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.webinar-content h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.webinar-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.webinar-details {
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.detail-label {
  color: #94a3b8;
  font-size: 0.9rem;
}

.detail-value {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
}

.webinar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.webinar-btn.primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.webinar-btn.secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.webinar-btn.tertiary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.webinar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
  color: white;
}

/* On-Demand Section */
.on-demand-section {
  padding: 100px 0;
  background: rgba(30, 41, 59, 0.3);
}

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

.on-demand-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.on-demand-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.on-demand-thumbnail {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  font-size: 3rem;
  color: #8b5cf6;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.on-demand-card:hover .play-button {
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.on-demand-content {
  padding: 2rem;
}

.on-demand-content h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.on-demand-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.video-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.video-views,
.video-rating {
  color: #94a3b8;
  font-size: 0.9rem;
}

.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  color: white;
}

/* Webinar Series Section */
.webinar-series-section {
  padding: 100px 0;
}

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

.series-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.series-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.series-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.series-content h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.series-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.series-meta {
  margin-bottom: 2rem;
}

.series-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.series-sessions,
.series-frequency {
  background: rgba(139, 92, 246, 0.2);
  color: #a855f7;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.series-progress {
  text-align: center;
}

.progress-text {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  transition: width 0.3s ease;
}

.series-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.series-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  color: white;
}

/* Newsletter Section */
.newsletter-section {
  padding: 100px 0;
  background: rgba(30, 41, 59, 0.3);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.newsletter-text h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.newsletter-text p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}

.subscription-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subscription-form input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.subscription-form input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.subscription-form input::placeholder {
  color: #64748b;
}

.subscribe-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.newsletter-note {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .webinars-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .on-demand-grid,
  .series-grid {
    grid-template-columns: 1fr;
  }

  .subscription-form {
    flex-direction: column;
  }

  .detail-item {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .webinars-hero {
    padding: 60px 0;
  }

  .upcoming-webinars-section,
  .on-demand-section,
  .webinar-series-section,
  .newsletter-section {
    padding: 80px 0;
  }

  .webinar-content,
  .on-demand-content,
  .series-card {
    padding: 2rem 1.5rem;
  }

  .newsletter-text h2 {
    font-size: 2rem;
  }
}
/* ---------- 360px (Extra Small Mobile) ---------- */
@media (max-width: 360px) {
  .webinars-page {
    padding-top: var(--header-height);
  }

  .webinars-hero {
    padding: 30px 0;
  }

  .webinars-hero h1 {
    font-size: 1.5rem;
  }

  .upcoming-webinars-section,
  .on-demand-section,
  .webinar-series-section,
  .newsletter-section {
    padding: 40px 0;
  }

  .webinar-content,
  .on-demand-content,
  .series-card {
    padding: 1.25rem;
  }
}

/* ---------- Landscape ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .webinars-page {
    padding-top: calc(var(--header-height) + 8px);
  }

  .webinars-hero {
    padding: 25px 0;
  }

  .upcoming-webinars-section,
  .on-demand-section,
  .webinar-series-section,
  .newsletter-section {
    padding: 25px 0;
  }
}

/* ---------- Safe-area Insets ---------- */
@supports (padding: env(safe-area-inset-left)) {
  .upcoming-webinars-section,
  .on-demand-section,
  .webinar-series-section,
  .newsletter-section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  @media (max-width: 480px) {
    .upcoming-webinars-section,
    .on-demand-section,
    .webinar-series-section,
    .newsletter-section {
      padding-left: max(0.75rem, env(safe-area-inset-left));
      padding-right: max(0.75rem, env(safe-area-inset-right));
    }
  }
}
