/* -----------------------------
   GLOBAL STYLES
------------------------------ */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #121212;
  color: #e0e0e0;
}

/* -----------------------------
   HEADER
------------------------------ */
header {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 20px;
  border-bottom: 1px solid #333;
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h1 {
  margin: 0;
  color: #e0e0e0;
  font-size: 1.8em;
}
.logo p {
  margin: 0;
  font-size: 0.9em;
  color: #bbb;
}
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.nav-links li {
  margin-left: 20px;
}
.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #A020F0;
}

/* -----------------------------
   HERO SECTION
------------------------------ */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?auto=format&fit=crop&w=1650&q=80') no-repeat center center/cover;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
  padding: 0 20px;
}
.hero h2 {
  font-size: 3em;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.btn {
  background: linear-gradient(45deg, #A020F0, #D070FF);
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}
.btn:hover {
  background: linear-gradient(45deg, #D070FF, #A020F0);
}

/* -----------------------------
   RELEASE GRID (Dashboard)
------------------------------ */
.release-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.release-card {
  background: #242424;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #e0e0e0;
}

.release-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.release-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  max-width: 250px;
}

.release-card h4 {
  margin: 0;
  margin-bottom: 5px;
  font-size: 1.2em;
  color: #A020F0;
}

.release-title {
  font-size: 1em;
  margin-bottom: 5px;
  color: #fff;
}

.release-status {
  font-size: 0.9em;
  color: #ccc;
}

.new-release-btn-container {
  text-align: center;
  margin-top: 40px;
}

.create-release-btn {
  background: linear-gradient(45deg, #A020F0, #D070FF);
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}
.create-release-btn:hover {
  background: linear-gradient(45deg, #D070FF, #A020F0);
}

/* -----------------------------
   CUSTOM FILE UPLOAD
------------------------------ */
.custom-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.file-label {
  background: linear-gradient(45deg, #A020F0, #D070FF);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  outline: none;
}
.file-label:hover {
  background: linear-gradient(45deg, #D070FF, #A020F0);
}
input[type="file"] {
  display: none;
}
.file-name {
  font-size: 0.9em;
  color: #bbb;
  font-style: italic;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -----------------------------
   FORMS & CONTENT BLOCKS
------------------------------ */
.auth-page,
.dashboard,
.subscription,
.terms {
  max-width: 800px;
  margin: 40px auto;
  background: #1f1f1f;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.auth-page form,
.dashboard form {
  display: flex;
  flex-direction: column;
}
.auth-page label,
.dashboard label {
  margin-top: 15px;
  font-weight: 500;
}
.auth-page input,
.dashboard input,
.dashboard select,
.dashboard textarea {
  padding: 10px;
  margin-top: 5px;
  border: none;
  border-radius: 5px;
  background: #2a2a2a;
  color: #fff;
}

/* -----------------------------
   NOTIFICATIONS
------------------------------ */
.error {
  background: #ff4d4d;
  padding: 12px;
  margin: 15px 0;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  color: #000;
}
.success {
  background: #66ff66;
  padding: 12px;
  margin: 15px 0;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  color: #000;
}
.info {
  background: #cccc00;
  padding: 12px;
  margin: 15px 0;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  color: #000;
}

/* -----------------------------
   FOOTER
------------------------------ */
footer {
  background: #1a001a;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9em;
  color: #bbb;
}

/* -----------------------------
   CHAT WINDOW (Optionnel)
------------------------------ */
.chat-window {
  background: #1f1f1f;
  border: 1px solid #A020F0;
  border-radius: 10px;
  width: 320px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 80px;
  right: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.chat-header {
  background: #A020F0;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.chat-header h3 {
  margin: 0;
  font-size: 1.1em;
}
.chat-header .close-chat {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
}
.chat-body {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
}
.chat-footer {
  padding: 10px;
  background: #2a2a2a;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.chat-footer form {
  display: flex;
}
.chat-footer input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 5px;
  margin-right: 5px;
}

/* -----------------------------
   CRÉDITS DYNAMIQUES
------------------------------ */
#credits-container .credit-field {
  margin-bottom: 8px;
}
