/* Mikey Markets - 30-Day Content Idea Generator Styles */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #457b9d;
  --light: #f1faee;
  --dark: #1d3557;
  --white: #ffffff;
  --gray: #6c757d;
  --success: #2a9d8f;
  --week1: #e63946;
  --week2: #f4a261;
  --week3: #2a9d8f;
  --week4: #9b5de5;
}

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

/* 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;
}

.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);
}

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

.week-card {
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
}

.week-header {
  padding: 15px 20px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.week-header h3 {
  font-size: 1.1rem;
}

.week-theme {
  font-size: 0.9rem;
  opacity: 0.9;
}

.week-1 .week-header { background: var(--week1); }
.week-2 .week-header { background: var(--week2); }
.week-3 .week-header { background: var(--week3); }
.week-4 .week-header { background: var(--week4); }

.content-list {
  padding: 15px 20px;
  list-style: none;
}

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

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

.content-text {
  flex: 1;
}

.content-day {
  font-weight: 600;
  color: var(--secondary);
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.content-idea {
  color: var(--dark);
  line-height: 1.4;
}

.copy-single-btn {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.copy-single-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.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;
  }
  
  .week-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .content-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .copy-single-btn {
    align-self: flex-start;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    width: 100%;
  }
}
