/* Staff Styles - Enhanced for Novania */

/* Staff Hero Section */
.staff-hero {
  position: relative;
  padding: 80px 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/staff-bg.jpg") center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.staff-particles,
.join-team-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 215, 0, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  z-index: 1;
  animation: floatAnimation 60s infinite linear;
}

.staff-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.staff-hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  animation: titleGlow 3s infinite alternate;
}

.staff-hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--light);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.staff-hero-description {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 15px;
  margin: 0 auto 30px;
  max-width: 600px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Staff Main Section */
.staff-main-section {
  padding: 60px 0;
  position: relative;
}

.staff-category-container {
  margin-bottom: 60px;
}

.staff-category {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}

.staff-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary),
    transparent
  );
  margin: 0 auto 40px;
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Staff Cards */
.staff-card {
  perspective: 1000px;
  height: 380px;
  position: relative;
}

.staff-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.staff-card:hover .staff-card-inner {
  transform: rotateY(180deg);
}

.staff-card-inner.flipped {
  transform: rotateY(180deg);
}

.staff-card-inner.flipped .staff-avatar {
  opacity: 0;
  transition: opacity 0.1s ease;
}

.staff-card-front,
.staff-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-backface-visibility: hidden; /* Explicitement pour Firefox */
  transform-style: preserve-3d;
  border-radius: 10px;
  overflow: hidden;
}

.staff-card-front {
  background-color: var(--darker);
  z-index: 2; /* Plus élevé sur le front */
}

.staff-card-back {
  background-color: var(--darker);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  z-index: 1; /* Plus bas sur le back */
}

.staff-header {
  height: 220px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)),
    url("../images/staff-card-bg.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
}

.staff-avatar {
  width: 120px;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--primary);
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.staff-card:hover .staff-avatar {
  transform: scale(1.05);
}

.staff-card:hover .staff-avatar img {
  transform: scale(1.1);
}

.staff-content {
  padding: 30px 20px;
}

.staff-name {
  font-size: 1.8rem;
  color: var(--light);
  margin-bottom: 10px;
}

.staff-role {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 5px;
}

.staff-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.staff-role.developer {
  background-color: #3498db;
  color: white;
}

.staff-role[data-role="admin"] {
  background-color: #e74c3c;
  color: white;
}

.staff-role[data-role="mod"] {
  background-color: #3498db;
  color: white;
}

.staff-role[data-role="helper"] {
  background-color: #2ecc71;
  color: white;
}

.staff-role[data-role="builder"] {
  background-color: #f39c12;
  color: white;
}

.staff-role[data-role="animator"] {
  background-color: #9b59b6;
  color: white;
}

.staff-back-content {
  max-width: 100%;
}

.staff-divider {
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  margin: 15px auto 20px;
}

.staff-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.6;
}

