/* ============================================
   E-LIBRARY AUTHORS PAGE STYLES
   ============================================ */

/* Hero Section */
.authors-hero {
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.authors-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
  animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-icon {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

.hero-icon i {
  font-size: 3rem;
  color: white;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
}

/* Search & Filter Section */
.search-filter-section {
  margin: 50px 0;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b5cf6;
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  padding: 16px 20px 16px 55px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-box input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.filter-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-color: #8b5cf6;
  color: white;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Authors Grid */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Author Card */
.author-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.author-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Author Header */
.author-header {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  padding: 40px 30px 80px;
  position: relative;
  overflow: hidden;
}

.author-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.author-avatar-large {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.author-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.author-card:hover .author-avatar-large img {
  transform: scale(1.05);
}

.author-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.author-status.online i {
  color: #10b981;
  font-size: 0.6rem;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.author-badge-featured,
.author-badge-popular {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  z-index: 2;
  animation: badgePulse 2s ease-in-out infinite;
}

.author-badge-featured {
  background: rgba(245, 158, 11, 0.9);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.author-badge-popular {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Author Body */
.author-body {
  padding: 30px;
  margin-top: -50px;
  position: relative;
  z-index: 3;
}

.author-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 5px 0;
  text-align: center;
}

.author-title {
  font-size: 1rem;
  color: #8b5cf6;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-align: center;
}

.author-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item i {
  font-size: 1.3rem;
  color: #8b5cf6;
}

.stat-item span {
  font-size: 0.85rem;
  color: #4a5568;
  font-weight: 600;
}

.author-bio {
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.author-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.genre-tag {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #4a5568;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.genre-tag:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  transform: translateY(-2px);
}

/* Author Footer */
.author-footer {
  padding: 20px 30px;
  background: #f8fafc;
  display: flex;
  gap: 10px;
}

.btn-view-books {
  flex: 1;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-view-books:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  color: white;
}

.btn-follow {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-follow:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
  transform: scale(1.1);
}

.btn-follow.following {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
}

/* Load More Button */
.btn-load-more {
  background: white;
  border: 2px solid #8b5cf6;
  color: #8b5cf6;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-load-more:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-icon {
    width: 80px;
    height: 80px;
  }

  .hero-icon i {
    font-size: 2rem;
  }

  .authors-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: center;
  }

  .search-box input {
    font-size: 0.9rem;
  }

  .author-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-item {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .author-footer {
    flex-direction: column;
  }

  .btn-follow {
    width: 100%;
    border-radius: 25px;
  }
}
