/* ========================================
   MODOK League Season 5.0 - Draft-o-matic Styles
   V5.0.0-alpha.2
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  background-size: 400% 400%;
  animation: comicBg 15s ease infinite;
  color: #2c2c54;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Marker Felt', sans-serif;
  transition: all 0.3s ease;
  min-height: 100vh;
}

@keyframes comicBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 4px solid #2c2c54;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  margin-top: 20px;
  margin-bottom: 20px;
}

.container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: repeating-linear-gradient(
    45deg,
    #ff6b6b,
    #ff6b6b 10px,
    #feca57 10px,
    #feca57 20px
  );
  border-radius: 25px;
  z-index: -1;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-weight: 600;
  font-size: 1rem;
}

.control-group input, .control-group select, .control-group textarea {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.control-group input:focus, .control-group select:focus, .control-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.btn {
  padding: 15px 30px;
  background: linear-gradient(145deg, #ff6b6b, #ee5a52);
  color: white;
  border: 3px solid #2c2c54;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: linear-gradient(145deg, #ee5a52, #e54646);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.hero-section {
  padding: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}

.hero-section h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-card {
  padding: 8px 12px;
  background: linear-gradient(145deg, #fff, #f0f0f0);
  border: 3px solid #2c2c54;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: default;
  transform: rotate(-1deg);
}

.hero-card:nth-child(even) {
  transform: rotate(1deg);
}

.hero-card:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.trait-card-multiline {
  padding: 12px 15px;
  min-height: 80px;
  text-align: left;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.trait-card-multiline:hover {
  transform: rotate(0deg) scale(1.03);
}

.trait-line {
  display: block;
  width: 100%;
}

.trait-character {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 4px;
  color: #2c2c54;
}

.trait-hero {
  font-size: 0.9em;
  margin-bottom: 2px;
  color: #444;
}

.trait-ae {
  font-size: 0.9em;
  color: #666;
}

.results {
  margin-top: 30px;
}

.result-section {
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}

.result-section h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c2c54;
}

.draft-order {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.kouple-card {
  padding: 12px;
  text-align: center;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid rgba(74, 144, 226, 0.3);
}

.footer-note {
  margin-top: 30px;
  padding: 15px;
  background: rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.footer-note a {
  color: #2c2c54;
  text-decoration: none;
  font-weight: 600;
}

.footer-note a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
    margin: 10px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .hero-lists {
    grid-template-columns: 1fr;
  }
}
