/* Mikey Markets - Lead Magnet Idea Generator Styles */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #457b9d;
  --light: #f1faee;
  --dark: #1d3557;
  --white: #ffffff;
  --gray: #6c757d;
  --success: #2a9d8f;
}

* {
  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;
  font-style: italic;
}

/* Input Section */
.input-group {
  margin-bottom: 20px;
}

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

.input-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.helper-text {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 15px;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

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

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

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

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

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.action-buttons .btn {
  flex: 1;
  min-width: 180px;
}

/* Loading */
#loading-section {
  text-align: center;
  padding: 40px;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid #e9ecef;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

/* Results */
.results-header {
  text-align: center;
  margin-bottom: 25px;
}

.results-header h2 {
  color: var(--secondary);
  margin-bottom: 8px;
}

.results-subtitle {
  color: var(--gray);
}

.ideas-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Idea Card */
.idea-card {
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  border-left: 4px solid var(--primary);
}

.idea-card:nth-child(2) { border-left-color: #f4a261; }
.idea-card:nth-child(3) { border-left-color: #2a9d8f; }
.idea-card:nth-child(4) { border-left-color: #9b5de5; }
.idea-card:nth-child(5) { border-left-color: #00b4d8; }

.idea-header {
  padding: 20px 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.idea-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.4;
  flex: 1;
}

.format-badge {
  background: var(--accent);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.idea-body {
  padding: 0 20px 20px;
}

.idea-description {
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

.idea-why {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

.idea-why strong {
  color: var(--secondary);
}

.idea-footer {
  padding: 0 20px 15px;
  display: flex;
  justify-content: flex-end;
}

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

/* 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;
  }
  
  .idea-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .format-badge {
    align-self: flex-start;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    width: 100%;
  }
}
