/*
Dosya: css/components/actors.css
Amaç: Oyuncular bölümü stilleri
*/

/* Oyuncular Bölümü */
#oyuncular {
  background-color: var(--primary-bg);
}

#oyuncular h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-2xl);
  color: var(--accent-color);
}

/* Actor Card */
.actor-card {
  background-color: var(--secondary-bg);
  padding: var(--spacing-lg);
  border-radius: var(--br-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.actor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Actor Link */
.actor-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.actor-link:hover {
  text-decoration: none;
  color: inherit;
}

.actor-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: var(--br-lg);
}

.actor-image {
  margin-bottom: var(--spacing-md);
  border-radius: var(--br-lg);
  overflow: hidden;
  border: 2px solid var(--accent-color);
  width: 150px;
  height: 150px;
  margin: 0 auto var(--spacing-md);
}

.actor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actor-card h4 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.actor-card .character {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.actor-card .bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* View All Container */
.view-all-container {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

.no-actors {
  text-align: center;
  padding: var(--spacing-2xl);
  background-color: var(--secondary-bg);
  border-radius: var(--br-lg);
  margin-top: var(--spacing-lg);
}

.no-actors p {
  color: var(--text-secondary);
  font-style: italic;
}

/* Tüm Oyuncular Sayfası */
#all-actors {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #0f0f0f 100%);
  position: relative;
}

#all-actors::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

#all-actors h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: var(--spacing-2xl);
  color: var(--accent-color);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

#all-actors h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  border-radius: 2px;
}

.all-actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.full-card {
  display: flex;
  background: linear-gradient(145deg, var(--secondary-bg) 0%, #1a1a1a 100%);
  padding: var(--spacing-xl);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.full-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.6s ease;
}

.full-card:hover::before {
  left: 100%;
}

.full-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.3);
}

.full-card .actor-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
}

.full-card .actor-link:hover {
  text-decoration: none;
  color: inherit;
}

.full-card .actor-image {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--accent-color);
  margin-right: var(--spacing-xl);
  margin: 0 var(--spacing-xl) 0 0;
  position: relative;
  transition: all 0.3s ease;
}

.full-card .actor-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 17px;
}

.full-card:hover .actor-image::before {
  opacity: 1;
}

.full-card .actor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.full-card:hover .actor-image img {
  transform: scale(1.1);
}

.actor-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.actor-info h4 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.full-card:hover .actor-info h4 {
  color: #f4d03f;
}

.actor-info .character {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding-left: var(--spacing-sm);
}

.actor-info .character::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.actor-info .character::after {
  content: '"';
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.actor-info .bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.full-card:hover .actor-info .bio {
  opacity: 1;
}

/* Modern Animasyon Sınıfı */
.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile düzenleme */
@media (max-width: 768px) {
  #oyuncular h2, #all-actors h2 {
    font-size: 2.2rem;
  }

  #all-actors h2::after {
    width: 60px;
    height: 3px;
  }

  .actor-card {
    padding: var(--spacing-md);
  }

  .actor-card:not(.full-card) .actor-image {
    width: 120px;
    height: 120px;
  }

  .all-actors-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .full-card {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: 16px;
  }

  .full-card .actor-image {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: 16px;
  }

  .actor-info {
    text-align: center;
  }

  .actor-info h4 {
    font-size: 1.2rem;
  }

  .actor-info .character {
    font-size: 0.9rem;
    padding-left: 0;
  }

  .actor-info .character::before,
  .actor-info .character::after {
    display: none;
  }

  .actor-info .bio {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #all-actors h2 {
    font-size: 1.8rem;
  }

  .full-card {
    padding: var(--spacing-md);
    border-radius: 12px;
  }

  .full-card .actor-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
  }

  .actor-info h4 {
    font-size: 1.1rem;
  }

  .actor-info .character {
    font-size: 0.85rem;
  }

  .actor-info .bio {
    font-size: 0.85rem;
  }
}
