/* Tool Detail Page Styles */

/* Tool Hero Section */
.tool-hero {
  background: linear-gradient(135deg, #f8fbff 0%, #f1f8ff 100%);
  padding: 3rem 0;
  margin-top: 80px; /* Account for fixed header + breadcrumb */
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.tool-icon-large {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.tool-title {
  flex: 1;
}

.category-badge {
  display: inline-block;
  background: rgba(41, 128, 185, 0.1);
  color: var(--primary-blue);
  padding: 0.35rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tool-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.tool-tagline {
  font-size: 1.2rem;
  color: var(--neutral-medium);
  line-height: 1.5;
}

/* Video Section */
.tool-video-section {
  padding: 3rem 0;
  background: var(--white);
}

.tool-video-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
}

.vimeo-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Instructor Content Section */
.tool-instructor-content {
  padding: 3rem 0;
  background: var(--neutral-light);
}

/* Two-column layout for instructor content */
.tool-instructor-content .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left column - GIF container */
.tool-instructor-content .gif-column {
  position: sticky;
  top: 100px; /* Stick below header */
}

.tool-instructor-content .gif-container,
.tool-instructor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  margin: 0;
}

/* Right column - Text content */
.tool-instructor-content .content-column {
  /* Text content styles */
}

.tool-instructor-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.tool-instructor-content h1:first-child,
.tool-instructor-content h2:first-child {
  margin-top: 0;
}

.tool-instructor-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--neutral-dark);
}

.tool-instructor-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--neutral-dark);
}

.tool-instructor-content ul,
.tool-instructor-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.tool-instructor-content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--neutral-dark);
}

.tool-instructor-content ul li {
  list-style-type: disc;
}

.tool-instructor-content ol li {
  list-style-type: decimal;
}

.tool-instructor-content code {
  background: var(--white);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary-blue);
}

.tool-instructor-content pre {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.tool-instructor-content pre code {
  background: none;
  padding: 0;
}

.tool-instructor-content strong,
.tool-instructor-content b {
  font-weight: 600;
  color: var(--neutral-dark);
}

.tool-instructor-content em,
.tool-instructor-content i {
  font-style: italic;
}

/* Related Tools Section */
.related-tools {
  padding: 3rem 0;
  background: var(--white);
}

.related-tools h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.tool-card-small {
  background: var(--neutral-light);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--neutral-dark);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-card-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

.tool-card-small img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.tool-card-small h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: capitalize;
}

/* Navigation Section */
.tool-navigation {
  padding: 2rem 0;
  background: var(--neutral-light);
}

.tool-navigation .nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tool-navigation a {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  text-decoration: none;
  color: var(--neutral-dark);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tool-navigation a:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(41, 128, 185, 0.2);
}

.tool-navigation .nav-index {
  flex-grow: 1;
  text-align: center;
}

.tool-navigation .nav-prev {
  min-width: 120px;
}

.tool-navigation .nav-next {
  min-width: 120px;
  text-align: right;
}

/* CTA Section */
.tool-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f8ff 100%);
  text-align: center;
}

.tool-cta h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tool-header {
    gap: 1.5rem;
  }

  .tool-icon-large {
    width: 80px;
    height: 80px;
  }

  .tool-title h1 {
    font-size: 2rem;
  }

  .tool-tagline {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .tool-hero {
    padding: 2rem 0;
  }

  .tool-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .tool-icon-large {
    width: 70px;
    height: 70px;
  }

  .tool-title h1 {
    font-size: 1.75rem;
  }

  .tool-video-section h2,
  .related-tools h2,
  .tool-instructor-content h2 {
    font-size: 1.5rem;
  }

  /* Stack columns on mobile */
  .tool-instructor-content .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tool-instructor-content .gif-column {
    position: static; /* Remove sticky on mobile */
  }

  .tool-navigation .nav-buttons {
    flex-direction: column;
  }

  .tool-navigation a {
    width: 100%;
    text-align: center !important;
  }

  .tool-navigation .nav-prev,
  .tool-navigation .nav-next {
    min-width: unset;
  }

  .related-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .tool-card-small {
    padding: 1.25rem;
  }

  .tool-card-small img {
    width: 48px;
    height: 48px;
  }

  .tool-instructor-content ul,
  .tool-instructor-content ol {
    margin-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tool-title h1 {
    font-size: 1.5rem;
  }

  .tool-tagline {
    font-size: 0.95rem;
  }

  .related-tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-instructor-content h2 {
    font-size: 1.3rem;
  }

  .tool-instructor-content h3 {
    font-size: 1.1rem;
  }
}

/* Print Styles */
@media print {
  .tool-hero,
  .tool-video-section,
  .related-tools,
  .tool-navigation,
  .tool-cta,
  header,
  footer,
  .breadcrumb {
    display: none;
  }

  .tool-instructor-content {
    background: white;
    padding: 0;
  }
}
