/* Data Engineer Prep - Custom Styles */
/* Modern UI with Cards, Clean Typography, Proper Spacing */

/* Video Section Spacing */
.video-section {
  margin-bottom: 2rem;
  max-height: none;
}

/* Main Category Sections - Each Major Section in Own Box */
.section.content-card > .video-section {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 0;
  margin-bottom: 3rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.section.content-card > .video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section.content-card > .video-section:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.section.content-card > .video-section:hover::before {
  opacity: 1;
}

.section.content-card > .video-section > .video-header {
  border-radius: 20px 20px 0 0;
  margin-bottom: 0;
}

.section.content-card > .video-section > .video-content {
  padding: 2rem;
  max-height: none;
}

/* Individual Question Boxes Inside Main Sections */
.video-section > .video-content > .video-section {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  max-height: none;
}

.video-section > .video-content > .video-section .video-content {
  overflow: visible;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
  max-height: none;
}

.video-section > .video-content > .video-section:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  border-color: #d1d5db;
  background: #ffffff;
}

/* Section Headings - Clean Typography */
.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #f3f4f6;
  position: relative;
  letter-spacing: -0.025em;
}

.section-heading::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

/* Table Styling - Modern Card Style */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background: white;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  font-size: 1rem;
}

.data-table thead {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.data-table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.data-table th:first-child {
  border-top-left-radius: 12px;
}

.data-table th:last-child {
  border-top-right-radius: 12px;
}

.data-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.data-table tbody tr:hover {
  background-color: #f0f9ff;
  transform: scale(1.01);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table td {
  padding: 1.125rem 1.5rem;
  color: #374151;
  font-size: 0.95rem;
}

/* Code Block Styling - Professional Dark Theme */
.code-block {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  padding: 2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
}

.code-block code {
  color: #e2e8f0;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  display: block;
  white-space: pre;
}

/* Explanation Text - Modern Info Box */
.explanation-text {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  margin-top: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.explanation-text p {
  margin: 0.75rem 0;
  color: #1e40af;
  line-height: 1.8;
  font-size: 1.05rem;
}

.explanation-text p:first-child {
  margin-top: 0;
}

.explanation-text p:last-child {
  margin-bottom: 0;
}

.explanation-text code {
  background: #dbeafe;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.explanation-text strong {
  color: #1e3a8a;
  font-weight: 700;
}

/* Concept Cards - Modern Card Design */
.concept-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.concept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.concept-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
  border-color: #d1d5db;
}

.concept-card:hover::before {
  opacity: 1;
}

.concept-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.concept-icon {
  font-size: 2rem;
  margin-right: 1rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.concept-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.025em;
}

.concept-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.025em;
}

.concept-card p {
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.concept-card p:last-child {
  margin-bottom: 0;
}

.concept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #6d28d9;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #ddd6fe;
  transition: all 0.2s ease;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(109, 40, 217, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-section > .video-content > .video-section {
    padding: 1.5rem;
  }

  .data-table {
    font-size: 0.9rem;
  }

  .data-table th,
  .data-table td {
    padding: 1rem;
  }

  .code-block {
    padding: 1.25rem;
  }

  .code-block code {
    font-size: 0.85rem;
  }

  .concept-card {
    padding: 1.5rem;
  }

  .concept-icon {
    font-size: 1.75rem;
  }
  
  .section-heading {
    font-size: 1.125rem;
  }
}

/* Accordion Content Additional Styling */
.accordion-content {
  background: #fafafa;
}

/* Smooth Scrollbar for Code Blocks */
.code-block::-webkit-scrollbar {
  height: 8px;
}

.code-block::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
