/* Legal Professional Public Profile - Custom Styles */

/* Line clamp utility for bio section */
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

/* Smooth transitions */
#bio-content {
  transition: max-height 0.3s ease-in-out;
}

/* Custom scrollbar for date selector on mobile */
.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Ensure mobile CTA button doesn't overlap content */
@media (max-width: 1023px) {
  body {
    padding-bottom: 80px;
  }
}

/* Hero section gradient overlay */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(249, 250, 251, 0.2) 100%);
}

/* Tag/badge hover effects */
.inline-flex.items-center.px-3.py-1.rounded-full {
  transition: all 0.2s ease;
}

.inline-flex.items-center.px-3.py-1.rounded-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.bg-white.rounded-xl {
  transition: box-shadow 0.2s ease;
}

/* Profile photo border enhancement */
.border-4.border-white {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Date selector button active state */
.date-selector-active {
  border-color: #16a34a !important;
  background-color: #f0fdf4 !important;
}

/* Time slot button selected state */
.time-slot-selected {
  border-color: #16a34a !important;
  background-color: #f0fdf4 !important;
  color: #15803d !important;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .text-4xl {
    font-size: 1.875rem;
  }

  .text-5xl {
    font-size: 2.25rem;
  }
}

/* Sticky sidebar enhancement */
@media (min-width: 1024px) {
  .lg\:sticky {
    position: -webkit-sticky;
    position: sticky;
  }

  html {
    font-size: 14px;
  }
}

/* Publications link styling */
a[href*="http"].text-green-600 {
  position: relative;
  text-decoration: none;
}

a[href*="http"].text-green-600::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #16a34a;
  transition: width 0.3s ease;
}

a[href*="http"].text-green-600:hover::after {
  width: 100%;
}

/* Loading state for buttons */
button.loading {
  position: relative;
  color: transparent;
}

button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Accessibility improvements */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .lg\:hidden.fixed.bottom-0 {
    display: none !important;
  }

  .bg-white.rounded-xl {
    box-shadow: none !important;
    border: 1px solid #e5e7eb;
  }
}

/* Desktop minimum width - allow horizontal scroll when sidebar expands */
@media (min-width: 1024px) {
  body {
    overflow-x: auto;
  }

  /* Target the main content wrapper */
  #main-content-wrapper {
    min-width: 1024px;
    flex-shrink: 0;
  }
}