/*
Theme Name: Minicursus Platform
Description: Complete WordPress theme for wellness mini-courses with community features and coach contact functionality. Designed for The Health Collab style wellness coaching.
Author: Health Collab
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minicursus-platform
Tags: courses, education, wellness, health, coaching
*/

/* CSS Variables - Health Collab Style */
:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --sage-50: #f6f7f6;
  --sage-100: #e8eae8;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --radius: 0.75rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--stone-800);
  background: linear-gradient(135deg, var(--sage-50) 0%, #ffffff 50%, var(--blue-50) 100%);
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald-600);
  text-decoration: none;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--stone-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--emerald-600);
}

/* Course Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.course-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--stone-200);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.course-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.course-card.emerald .course-icon {
  background: var(--emerald-100);
  color: var(--emerald-600);
}

.course-card.stone .course-icon {
  background: var(--stone-100);
  color: var(--stone-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--emerald-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--stone-100);
  color: var(--stone-700);
}

.btn-secondary:hover {
  background: var(--stone-200);
}

/* Course Player */
.course-player {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.media-toggle {
  display: flex;
  gap: 0.5rem;
}

.toggle-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--stone-300);
  background: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--emerald-600);
  color: white;
  border-color: var(--emerald-600);
}

/* Progress Bar */
.progress-container {
  margin: 1rem 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--stone-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--emerald-600);
  transition: width 0.3s ease;
}

/* Worksheet */
.worksheet {
  background: var(--stone-50);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.worksheet-field {
  margin-bottom: 1.5rem;
}

.worksheet-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--stone-700);
}

.worksheet-field input,
.worksheet-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--stone-300);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.worksheet-field textarea {
  min-height: 100px;
  resize: vertical;
}

/* Community Section */
.community-section {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.community-posts {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.community-post {
  background: var(--stone-50);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--emerald-600);
}

/* Footer */
.site-footer {
  background: var(--stone-800);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--emerald-100);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--stone-200);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--emerald-100);
}

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

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .player-header {
    flex-direction: column;
    gap: 1rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-emerald {
  color: var(--emerald-600);
}
.text-stone {
  color: var(--stone-600);
}
.mb-4 {
  margin-bottom: 2rem;
}
.mt-4 {
  margin-top: 2rem;
}
.hidden {
  display: none;
}
