/*
 * Crossword Compiler Essential Styles
 * CC-specific styling that doesn't affect WordWeb or other sites
 */

/* Make all images responsive by default in CC pages */
img {
  max-width: 100%;
  height: auto;
}

/* Exception for images that should maintain fixed size */
img.no-resize {
  max-width: none;
  height: auto;
}

#footer {
  background: linear-gradient(135deg, #396ca6, #17446b);
}

/* Prevent button text wrapping while showing full text */
.btn {
  white-space: nowrap;
}

/* Contact page button adjustments */
.contact-buttons .btn-lg {
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  line-height: 1.3;
}

/* Ensure email buttons can expand to fit content */
.contact-buttons .col-md-6 {
  min-width: 250px;
}

/* Compact process content styling for index pages */
.process-content-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 0 5px 5px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px var(--shadow-color);
  min-height: auto; /* Allow natural height based on content */
  color: var(--text-body);
  transition:
    background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
  padding: 1.5rem;
}

/* Ensure equal height columns on index pages */
.sec-home .row {
  align-items: stretch;
}

/* CSS-only FontAwesome icon replacements */
.fa.fa-caret-down::before {
  content: "▼";
  font-size: 10px;
  font-family: inherit;
}

/* Language menu styling */
.navbar-nav .dropdown > a {
  color: #888 !important;
  font-size: 12px !important;
  margin-left: 15px !important;
  text-transform: none !important;
  cursor: pointer;
}

/* Language dropdown menu styling - match original */
.navbar-nav .dropdown-menu {
  background-color: #555 !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border-top: 4px solid #528fcc !important;
  box-shadow: 0 2px 2px rgba(50, 50, 50, 0.2) !important;
}

.navbar-nav .dropdown-menu > li > a {
  color: #fff !important;
  padding: 5px 15px !important;
  border-bottom: 1px solid #383838 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
}

.navbar-nav .dropdown-menu > li:last-child > a {
  border-bottom: 0 !important;
}

.navbar-nav .dropdown-menu > li > a:hover,
.navbar-nav .dropdown-menu > li > a:focus {
  background-color: #528fcc !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Dark mode support for language menu - consolidated to avoid duplication */
@media (prefers-color-scheme: dark) {
  .navbar-nav > li:last-child > a {
    color: #aaa !important;
  }
}

[data-theme="dark"] .navbar-nav > li:last-child > a {
  color: #aaa !important;
}

/* ===== TESTIMONIALS CAROUSEL STYLING ===== */
.sec-testimonials {
  background: #f8f9fa;
  padding: 2rem 0 4rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.sec-testimonials h3 {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.testimonials-carousel {
  position: relative;
  max-width: 100%;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.testimonial-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  color: #528fcc;
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-author strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #528fcc;
}

.author-title {
  display: block;
  font-size: 0.75rem;
  color: #777;
  font-weight: 400;
  font-style: italic;
}

/* Hide carousel controls - only use indicators */
.testimonials-carousel .carousel-control-prev,
.testimonials-carousel .carousel-control-next {
  display: none;
}

/* Carousel indicators styling */
.testimonials-carousel .carousel-indicators {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.testimonials-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #777;
  border: none;
  margin: 0 3px;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.testimonials-carousel .carousel-indicators [data-bs-target].active {
  background-color: #528fcc;
  opacity: 1;
  transform: scale(1.2);
}

/* Dark mode testimonials styling - consolidated to avoid duplication */
@media (prefers-color-scheme: dark) {
  .sec-testimonials {
    background: #333333;
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
  }

  .sec-testimonials h3 {
    color: #e0e0e0;
  }

  .testimonial-card {
    background: #2a2a2a;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .testimonial-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .testimonial-content p {
    color: #e0e0e0;
  }

  .testimonial-author strong {
    color: #4a8a8a;
  }

  .author-title {
    color: #a0a0a0;
  }

  .testimonials-carousel .carousel-indicators [data-bs-target] {
    background-color: #a0a0a0;
  }

  .testimonials-carousel .carousel-indicators [data-bs-target].active {
    background-color: #4a8a8a;
  }
}

[data-theme="dark"] .sec-testimonials {
  background: #333333;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
}

[data-theme="dark"] .sec-testimonials h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .testimonial-card {
  background: #2a2a2a;
  border: 1px solid #444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .testimonial-content p {
  color: #e0e0e0;
}

[data-theme="dark"] .testimonial-author strong {
  color: #4a8a8a;
}

[data-theme="dark"] .author-title {
  color: #a0a0a0;
}

[data-theme="dark"] .testimonials-carousel .carousel-indicators [data-bs-target] {
  background-color: #a0a0a0;
}

[data-theme="dark"] .testimonials-carousel .carousel-indicators [data-bs-target].active {
  background-color: #4a8a8a;
}

/* Fix process content gap - ensure no border-top on process-content-compact */
.process-content-compact {
  border-top: none !important;
  margin-top: 0 !important;
}

/* Responsive video styling for YouTube embeds */
#responsive-video {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

#responsive-video iframe,
#responsive-video div {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
}

/* Ensure video container is responsive on all screen sizes */
@media (max-width: 768px) {
  #responsive-video {
    max-width: 100%;
  }
}

/* Interactive page two-column layout for puzzle links */
.puzzle-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.puzzle-links-container .col-md-6 {
  flex: 1;
  min-width: 250px;
}

@media (max-width: 767px) {
  .puzzle-links-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Responsive testimonials styling */
@media (max-width: 768px) {
  .sec-testimonials {
    padding: 1.5rem 0;
  }

  .sec-testimonials h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .testimonial-card {
    padding: 1.25rem;
    min-height: 100px;
  }

  .testimonial-content p {
    font-size: 0.9rem;
  }

  .testimonials-carousel .carousel-indicators {
    bottom: -1.5rem;
  }
}

@media (max-width: 576px) {
  .sec-testimonials {
    padding: 1rem 0;
  }

  .sec-testimonials h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .testimonial-card {
    padding: 1rem;
    min-height: 90px;
  }

  .testimonial-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .testimonial-author {
    font-size: 0.8rem;
  }

  .author-title {
    font-size: 0.7rem;
  }

  .testimonials-carousel .carousel-indicators {
    bottom: -1.25rem;
  }

  .testimonials-carousel .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    margin: 0 2px;
  }
}
