/* ======================================
   SteamTools — Violet Premium Enhanced
   (garde ton style, mais plus beau)
   ====================================== */

:root {
  --bg-main: #0f0f17;
  --bg-container: #1b1b2d;
  --text-primary: #ecebfd;
  --text-secondary: #b9b8c8;

  --violet-primary: #8c7ae6;
  --violet-hover: #c2b6ff;

  --accent-bg: #24243b;

  --border-color: rgba(255,255,255,0.07);

  --success-color: #53d38d;
  --warning-color: #ffb244;
}

/* -------------------------
   Typographie premium
-------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "General Sans", "Inter", "Segoe UI", sans-serif;
  letter-spacing: -0.15px;
}

body {
  background: radial-gradient(circle at 22% 18%, #1b1934 0%, #0f0f17 70%);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}

/* -------------------------
   Container
-------------------------- */
.container {
  max-width: 620px;
  width: 100%;
  background: var(--bg-container);
  padding: 42px;
  border-radius: 22px;

  border: 1px solid var(--border-color);

  box-shadow:
    0 28px 48px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.03);

  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.container::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:2px;
  background: linear-gradient(90deg, var(--violet-primary), var(--violet-hover));
  opacity:.85;
}

/* -------------------------
   Header
-------------------------- */
header {
  text-align:center;
  margin-bottom:34px;
}

h1 {
  font-size:2.35rem;
  font-weight:800;
  background: linear-gradient(135deg, #fff 0%, var(--violet-hover) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom:6px;
}

.subtitle {
  color: var(--text-secondary);
  font-size:1.05rem;
  margin-top:4px;
}

/* Badge stats */
.stats-info {
  margin-top:12px;
  padding:7px 16px;
  border-radius:20px;

  background: rgba(140,122,230,0.10);
  border: 1px solid rgba(140,122,230,0.30);

  display:inline-flex;
  align-items:center;
  gap:8px;

  font-size:0.88rem;
  font-weight:600;

  backdrop-filter: blur(4px);
}

/* -------------------------
   File section
-------------------------- */
.file-info {
  display:flex;
  align-items:center;
  padding:24px;
  background: var(--accent-bg);
  border-radius:16px;
  margin:32px 0;
  border:1px solid var(--border-color);

  transition: transform .28s cubic-bezier(.25,.6,.3,1), 
              background .25s ease;
}

.file-info:hover {
  transform: translateY(-2px);
  background:#2c2a42;
}

.file-icon {
  width:58px;
  height:58px;
  border-radius:14px;
  background: rgba(140,122,230,0.12);
  border: 1px solid rgba(140,122,230,0.25);

  display:flex;
  justify-content:center;
  align-items:center;
  margin-right:20px;
}

.file-icon img {
  width:40px;
  height:40px;
  filter: drop-shadow(0 0 10px rgba(140,122,230,0.55));
}

.file-name {
  font-size:1.32rem;
  font-weight:700;
}

.file-meta {
  margin-top:6px;
  display:flex;
  gap:18px;
  font-size:0.92rem;
  color:var(--text-secondary);
}

/* -------------------------
   Download Buttons
-------------------------- */
.download-options {
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-bottom:32px;
}

.download-button {
  padding:16px 24px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--violet-primary), var(--violet-hover));
  color:#fff;

  font-size:1rem;
  font-weight:700;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  border:none;
  cursor:pointer;

  box-shadow: 0 14px 28px rgba(140,122,230,0.28);

  transition:transform .25s ease, 
             box-shadow .25s ease, 
             filter .25s ease;
}

.download-button:hover {
  transform:translateY(-4px);
  box-shadow:0 20px 44px rgba(168,153,249,0.42);
}

.download-button.downloading {
  background: linear-gradient(135deg, var(--warning-color), #ffd48a);
  box-shadow:none;
}

.download-button.completed {
  background:linear-gradient(135deg, var(--success-color), #74e9b5);
}

/* Miroir */
.mirror-button {
  background: rgba(140,122,230,0.07);
  border: 2px solid var(--violet-primary);
  color: var(--violet-hover);
}

.mirror-button:hover {
  background: linear-gradient(135deg, var(--violet-primary), var(--violet-hover));
  color:#fff;
}

/* -------------------------
   Old Versions
-------------------------- */
.old-versions {
  text-align:center;
  padding-top:26px;
  border-top:1px solid var(--border-color);
}

.old-versions h2 {
  font-size:1.22rem;
  font-weight:700;
}

.old-versions-grid {
  margin-top:18px;
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
}

.old-download-button {
  padding:10px 16px;
  border-radius:10px;

  border:1px solid var(--border-color);
  color:var(--text-secondary);

  text-decoration:none;
  font-weight:600;
  font-size:0.9rem;

  display:flex;
  justify-content:center;
  gap:6px;

  transition:transform .25s ease, 
             background .25s ease;
}

.old-download-button:hover {
  background: var(--violet-primary);
  color:#fff;
  transform:translateY(-3px);
}

/* -------------------------
   Footer
-------------------------- */
footer {
  margin-top:32px;
  font-size:0.87rem;
  color:var(--text-secondary);
  text-align:center;
}

/* -------------------------
   Mobile
-------------------------- */
@media (max-width:600px) {
  .container { padding:30px; }
  h1 { font-size:1.9rem; }

  .file-info {
    flex-direction:column;
    text-align:center;
    gap:14px;
  }

  .file-icon { margin-right:0; }
}
