:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #667eea);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

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

.subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-weight: 300;
}

.input-section {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topic-input {
  width: 100%;
  max-width: 600px;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.topic-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 1);
}

.start-button {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  margin: 0 1rem;
}

.start-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #ff5252, #26a69a);
}

.start-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.debate-container {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.debate-container h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.message {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 20px;
  animation: fadeIn 0.6s ease-in;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.message-role {
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pro-agent {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: white;
}

.con-agent {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  color: white;
}

.user-agent {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
}

.message-content {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.error {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
  padding: 1.5rem;
  border-radius: 15px;
  margin: 2rem;
  text-align: center;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.example-topics {
  margin-top: 2rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.example-topics strong {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
}

@media (max-width: 768px) {
  .header {
    padding: 2rem 1rem 1.5rem;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .input-section {
    padding: 1.5rem 1rem;
  }
  
  .topic-input {
    max-width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .start-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin: 0 0.5rem;
  }
  
  .debate-container {
    padding: 1.5rem 1rem;
  }
  
  .debate-container h3 {
    font-size: 1.5rem;
  }
  
  .message {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .message-content {
    font-size: 1rem;
  }
  
  .example-topics {
    margin-top: 1.5rem;
    font-size: 0.9rem;
  }
} 