.staff-social {
  margin-top: 20px;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.social-item.discord:hover {
  background-color: #7289da;
}

.social-item i {
  font-size: 1.2rem;
}

/* Empty Staff Section */
.empty-staff {
  grid-column: 1 / -1;
  background-color: var(--darker);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.empty-staff-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  opacity: 0.7;
}

.empty-staff p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Join Team Section */
.join-team-section {
  padding: 80px 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../images/join-team-bg.jpg") center/cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

.join-team-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.join-team-title {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  animation: titleGlow 3s infinite alternate;
}

.join-team-subtitle {
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: 40px;
}

.join-team-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.requirements-card,
.positions-card {
  background-color: var(--darker);
  border-radius: 15px;
  padding: 30px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.requirements-card:hover,
.positions-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.requirements-card:before,
.positions-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.requirements-card:hover:before,
.positions-card:hover:before {
  opacity: 1;
}

.requirements-header,
.positions-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.requirements-icon,
.positions-icon {
  width: 50px;
  height: 50px;
  background: rgba(52, 152, 219, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--primary);
}

.requirements-header h3,
.positions-header h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0;
}

.requirements-list,
.positions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements-list li,
.positions-list li {
  display: flex;
  align-items: baseline;
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.requirements-list li i,
.positions-list li i {
  color: var(--primary);
  margin-right: 10px;
  min-width: 20px;
  text-align: center;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #7289da, #5e77c9);
  color: white !important;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  width: 100%;
  border: none;
  text-decoration: none !important;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.apply-btn:hover {
  transform: translateY(-0px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  color: white !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #8299ea, #6e87d9);
}

.apply-btn i {
  font-size: 1.4rem;
}

/* Animation Keyframes */
@keyframes titleGlow {
  0% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  100% {
    text-shadow:
      0 0 20px rgba(255, 215, 0, 0.8),
      0 0 30px rgba(255, 215, 0, 0.5);
  }
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(30px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-50px) translateX(-30px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-20px) translateX(-50px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .staff-grid {
    gap: 25px;
  }

  .join-team-cards {
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .staff-hero-title,
  .join-team-title {
    font-size: 2.8rem;
  }

  .staff-hero-subtitle,
  .join-team-subtitle {
    font-size: 1.3rem;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .requirements-card,
  .positions-card {
    max-width: 100%;
    padding: 25px;
  }

  .requirements-header h3,
  .positions-header h3 {
    font-size: 1.5rem;
  }

  .staff-card {
    height: 400px;
  }

  .staff-name {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .staff-hero {
    padding: 60px 0;
  }

  .staff-hero-title,
  .join-team-title {
    font-size: 2.2rem;
  }

  .staff-hero-subtitle,
  .join-team-subtitle {
    font-size: 1.2rem;
  }

  .staff-main-section {
    padding: 40px 0;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .staff-card {
    height: 380px;
  }

  .staff-category {
    font-size: 2rem;
  }

  .staff-name {
    font-size: 1.5rem;
  }

  .staff-header {
    height: 200px;
  }

  .staff-description {
    font-size: 0.95rem;
  }

  .join-team-section {
    padding: 60px 0;
  }

  .join-team-cards {
    flex-direction: column;
    gap: 30px;
  }

  .requirements-card,
  .positions-card {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .requirements-header h3,
  .positions-header h3 {
    font-size: 1.4rem;
  }

  .requirements-list li,
  .positions-list li {
    font-size: 1rem;
  }

  .apply-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .staff-hero {
    padding: 50px 0;
  }

  .staff-hero-title,
  .join-team-title {
    font-size: 1.8rem;
  }

  .staff-hero-subtitle,
  .join-team-subtitle {
    font-size: 1.1rem;
  }

  .staff-hero-description {
    padding: 15px;
    font-size: 0.95rem;
  }

  .staff-main-section {
    padding: 30px 0;
  }

  .staff-card {
    height: 360px;
  }

  .staff-category {
    font-size: 1.7rem;
  }

  .staff-category-container {
    margin-bottom: 40px;
  }

  .staff-line {
    margin-bottom: 30px;
  }

  .staff-header {
    height: 180px;
  }

  .staff-avatar {
    width: 100px;
    height: 100px;
    top: 80px;
  }

  .staff-content {
    padding: 60px 20px 20px;
  }

  .staff-name {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .staff-roles {
    gap: 8px;
  }

  .staff-role {
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  .staff-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .social-item {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .empty-staff {
    padding: 30px 15px;
  }

  .empty-staff-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .empty-staff p {
    font-size: 0.95rem;
  }

  .join-team-section {
    padding: 40px 0;
  }

  .requirements-card,
  .positions-card {
    padding: 20px 15px;
  }

  .requirements-icon,
  .positions-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-right: 12px;
  }

  .requirements-header h3,
  .positions-header h3 {
    font-size: 1.3rem;
  }

  .requirements-list,
  .positions-list {
    padding-left: 10px;
  }

  .requirements-list li,
  .positions-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .apply-btn {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .staff-hero-title,
  .join-team-title {
    font-size: 1.6rem;
  }

  .staff-hero-subtitle,
  .join-team-subtitle {
    font-size: 1rem;
  }

  .staff-card {
    height: 350px;
  }

  .staff-header {
    height: 150px;
  }

  .staff-avatar {
    width: 90px;
    height: 90px;
    top: 70px;
    border-width: 3px;
  }

  .staff-content {
    padding: 50px 15px 15px;
  }

  .staff-name {
    font-size: 1.2rem;
  }

  .staff-role {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .staff-description {
    font-size: 0.85rem;
  }

  .social-item {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .requirements-header,
  .positions-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .requirements-icon,
  .positions-icon {
    margin-right: 0;
  }

  .requirements-list li i,
  .positions-list li i {
    min-width: 15px;
    margin-right: 8px;
  }

  .apply-btn {
    font-size: 0.9rem;
  }

  .apply-btn i {
    font-size: 1.1rem;
  }
}
