/* Discord Server Banner Generator — styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 32px 20px 16px;
  background: #16162a;
  border-bottom: 1px solid #2a2a4a;
}

header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #5865F2;
  margin-bottom: 6px;
}

.tagline {
  font-size: 15px;
  color: #999;
}

main {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Controls panel */
.controls {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input[type="text"],
.field select {
  background: #252540;
  border: 1px solid #3a3a5c;
  border-radius: 8px;
  color: #eee;
  font-size: 15px;
  padding: 10px 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.field input[type="text"]:focus,
.field select:focus {
  border-color: #5865F2;
}

.field input[type="color"] {
  width: 60px;
  height: 36px;
  border: 2px solid #3a3a5c;
  border-radius: 8px;
  background: #252540;
  cursor: pointer;
  padding: 2px;
}

.field input[type="file"] {
  font-size: 13px;
  color: #999;
}

/* Preview panel */
.preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#bannerCanvas {
  width: 100%;
  max-width: 768px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: block;
}

#downloadBtn {
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#downloadBtn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

#downloadBtn:active {
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #2a2a4a;
}

footer a {
  color: #5865F2;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }
  .controls {
    flex: none;
    width: 100%;
  }
  #bannerCanvas {
    max-width: 100%;
  }
}
