/* ArmchairUI Theme CSS Variables and Styles */

:root {
  /* Primary Brand Colors */
  --brand-blue: #3b82f6;
  --brand-blue-hover: #2563eb;
  --brand-blue-deep: #1d4ed8;
  --brand-blue-darkest: #1e40af;
  
  /* Background Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-quaternary: #475569;
  
  /* Background Gradients */
  --gradient-main: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-light: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  --gradient-blue-text: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  
  /* Button Gradients */
  --gradient-button-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --gradient-button-hover: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --gradient-button-disabled: rgba(30, 41, 59, 0.5);
  
  /* Platform Colors */
  --gradient-yahoo: linear-gradient(135deg, #6b21b8 0%, #7c3aed 100%);
  --gradient-sleeper: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  --gradient-espn: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-disabled: #64748b;
  --text-dark: #000000;
  --text-white: #ffffff;
  
  /* Accent Colors */
  --accent-yellow: #eab308;
  --accent-red: #ef4444;
  --accent-red-dark: #dc2626;
  --accent-green: #10b981;
  --accent-green-light: #4ade80;
  --accent-green-lightest: #86efac;
  
  /* Status Colors */
  --status-active-bg: rgba(59, 130, 246, 0.15);
  --status-active-border: rgba(59, 130, 246, 0.3);
  --status-inactive-bg: rgba(100, 116, 139, 0.15);
  --status-inactive-border: rgba(100, 116, 139, 0.3);
  --status-connected-bg: rgba(156, 163, 175, 0.15);
  --status-disconnected-bg: rgba(239, 68, 68, 0.15);
  --status-error-bg: rgba(239, 68, 68, 0.1);
  --status-success-bg: rgba(34, 197, 94, 0.1);
  
  /* Border Colors */
  --border-primary: rgba(148, 163, 184, 0.2);
  --border-secondary: rgba(148, 163, 184, 0.3);
  --border-light: #e5e7eb;
  --border-focus: #3b82f6;
  --border-hover: rgba(59, 130, 246, 0.5);
  
  /* Interactive Colors */
  --hover-bg: rgba(148, 163, 184, 0.1);
  --input-bg: rgba(30, 41, 59, 0.5);
  --chat-user-bg: #ffffff;
  --chat-ai-bg: #cbd5e1;
  
  /* Shadow Colors */
  --shadow-primary: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
  --shadow-hover: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
  --shadow-menu: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base Styles */
body {
  background: var(--gradient-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Typography */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-disabled { color: var(--text-disabled); }
.text-accent-yellow { color: var(--accent-yellow); }
.text-accent-red { color: var(--accent-red); }
.text-accent-green { color: var(--accent-green); }

/* Background Classes */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-gradient-main { background: var(--gradient-main); }
.bg-gradient-secondary { background: var(--gradient-secondary); }
.bg-input { background: var(--input-bg); }

/* Button Styles */
.btn-primary {
  background: var(--gradient-button-primary);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  box-shadow: var(--shadow-primary);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gradient-button-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: var(--gradient-button-disabled);
  color: var(--text-disabled);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Card/Paper Styles */
.card {
  background: var(--gradient-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 24px;
}

.card-light {
  background: var(--gradient-light);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 24px;
}

/* Input Styles */
.input {
  background: var(--input-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.input:hover {
  border-color: var(--border-hover);
}

.input:focus {
  border-color: var(--border-focus);
  outline: none;
}

.input::placeholder {
  color: var(--text-secondary);
}

/* Status Indicators */
.status-active {
  background: var(--status-active-bg);
  color: var(--brand-blue);
  border: 1px solid var(--status-active-border);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-inactive {
  background: var(--status-inactive-bg);
  color: var(--text-tertiary);
  border: 1px solid var(--status-inactive-border);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-connected {
  background: var(--status-connected-bg);
  color: var(--text-secondary);
  border: 1px solid var(--status-inactive-border);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 500;
}

.status-disconnected {
  background: var(--status-disconnected-bg);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 500;
}

/* Interactive Elements */
.hover-bg:hover {
  background: var(--hover-bg);
}

.icon-button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-button:hover {
  color: var(--text-primary);
  background: var(--hover-bg);
}

.icon-button:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
}

/* Chat Styles */
.chat-message-user {
  background: var(--chat-user-bg);
  color: var(--text-dark);
  border-radius: 8px;
  padding: 16px;
  margin-left: auto;
  max-width: 80%;
}

.chat-message-ai {
  background: var(--chat-ai-bg);
  color: var(--text-dark);
  border-radius: 8px;
  padding: 16px;
  margin-right: auto;
  max-width: 80%;
  border: 1px solid var(--border-primary);
}

/* Platform-specific styles */
.platform-yahoo {
  background: var(--gradient-yahoo);
}

.platform-sleeper {
  background: var(--gradient-sleeper);
}

.platform-espn {
  background: var(--gradient-espn);
}

/* Menu/Dropdown Styles */
.menu {
  background: var(--gradient-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-menu);
  min-width: 150px;
}

.menu-item {
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background: var(--hover-bg);
}

/* Utility Classes */
.text-italic { font-style: italic; }
.text-bold { font-weight: 700; }
.text-medium { font-weight: 500; }
.text-small { font-size: 0.75rem; }
.text-xs { font-size: 0.625rem; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 50%; }

.shadow { box-shadow: var(--shadow-primary); }
.shadow-menu { box-shadow: var(--shadow-menu); }

.border { border: 1px solid var(--border-primary); }
.border-secondary { border: 1px solid var(--border-secondary); }

/* Responsive breakpoints (for reference) */
@media (max-width: 768px) {
  .card {
    padding: 16px;
  }
  
  .btn-primary {
    padding: 10px 16px;
    font-size: 0.875rem;
  }
}

/* Animation/Transition utilities */
.transition-all {
  transition: all 0.2s ease-in-out;
}

.transition-colors {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Special effects */
.backdrop-blur {
  backdrop-filter: blur(10px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}