/* Mikey Markets - Pricing Confidence Calculator Styles */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #457b9d;
  --light: #f1faee;
  --dark: #1d3557;
  --white: #ffffff;
  --gray: #6c757d;
  --success: #2a9d8f;
  --warning: #f4a261;
  --danger: #e63946;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  min-height: 100vh;
  padding: 20px;
  color: var(--dark);
}

.app-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.app-header {
  background: var(--primary);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
}

.logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.app-header h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.tagline {
  opacity: 0.9;
  font-size: 1rem;
}

.app-main {
  padding: 30px 25px;
}

/* Calculator Section */
.calculator-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 0.95rem;
}

.input-group input {
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: border-color 0.2s ease;
}

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

.input-group input::placeholder {
  color: #adb5bd;
}

/* Results Section */
.results-section {
  animation: fadeIn 0.3s ease;
}

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

/* Verdict Card */
.verdict-card {
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 25px;
}

.verdict-card.undercharging {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border: 2px solid var(--danger);
}

.verdict-card.well-positioned {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border: 2px solid var(--success);
}

.verdict-card.overpriced {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid var(--warning);
}

.verdict-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}

.verdict-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.verdict-card.undercharging .verdict-title { color: var(--danger); }
.verdict-card.well-positioned .verdict-title { color: var(--success); }
.verdict-card.overpriced .verdict-title { color: #d97706; }

.verdict-text {
  color: var(--dark);
  line-height: 1.5;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--light);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
}

.stat-note {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
}

/* Insights Card */
.insights-card {
  background: var(--light);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.insights-card h4 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.insights-list {
  list-style: none;
}

.insights-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.insights-list li:last-child {
  border-bottom: none;
}

.insight-icon {
  font-size: 1.2rem;
}

/* Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 140px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: #152538;
}

.copied-msg {
  text-align: center;
  color: var(--success);
  font-weight: 600;
  margin-top: 15px;
  padding: 10px;
  background: #d4edda;
  border-radius: 6px;
}

.empty-state {
  text-align: center;
  color: var(--gray);
  padding: 30px;
  background: var(--light);
  border-radius: 12px;
}

/* Footer */
.app-footer {
  background: #f8f9fa;
  padding: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  
  .app-header {
    padding: 20px 15px;
  }
  
  .app-header h1 {
    font-size: 1.4rem;
  }
  
  .app-main {
    padding: 20px 15px;
  }
  
  .calculator-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}
