/* === Global Dark Theme === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d0d0d;
  color: #ddd;
  margin: 0;
  padding: 0;
}

/* === Header === */
header {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, #1c1c1c, #111);
  border-bottom: 2px solid #2a2a2a;
}

/* Auth-box uppe till höger */
#auth-box {
  position: absolute;
  top: 20px;
  right: 25px;
  text-align: right;
  color: #ffcc00;
}

/* Twitch-logo längst ner vänster */
.twitch-logo {
  position: absolute;
  bottom: 12px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: 0.2s ease;
}

.twitch-logo img {
  width: 32px;
  height: 32px;
  display: block;
}

.twitch-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Twitch-text bredvid loggan */
.twitch-text {
  position: absolute;
  bottom: 14px;
  left: 55px; /* logga 32px + liten marginal */
  color: #ffcc00;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

/* Header-typografi */
header h1 {
  color: #ffcc00;
  font-size: 2.6rem;
  margin-bottom: 10px;
}

header p {
  color: #aaa;
  font-size: 1.1rem;
}

/* === UI GRID === */
.ui-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
  max-width: 1600px;
  margin: 0 auto;
}

/* === CARD (ALL UI PREVIEWS) === */
.ui-card {
  background: #1a1a1a;
  border-radius: 12px;
  width: 240px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 0 12px rgba(0,0,0,0.55);
  transition: transform 0.2s ease;
  height: 430px;
  overflow: visible;
  position: relative;
}

.ui-card:hover {
  transform: scale(1.2);
  z-index: 9999;
}

.ui-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.25s ease;
  position: relative;
  z-index: 1;
  transform-origin: center top;
}

.ui-card p {
  margin: 12px 0 16px;
  flex-grow: 1;
}

/* Buttons */
.btn {
  padding: 10px 18px;
  background: #ffcc00;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.22s;
}

.btn:hover {
  background: #ffdd33;
  transform: translateY(-2px);
}

/* === WIDE CARD (Weak Auras + Extra Files) === */
.ui-card-wide {
  flex: 1 1 100%;
  max-width: 1200px;
  width: 100%;
  background: #1a1a1a;
  border-radius: 14px;
  box-shadow: 0 0 16px rgba(0,0,0,0.45);
  padding: 28px;
  text-align: center;
  margin: 30px auto 20px;
  border-top: 3px solid #ffcc00;
  position: relative;
  box-sizing: border-box;
}

.ui-card-wide::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffcc00;
  box-shadow: 0 0 12px #ffcc00, 0 0 28px #ffbb00;
}

.multi-downloads {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 6px 0;
  position: static;
  width: auto;
}

.mini-btn {
  background: #2b2b2b;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #444;
  color: #ffcc00;
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s;
  min-width: 120px;
  margin: 4px;
}

.mini-btn:hover {
  background: #ffcc00;
  color: #000;
}

/* Category select */
.category-select {
  text-align: center;
  margin-top: 30px;
}

.category-select select {
  background: #1a1a1a;
  border: 1px solid #444;
  padding: 10px 16px;
  color: #ffcc00;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.category-select select:hover {
  border-color: #ffcc00;
}

/* === MOBILE FIXES === */
@media (max-width: 600px) {
  .ui-card-wide {
    padding: 20px;
    margin-top: 26px;
    margin-bottom: 20px;
  }

  .multi-downloads {
    width: 100%;
    max-width: 100%;
    padding: 12px 6px 0 6px;
    gap: 8px;
    justify-content: center;
  }

  .mini-btn {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
    text-align: center;
  }

  /* Twitch mobilanpassning */
  .twitch-logo img {
    width: 24px;
    height: 24px;
  }

  .twitch-text {
    bottom: 50px;
    left: 15px;
    font-size: 13px;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .ui-card:hover {
    transform: none !important;
  }
  .ui-card {
    transition: none;
  }

  /* Info text styling */
  .info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #ffcc00;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-left: 4px solid #ffcc00;
    border-radius: 6px;
    margin: 12px 0;
  }
}