/* ========================================
   Bad Habits Guide Styles
   ======================================== */

.bad-habits-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
}

/* Back Button */
.back-button {
  display: inline-block;
  margin-bottom: 2em;
  padding: 0.75em 1.5em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3em;
  padding: 3em 2em;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border-radius: 12px;
}

.page-header h1 {
  margin: 0 0 0.5em 0;
  font-size: 3em;
}

.subtitle {
  font-size: 1.3em;
  margin: 0;
  opacity: 0.95;
}

/* Introduction Section */
.intro-section {
  margin-bottom: 3em;
}

.intro-card {
  background: white;
  padding: 2.5em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #3498db;
}

.intro-card h2 {
  color: #3498db;
  margin-top: 0;
  font-size: 2em;
}

.intro-card p {
  line-height: 1.8;
  margin-bottom: 1em;
  color: #333;
  font-size: 1.05em;
}

.intro-card strong {
  color: #2c3e50;
}

/* Section Styles */
.habits-section {
  margin-bottom: 4em;
}

.section-title {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 3px solid #e0e0e0;
  text-align: center;
}

.section-intro {
  text-align: center;
  font-size: 1.2em;
  color: #666;
  margin-bottom: 2em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Habit Cards */
.habit-card {
  background: white;
  border-radius: 12px;
  padding: 2em;
  margin-bottom: 2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 5px solid #e74c3c;
}

.habit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.owner-habit {
  border-left-color: #f39c12;
}

.habit-header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 2px solid #f0f0f0;
}

.habit-icon {
  font-size: 2.5em;
  min-width: 50px;
}

.habit-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.8em;
}

.habit-content h4 {
  color: #e74c3c;
  font-size: 1.3em;
  margin: 1.5em 0 0.8em 0;
}

.owner-habit .habit-content h4 {
  color: #f39c12;
}

.why-it-happens,
.why-its-bad,
.how-to-fix {
  margin-bottom: 1.5em;
}

.why-it-happens ul,
.why-its-bad ul,
.how-to-fix ol,
.how-to-fix ul {
  margin: 0.8em 0;
  padding-left: 2em;
}

.why-it-happens li,
.why-its-bad li,
.how-to-fix li {
  margin-bottom: 0.8em;
  line-height: 1.6;
  color: #555;
}

.how-to-fix ol li {
  padding-left: 0.5em;
}

.how-to-fix li strong {
  color: #2c3e50;
}

.why-its-bad p {
  margin: 0.8em 0;
  line-height: 1.7;
  color: #555;
}

.prevention-tip {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 1.2em;
  border-radius: 8px;
  margin-top: 1.5em;
  border-left: 4px solid #27ae60;
}

.prevention-tip strong {
  color: #27ae60;
}

/* Owner Section Styling */
.owner-section {
  background: linear-gradient(135deg, #fff9e6 0%, #ffedd5 100%);
  padding: 3em;
  border-radius: 12px;
}

/* Principles Section */
.principles-section {
  margin: 4em 0;
  padding: 3em;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.principle-card {
  background: white;
  padding: 2em;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.principle-card:hover {
  transform: translateY(-5px);
}

.principle-icon {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.principle-card h3 {
  color: #2c3e50;
  margin: 0.5em 0;
  font-size: 1.5em;
}

.principle-card p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Professional Help Section */
.professional-help-section {
  margin: 4em 0;
}

.professional-help-section h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 1.5em;
}

.help-card {
  background: white;
  padding: 2.5em;
  border-radius: 12px;
  margin-bottom: 2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.help-card.warning {
  border-left: 5px solid #e74c3c;
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.help-card.info {
  border-left: 5px solid #3498db;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.help-card h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.8em;
}

.help-card ul {
  margin: 1em 0;
  padding-left: 2em;
}

.help-card li {
  margin-bottom: 0.8em;
  line-height: 1.6;
  color: #555;
}

.help-card p {
  margin-top: 1.5em;
  line-height: 1.7;
  color: #333;
}

.help-card strong {
  color: #e74c3c;
}

.help-card.info strong {
  color: #3498db;
}

/* Conclusion Section */
.conclusion-section {
  margin: 4em 0;
}

.conclusion-section h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 1.5em;
}

.conclusion-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3em;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.conclusion-card p {
  font-size: 1.15em;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.final-quote {
  background: rgba(255, 255, 255, 0.2);
  padding: 2em;
  border-radius: 8px;
  margin-top: 2em;
  font-size: 1.3em;
  font-style: italic;
  text-align: center;
  border-left: 5px solid rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .bad-habits-container {
    padding: 1em;
  }

  .page-header {
    padding: 2em 1em;
  }

  .page-header h1 {
    font-size: 2em;
  }

  .subtitle {
    font-size: 1.1em;
  }

  .section-title {
    font-size: 1.8em;
  }

  .habit-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .habit-header h3 {
    font-size: 1.5em;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .owner-section {
    padding: 2em 1em;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.5em;
  }

  .subtitle {
    font-size: 1em;
  }

  .habit-card {
    padding: 1.5em;
  }

  .habit-icon {
    font-size: 2em;
  }
}
