/* Person Profile Styles */
.person-profile {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.person-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 0;
}

.person-hero-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.person-image {
  flex-shrink: 0;
}

.person-image img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.person-info {
  flex: 1;
}

.person-name {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.person-meta {
  margin-bottom: 30px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.meta-item i {
  width: 20px;
  opacity: 0.7;
}

.imdb-link {
  color: #f5c518;
  text-decoration: none;
  transition: opacity 0.3s;
}

.imdb-link:hover {
  opacity: 0.8;
}

.person-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-badge {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-director {
  background: rgba(220, 38, 127, 0.2);
  border-color: #dc267f;
}
.role-actor {
  background: rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
}
.role-writer {
  background: rgba(40, 167, 69, 0.2);
  border-color: #28a745;
}
.role-producer {
  background: rgba(23, 162, 184, 0.2);
  border-color: #17a2b8;
}

.person-stats {
  background: #f8f9fa;
  padding: 40px 0;
  border-bottom: 1px solid #e9ecef;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #dc267f;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
}

.stat-subtitle {
  margin-top: 10px;
  font-size: 0.9rem;
}

.stat-subtitle a {
  color: #495057;
  text-decoration: none;
}

.stat-subtitle a:hover {
  color: #dc267f;
}

.person-content {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
}

.biography-section {
  margin-bottom: 60px;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.biography-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #212529;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.biography-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
}

.person-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #555;
}

.btn-secondary:hover {
  background: #555;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface);
}

/* Movies Section */
.person-movies {
  padding: 3rem 0;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 30px;
}

.view-all-btn {
  background: #dc267f;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.view-all-btn:hover {
  background: #b91c5e;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #212529;
  margin: 0;
}

.role-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0 30px 20px 30px;
  border-bottom: 1px solid #e9ecef;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  text-decoration: none;
  color: #495057;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #dc267f;
  color: white;
  border-color: #dc267f;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  padding: 0 30px;
}

.movie-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.movie-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffc107;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.movie-info {
  padding: 15px;
}

.movie-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
  color: #212529;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6c757d;
}

.movie-year {
  font-weight: 500;
}

.movie-role {
  background: #f8f9fa;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.no-movies {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.section-footer {
  text-align: center;
}

/* Similar Persons */
.content-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.similar-persons {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.similar-persons h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #212529;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.similar-persons h2 {
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.similar-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.similar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e9ecef;
  transition: transform 0.3s;
}

.similar-item:hover {
  transform: translateX(5px);
  background: #f0f0f0;
}

.similar-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.similar-name {
  font-weight: 600;
  color: #212529;
  margin-bottom: 2px;
}

.similar-meta {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .person-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .person-image img {
    width: 150px;
    height: 225px;
  }

  .person-name {
    font-size: 2rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .role-filters {
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .person-stats {
    justify-content: center;
  }

  .role-filters {
    justify-content: center;
    flex-wrap: wrap;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .person-hero {
    padding: 40px 0;
  }

  .person-content {
    padding: 40px 0;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }

  .biography-section,
  .person-movies,
  .similar-persons {
    padding: 20px;
  }

  .section-header,
  .role-filters,
  .movies-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
}
