:root {
  --sportsnet-bg: #003865;
  --sportsnet-accent: #ffffff;
  --sportsnet-headline: #ffffff;
  --sportsnet-team-left: #d22630;
  --sportsnet-team-right: #003865;
  --tsn-bg: #1a1a1a;
  --tsn-accent: #e10600;
  --tsn-headline: #ffffff;
  --tsn-team-left: #e10600;
  --tsn-team-right: #1a1a1a;
  --espn-bg: #000000;
  --espn-accent: #ce1126;
  --espn-headline: #ffffff;
  --espn-team-left: #ce1126;
  --espn-team-right: #000000;
  --nhl-bg: #111111;
  --nhl-accent: #cccccc;
  --nhl-headline: #ffffff;
  --nhl-team-left: #cccccc;
  --nhl-team-right: #111111;
  --font-main: 'JerseyM54', Arial, sans-serif;
}

body {
  font-family: var(--font-main);
  background: url('../../../assets/images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  margin: 0;
  padding: 0;
}

.v3-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  background: #23272b;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.layout-switcher {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
}

main {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 1rem;
}

.team-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.team {
  flex: 1 1 0;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1rem;
  min-width: 180px;
}

.vs-divider {
  align-self: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--sportsnet-accent);
  padding: 0 1rem;
}

.assets-list {
  margin: 0.5rem 0;
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.asset-row input {
  flex: 1;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.asset-row .remove-asset {
  background: #d22630;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}

.add-asset {
  background: var(--sportsnet-accent);
  color: var(--sportsnet-bg);
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
}

.options-section {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.options-section label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  gap: 0.3rem;
}

.generate-btn, .download-btn {
  background: var(--sportsnet-accent);
  color: var(--sportsnet-bg);
  border: none;
  border-radius: 4px;
  padding: 0.7rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.generate-btn:disabled, .download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.preview-section {
  margin-top: 2rem;
  text-align: center;
}

.banner-preview {
  min-height: 350px;
  background: #222;
  border-radius: 12px;
  border: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: #aaa;
}

/* Theme classes */
.theme-sportsnet {
  --theme-bg: var(--sportsnet-bg);
  --theme-accent: var(--sportsnet-accent);
  --theme-headline: var(--sportsnet-headline);
  --theme-team-left: var(--sportsnet-team-left);
  --theme-team-right: var(--sportsnet-team-right);
}
.theme-tsn {
  --theme-bg: var(--tsn-bg);
  --theme-accent: var(--tsn-accent);
  --theme-headline: var(--tsn-headline);
  --theme-team-left: var(--tsn-team-left);
  --theme-team-right: var(--tsn-team-right);
}
.theme-espn {
  --theme-bg: var(--espn-bg);
  --theme-accent: var(--espn-accent);
  --theme-headline: var(--espn-headline);
  --theme-team-left: var(--espn-team-left);
  --theme-team-right: var(--espn-team-right);
}
.theme-nhl {
  --theme-bg: var(--nhl-bg);
  --theme-accent: var(--nhl-accent);
  --theme-headline: var(--nhl-headline);
  --theme-team-left: var(--nhl-team-left);
  --theme-team-right: var(--nhl-team-right);
}

body.theme-sportsnet,
body.theme-tsn,
body.theme-espn,
body.theme-nhl,
body.theme-nameless {
  background: #000 !important;
}

@media (max-width: 700px) {
  .v3-container {
    padding: 0.2rem;
  }
  .team-section {
    flex-direction: column;
    gap: 0.5rem;
  }
  .team {
    min-width: unset;
    padding: 0.5rem;
  }
  .options-section {
    flex-direction: column;
    gap: 0.5rem;
  }
  .banner-preview {
    min-height: 200px;
  }
}

.login-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form {
  background: rgba(30, 30, 30, 0.92);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 350px;
  width: 100%;
  text-align: center;
}
.login-form img {
  width: 80px;
  margin-bottom: 1rem;
}
.login-form h2 {
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.login-form label {
  display: block;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: left;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.2rem;
  border-radius: 6px;
  border: 1px solid #888;
  background: #222;
  color: #fff;
  font-size: 1rem;
}
.login-form input[type="submit"] {
  width: 100%;
  background: var(--sportsnet-accent, #fff);
  color: var(--sportsnet-bg, #003865);
  border: none;
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.login-form input[type="submit"]:hover {
  background: #e0e0e0;
}
.login-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.input-group {
  position: relative;
  width: 100%;
  max-width: 260px;
}
.input-group input[type="text"],
.input-group input[type="password"] {
  width: 100%;
  padding: 1.2rem 0.8rem 0.5rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #888;
  background: #222;
  color: #fff;
  font-size: 1rem;
  outline: none;
}
.input-group label {
  position: absolute;
  left: 0.8rem;
  top: 1.1rem;
  color: #aaa;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s all;
  background: transparent;
}
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 0.2rem;
  left: 0.7rem;
  font-size: 0.85rem;
  color: var(--sportsnet-accent, #fff);
  background: #222;
  padding: 0 0.2rem;
}

