/* ===== TUTORIALS PAGE STYLES ===== */

/* Hero Section */
.tutorials-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.tutorials-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B1120 0%, #1E293B 50%, #0B1120 100%);
  z-index: 0;
}

.tutorials-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

.tutorials-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.tutorials-glow-orb.orb-cyan {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent);
  top: -100px;
  right: 10%;
  animation: float 15s ease-in-out infinite;
}

.tutorials-glow-orb.orb-blue {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
  bottom: -50px;
  left: 20%;
  animation: float 12s ease-in-out infinite reverse;
}

.tutorials-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.tutorials-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.tutorials-hero-subtitle {
  font-size: 1.15rem;
  color: #9CA3AF;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Platforms Section */
.tutorials-platforms-section {
  background: linear-gradient(180deg, #0B1120, #1E293B);
  padding: 5rem 0;
}

.platforms-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Platform Showcase Card */
.platform-showcase-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(11, 17, 32, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.platform-showcase-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.platform-showcase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.platform-logo {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.platform-logo svg {
  width: 28px;
  height: 28px;
}

.platform-logo.youtube {
  background: linear-gradient(135deg, #FFD700, #EAB308);
  color: #0B1120;
}

.platform-logo.facebook {
  background: linear-gradient(135deg, #1877F2, #0d65d9);
  color: white;
}

.platform-logo.medium {
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
}

.platform-logo.blog {
  background: linear-gradient(135deg, #38BDF8, #0ea5e9);
  color: white;
}

.platform-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.platform-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.platform-badge.free {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.platform-badge.subscription {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.platform-description {
  color: #9CA3AF;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.platform-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.topic-tag {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.platform-features {
  margin-bottom: 1.5rem;
}

.platform-features .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #E5E7EB;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.platform-features .check {
  color: #10b981;
  font-weight: bold;
}

.platform-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.platform-cta.youtube {
  background: linear-gradient(135deg, #FFD700, #EAB308);
  color: #0B1120;
}

.platform-cta.youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  color: #0B1120;
}

.platform-cta.facebook {
  background: linear-gradient(135deg, #1877F2, #0d65d9);
  color: white;
}

.platform-cta.facebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
  color: white;
}

.platform-cta.medium {
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
}

.platform-cta.medium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: white;
}

.platform-cta.blog {
  background: linear-gradient(135deg, #38BDF8, #0ea5e9);
  color: white;
}

.platform-cta.blog:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
  color: white;
}

.platform-cta svg {
  width: 18px;
  height: 18px;
}

/* Topics Section */
.tutorials-topics-section {
  background: #ffffff;
  padding: 5rem 0;
}

.tutorials-topics-section .section-subtitle-dark {
  color: #6B7280;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.tutorials-topics-section .topics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  flex-wrap: unset !important;
  gap: 1.25rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.tutorials-topics-section .topic-card {
  display: block !important;
  flex-direction: unset !important;
  align-items: unset !important;
  text-align: center;
  padding: 2rem 1.25rem;
  background: #f8fafc;
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.tutorials-topics-section .topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.tutorials-topics-section .topic-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.tutorials-topics-section .topic-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0B1120;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.tutorials-topics-section .topic-card p {
  color: #6B7280;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* Courses CTA Section */
.tutorials-courses-cta {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.tutorials-courses-cta .cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B1120, #1E293B);
  z-index: 0;
}

.tutorials-courses-cta .cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.tutorials-courses-cta h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tutorials-courses-cta .cta-description {
  color: #9CA3AF;
  margin-bottom: 2rem;
}

.cta-primary-btn.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #0B1120;
}

.cta-primary-btn.gold:hover {
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .tutorials-hero {
    padding: 4rem 1rem 3rem;
  }

  .tutorials-hero-title {
    font-size: 2rem;
  }

  .platforms-showcase {
    grid-template-columns: 1fr;
  }

  .tutorials-topics-section .topics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .tutorials-topics-section .topics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
}
