/* Mikey Markets - Weekly Revenue Planner Styles */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #457b9d;
  --light: #f1faee;
  --dark: #1d3557;
  --white: #ffffff;
  --gray: #6c757d;
  --success: #2a9d8f;
  --gold: #f4a261;
}

* {
  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: 750px;
  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;
}

.intro-text {
  text-align: center;
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Calculator Section */
.calculator-section {
  margin-bottom: 25px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.input-row.single {
  grid-template-columns: 1fr;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.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-hint {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 5px;
}

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

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

.results-section h2 {
  text-align: center;
  color: var(--secondary);
  margin-bottom: 25px;
}

/* Goal Card */
.goal-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 25px;
}

.goal-number {
  font-size: 2.5rem;
  font-weight: 700;
}

.goal-label {
  opacity: 0.9;
  margin-top: 5px;
}

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

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

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

.breakdown-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.breakdown-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.breakdown-label {
  font-size: 0.9rem;
  color: var(--dark);
  margin-top: 5px;
  font-weight: 600;
}

.breakdown-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 5px;
}

/* Daily Section */
.daily-section {
  background: var(--secondary);
  color: var(--white);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.daily-section h3 {
  text-align: center;
  margin-bottom: 20px;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.daily-card {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.daily-number {
  font-size: 2rem;
  font-weight: 700;
}

.daily-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 5px;
}

.daily-summary {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

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

.insights-section h4 {
  color: var(--secondary);
  margin-bottom: 15px;
}

.insight-item {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.insight-item:last-child {
  border-bottom: none;
}

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

.insight-text {
  line-height: 1.5;
}

/* 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;
  }
  
  .input-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  
  .daily-grid {
    grid-template-columns: 1fr;
  }
  
  .goal-number {
    font-size: 2rem;
  }
  
  .breakdown-number,
  .daily-number {
    font-size: 1.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}
