/* Styles spécifiques pour les pages de script */

.script-hero {
  height: 60vh;
  min-height: 400px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.script-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), rgba(10, 10, 15, 0.9));
  z-index: 1;
}

.script-hero .hero-content {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.script-info {
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
  position: relative;
}

.script-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.script-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  align-items: flex-start; /* Important: Aligner au début plutôt qu'au centre */
}

.script-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px; /* Limiter la largeur de l'image */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3), 0 0 40px rgba(157, 78, 221, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: auto; /* Laisser la hauteur s'adapter à l'image */
  align-self: flex-start; /* Important: S'aligner au début du conteneur */
}

.script-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.4), 0 0 50px rgba(157, 78, 221, 0.3);
}

.script-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* S'assurer que l'image est entièrement visible */
}

.script-text {
  flex: 1;
  min-width: 300px;
}

.script-text h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.script-description {
  margin-bottom: 30px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Style pour les sections de fields */
.script-field-section {
  margin-bottom: 30px;
}

.script-field-section h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
  text-shadow: var(--glow-mix);
}

.script-field-section ul {
  list-style: none;
  padding: 0;
}

.script-field-section li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.script-actions {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.neon-button {
  padding: 12px 25px;
  font-size: 1rem;
}

.neon-button.discord {
  background: linear-gradient(45deg, #5865f2, #7289da);
}

.neon-button.youtube {
  background: linear-gradient(45deg, #ff0000, #c4302b);
}

.neon-button i {
  margin-right: 8px;
}

.script-gallery {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3), 0 0 30px rgba(157, 78, 221, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.script-installation {
  position: relative;
  z-index: 1;
}

.installation-steps {
  background: rgba(15, 15, 20, 0.7);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.installation-step {
  margin-bottom: 20px;
}

.installation-step:last-child {
  margin-bottom: 0;
}

.installation-step h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--neon-blue);
}

.installation-step p {
  margin-bottom: 10px;
}

.installation-step pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  color: #f8f8f8;
  border-left: 3px solid var(--neon-purple);
  margin: 15px 0;
}

.installation-step code {
  font-family: "Consolas", "Monaco", monospace;
}

/* Style pour le lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3), 0 0 40px rgba(157, 78, 221, 0.2);
}

.lightbox p {
  color: white;
  margin-top: 15px;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.7);
}

.lightbox button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .script-details {
    flex-direction: column;
  }

  .script-image {
    max-width: 100%;
  }

  .action-buttons {
    flex-direction: column;
  }

  .neon-button {
    width: 100%;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.valorant-list-section {
  margin: 40px 0 0 0;
  padding: 0 0 40px 0;
}

.valorant-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.valorant-card {
  background: #181a20;
  border: 1.5px solid #3b82f6;
  border-radius: 16px;
  box-shadow: 0 0 16px #7e22ce33;
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  position: relative;
}

.valorant-card:hover {
  box-shadow: 0 0 32px #7e22ce77, 0 0 8px #3b82f6cc;
}

.valorant-rank-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px #3b82f6aa);
}

.valorant-rank-title {
  font-family: Orbitron, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.valorant-prix {
  font-size: 1.1rem;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 8px;
}

.valorant-stock {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  margin-top: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid;
  background: #2d2d2d;
  display: inline-block;
}

.valorant-stock-out {
  color: #ff3b3b;
  border-color: #ff3b3b;
  background: #2d2d2d;
}

.valorant-stock-in {
  color: #3b82f6;
  border-color: #3b82f6;
  background: #18202a;
}

@media (max-width: 600px) {
  .valorant-list-grid {
    grid-template-columns: 1fr;
  }
  .valorant-card {
    padding: 18px 8px 12px 8px;
  }
}
