@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

:root {
  --red: #ff2a2a;
  --dark: #0b0b0f;
  --purple: #2a004e;
  --text: #eaeaea;
}

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(circle at top, var(--purple), var(--dark));
  color: var(--text);
  text-align: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.8);
  padding: 15px 40px;
  border-bottom: 2px solid var(--red);
}

.logo {
  height: 60px;
}

nav a {
  color: var(--text);
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--red);
}

.hero {
  padding: 100px 20px;
  background: linear-gradient(45deg, rgba(255,42,42,0.2), rgba(42,0,78,0.2));
  border-bottom: 2px solid var(--red);
}

.hero h1 {
  font-size: 3em;
}

.hero span {
  color: var(--red);
}

.cards, .clips, .twitch-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}

.card {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

iframe {
  width: 400px;
  height: 225px;
  border: none;
  border-radius: 10px;
}

footer {
  padding: 15px;
  background: rgba(0,0,0,0.7);
  border-top: 2px solid var(--red);
  font-size: 0.9em;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.add-clip {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.add-clip input {
  width: 50%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-family: 'Orbitron', sans-serif;
}

.add-clip button {
  padding: 10px 20px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.add-clip button:hover {
  background: #ff4a4a;
}

.live-status {
  color: #ff2a2a;
  font-weight: bold;
  margin-top: 10px;
}

.offline {
  color: #888;
  font-style: italic;
  margin-top: 20px;
}

/* === Footer collé en bas de page === */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* pousse le footer en bas */
}

footer {
  margin-top: auto;
  text-align: center;
  background: rgba(0,0,0,0.7);
  border-top: 2px solid var(--red);
  font-size: 0.9em;
  padding: 15px;
  color: var(--text);
}

/* === Section Streams Twitch GTX === */
.stream-section {
  margin-bottom: 60px;
}

.stream-section h2 {
  color: var(--red);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.twitch-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.twitch-player iframe {
  width: 900px;
  height: 520px;
  border: 2px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
}

.twitch-chat iframe {
  width: 420px;
  height: 520px;
  border: 2px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
}

/* Mobile : cache le chat pour garder la lisibilité */
@media (max-width: 1000px) {
  .twitch-chat {
    display: none;
  }

  .twitch-player iframe {
    width: 100%;
    height: 450px;
  }
}

/* === Clips GTX : suppression manuelle === */
.clip-wrapper {
  position: relative;
  display: inline-block;
}

.delete-clip {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 0.8em;
  transition: background 0.3s;
}

.delete-clip:hover {
  background: #ff4a4a;
}
