/* =====================================================
   PSICOCOMPANY - PÁGINA DE PROFISSIONAIS
   Arquivo: profissionais.css
   ===================================================== */

/* ===== HERO SEARCH SECTION ===== */
.hero-search {
  background: linear-gradient(135deg, #7c65b5 0%, #8b72c4 100%);
  padding: 140px 24px 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-search::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -300px;
  right: -150px;
  animation: float 20s ease-in-out infinite;
}

.hero-search::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-search-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideDown 0.6s ease-out;
}

.badge-icon {
  font-size: 18px;
}

.hero-search h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -1.2px;
  animation: slideUp 0.8s ease-out 0.2s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  opacity: 1;
  line-height: 1.6;
  animation: slideUp 0.8s ease-out 0.4s both;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

/* ===== SEARCH BOX ===== */
.search-box {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
  transition: all 0.3s ease;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.search-box:focus-within {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.search-icon {
  font-size: 22px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.search-box:focus-within .search-icon {
  opacity: 0.8;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--dark);
  background: transparent;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--gray-light);
}

/* ===== FILTROS ===== */
.filters-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideUp 0.8s ease-out 0.8s both;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.specialty-pills {
  gap: 8px;
}

.pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pill.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 60px 24px 100px;
  background: var(--bg-light);
}

.results-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.results-info {
  font-size: 16px;
  color: var(--gray);
  text-align: center;
  flex: 1;
}

.results-info span {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.btn-reset-filters {
  background: var(--white);
  border: 2px solid var(--primary-light);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-reset-filters:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 101, 181, 0.3);
}

/* ===== GRID DE PSICÓLOGOS ===== */
.psychologists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

/* ===== CARD DO PSICÓLOGO ===== */
.psychologist-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 101, 181, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.psychologist-card:nth-child(1) { animation-delay: 0.1s; }
.psychologist-card:nth-child(2) { animation-delay: 0.2s; }
.psychologist-card:nth-child(3) { animation-delay: 0.3s; }
.psychologist-card:nth-child(4) { animation-delay: 0.4s; }
.psychologist-card:nth-child(5) { animation-delay: 0.5s; }

.psychologist-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(124, 101, 181, 0.18);
  border-color: var(--primary-light);
}

/* ===== IMAGEM DO CARD ===== */
.card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e4f7 0%, #ddd8f0 100%);
}

.psychologist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.psychologist-card:hover .psychologist-photo {
  transform: scale(1.08);
}

.badge-featured {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

/* ===== CONTEÚDO DO CARD ===== */
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.psychologist-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.psychologist-card:hover .psychologist-name {
  color: var(--primary);
}

.psychologist-title {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.psychologist-crp {
  font-size: 13px;
  color: var(--gray-light);
}

/* ===== ESPECIALIDADES ===== */
.specialties-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.specialty-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.specialty-badge.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(124, 101, 181, 0.25);
}

.specialty-tag {
  background: var(--bg-light);
  color: var(--gray);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.specialty-tag:hover {
  background: rgba(124, 101, 181, 0.1);
  color: var(--primary);
}

/* ===== DESCRIÇÃO ===== */
.psychologist-description {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  position: relative;
}

.description-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
  transition: all 0.4s ease;
}

.psychologist-description.expanded .description-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.btn-read-more {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-read-more:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

.read-more-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.psychologist-description.expanded .read-more-icon {
  transform: rotate(180deg);
}

/* ===== FOOTER DO CARD ===== */
.card-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--bg-light);
  margin-top: auto;
}

.modalities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modality-badge {
  background: rgba(124, 101, 181, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-schedule {
  background: linear-gradient(135deg, #7c65b5 0%, #a996dd 100%);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(124, 101, 181, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-schedule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6952a0 0%, #8b72c4 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-schedule:hover::before {
  opacity: 1;
}

.btn-schedule:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 101, 181, 0.4);
}

.whatsapp-icon {
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.btn-schedule span {
  position: relative;
  z-index: 1;
}

/* ===== SEM RESULTADOS ===== */
.no-results {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(124, 101, 181, 0.08);
  animation: fadeIn 0.5s ease-out;
}

.no-results-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}

.no-results h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.no-results p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 24px;
}

/* ===== CTA CONTATO ===== */
.cta-contact {
  background: linear-gradient(135deg, #f4f2fa 0%, #e8e4f7 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-contact::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 101, 181, 0.08) 0%, transparent 70%);
  top: -250px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(124, 101, 181, 0.1);
}

.cta-contact h2 {
  font-size: 38px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.cta-contact p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-small {
  font-size: 14px;
  color: var(--gray-light);
  margin-top: 16px;
  margin-bottom: 0;
}

.btn-large {
  padding: 18px 40px;
  font-size: 17px;
}

/* ===== ANIMAÇÕES ===== */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1100px) {
  .psychologists-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero-search {
    padding: 120px 20px 40px;
  }

  .hero-search h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .filters-container {
    gap: 20px;
  }

  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .filter-pills::-webkit-scrollbar {
    height: 4px;
  }

  .filter-pills::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .filter-pills::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  .psychologists-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-image {
    height: 320px;
  }

  .results-header {
    flex-direction: column;
    text-align: center;
  }

  .cta-contact h2 {
    font-size: 28px;
  }

  .cta-contact p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-search {
    padding: 100px 16px 32px;
  }

  .hero-search h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .search-box {
    padding: 14px 18px;
  }

  .search-box input {
    font-size: 15px;
  }

  .filter-label {
    font-size: 12px;
  }

  .pill {
    padding: 8px 16px;
    font-size: 13px;
  }

  .psychologist-name {
    font-size: 20px;
  }

  .card-content {
    padding: 20px;
  }

  .card-image {
    height: 280px;
  }

  .btn-schedule {
    padding: 12px 20px;
    font-size: 14px;
  }

  .cta-contact {
    padding: 60px 20px;
  }

  .cta-contact h2 {
    font-size: 24px;
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 15px;
  }
}