/* ==========================================================================
   ARTSMARTS — COURSE.CSS
   Art Appreciation course styles. Loaded alongside main.css on course pages.

   TABLE OF CONTENTS:
   1. Course Hero
   2. Course Overview Cards
   3. Process Flow
   4. Tool Badges & AI Note
   5. Gallery Placeholder
   6. Resources Grid
   7. Contact Form
   8. Curriculum Header
   9. Module Cards (curriculum page)
   10. Patreon Lock Badge
   11. Course-Specific Media Queries
   ========================================================================== */


/* ==========================================================================
   1. COURSE HERO
   ========================================================================== */

.course-hero {
  background-color: var(--navy);
  color: var(--white);
  padding: 0 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.course-hero-banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.course-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.course-hero .accent-label {
  color: var(--coral);
  display: block;
  margin-bottom: var(--space-xs);
}

.course-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.course-hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--white);
  max-width: 600px;
  margin-bottom: var(--space-md);
}

.course-hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Decorative shapes */
.course-hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.course-hero-shape {
  position: absolute;
  border-radius: 50%;
}

/* Large anchor bubble — top right */
.course-hero-shape--1 {
  width: 420px;
  height: 420px;
  background-color: var(--pink);
  top: -80px;
  right: -60px;
  opacity: 0.35;
}

/* Large mid-right bubble */
.course-hero-shape--2 {
  width: 300px;
  height: 300px;
  background-color: var(--coral);
  top: 10%;
  right: 18%;
  opacity: 0.4;
}

/* Medium lower-right bubble */
.course-hero-shape--3 {
  width: 180px;
  height: 180px;
  background-color: var(--gold);
  bottom: 5%;
  right: 8%;
  opacity: 0.3;
}

/* Small accent — mid-right edge */
.course-hero-shape--4 {
  width: 100px;
  height: 100px;
  background-color: var(--coral);
  top: 55%;
  right: 38%;
  opacity: 0.25;
}

/* Large left-side bubble */
.course-hero-shape--5 {
  width: 260px;
  height: 260px;
  background-color: var(--pink);
  top: -40px;
  left: 30%;
  opacity: 0.18;
}

/* Small gold left */
.course-hero-shape--6 {
  width: 120px;
  height: 120px;
  background-color: var(--gold);
  bottom: 15%;
  left: 20%;
  opacity: 0.22;
}

/* Tiny accent right-center */
.course-hero-shape--7 {
  width: 70px;
  height: 70px;
  background-color: var(--white);
  top: 40%;
  right: 52%;
  opacity: 0.08;
}

/* Large deep-right anchor */
.course-hero-shape--8 {
  width: 200px;
  height: 200px;
  background-color: var(--pink);
  bottom: -20px;
  right: 28%;
  opacity: 0.25;
}


/* ==========================================================================
   2. COURSE OVERVIEW CARDS
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.card {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--light);
  border: 3px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
  line-height: 1;
}

.card-icon img {
  width: 28px;
  height: 28px;
}

/* What you'll gain — numbered items */
.gain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  counter-reset: gain;
  justify-content: center;
}

.gain-item {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm);
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.gain-item::before {
  counter-increment: gain;
  content: counter(gain);
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 6rem;
  color: var(--pink);
  line-height: 1;
  flex-shrink: 0;
  width: 4rem;
  text-align: center;
}

.gain-item p {
  margin-bottom: 0;
}


/* ==========================================================================
   3. PROCESS FLOW
   Used on the course landing page to show the weekly module rhythm.
   ========================================================================== */

.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.process-step {
  background-color: var(--white);
  border: 2px solid var(--navy);
  border-radius: 30px;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-align: center;
}

.process-arrow {
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 700;
}


/* ==========================================================================
   4. TOOL BADGES & AI NOTE
   ========================================================================== */

.tools-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--light);
  border: 2px solid var(--navy);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.tool-badge:hover {
  background-color: var(--navy);
  color: var(--white);
}

.ai-note {
  background-color: var(--light);
  border-left: 4px solid var(--pink);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
}

.ai-note p {
  margin-bottom: 0;
  font-size: 0.95rem;
}


/* ==========================================================================
   5. GALLERY PLACEHOLDER
   Student work images aren't ready yet — swap gallery-placeholder divs for
   <img class="gallery-image" src="..." alt="..."> tags when available.
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  background-color: var(--muted-bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm);
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}


/* ==========================================================================
   6. RESOURCES GRID
   ========================================================================== */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.resource-group h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.resource-group ul {
  list-style: none;
  padding: 0;
}

.resource-group li {
  margin-bottom: 0.4rem;
}


/* ==========================================================================
   7. CONTACT FORM
   ========================================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: none;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}


/* ==========================================================================
   8. CURRICULUM HEADER
   ========================================================================== */

.curriculum-header {
  position: relative;
  background-color: var(--navy);
  color: var(--white);
  padding: var(--space-lg) 0;
  text-align: center;
  overflow: hidden;
}

.curriculum-header h1 {
  color: var(--white);
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: var(--space-xs);
}

.curriculum-header .course-subtitle {
  color: var(--gold);
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.8rem;
  max-width: none;
  margin-bottom: 0;
}

.curriculum-header .container {
  position: relative;
  z-index: 1;
}

/* Decorative bokeh circles */
.curriculum-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.curriculum-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.curriculum-shape--left-1 {
  width: 300px;
  height: 300px;
  background-color: var(--pink);
  top: -80px;
  left: -100px;
}

.curriculum-shape--left-2 {
  width: 120px;
  height: 120px;
  background-color: var(--gold);
  bottom: 15%;
  left: 8%;
}

.curriculum-shape--left-3 {
  width: 180px;
  height: 180px;
  background-color: var(--coral);
  top: 35%;
  left: 18%;
}

.curriculum-shape--left-4 {
  width: 70px;
  height: 70px;
  border: 2px solid var(--pink);
  background: transparent;
  top: 15%;
  left: 35%;
  opacity: 0.15;
}

.curriculum-shape--right-1 {
  width: 280px;
  height: 280px;
  background-color: var(--coral);
  top: -60px;
  right: -80px;
}

.curriculum-shape--right-2 {
  width: 90px;
  height: 90px;
  background-color: var(--pink);
  bottom: 20%;
  right: 10%;
}

.curriculum-shape--right-3 {
  width: 150px;
  height: 150px;
  background-color: var(--gold);
  top: 40%;
  right: 15%;
}

.curriculum-shape--right-4 {
  width: 65px;
  height: 65px;
  border: 3px solid var(--gold);
  background: transparent;
  top: 18%;
  right: 38%;
  opacity: 0.2;
}


/* ==========================================================================
   9. MODULE CARDS (curriculum page)
   ========================================================================== */

.modules-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.module-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: var(--space-md);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  border-left: 6px solid var(--navy);
  transition: box-shadow var(--transition-fast);
}

.module-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.module-card-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-sm) calc(-1 * var(--space-md));
  padding: var(--space-sm) var(--space-md);
  background-color: rgba(255, 207, 0, 0.25);
  border-radius: 10px 10px 0 0;
  flex-wrap: wrap;
}

.module-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--pink);
  line-height: 1;
  flex-shrink: 0;
}

.module-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  line-height: 1.2;
}

.module-section {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.module-section:last-child {
  margin-bottom: 0;
}

.module-section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.4rem;
}

.module-links {
  list-style: none;
  padding: 0;
  padding-left: 1.2rem;
}

.module-links li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.module-links li::before {
  content: '\2605';
  font-size: 0.8rem;
  color: var(--navy);
}

.module-links a {
  font-size: 0.95rem;
}

.module-primary-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.module-primary-links .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
}

/* Coming Soon state */
.module-card--coming-soon {
  background-color: var(--muted-bg);
  border-left-color: var(--muted);
  opacity: 0.7;
}

.module-card--coming-soon .module-number {
  color: var(--muted);
}

.module-card--coming-soon .module-title {
  color: var(--muted);
}

.module-card--coming-soon .coming-soon-label {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--muted);
}


/* ==========================================================================
   10. PATREON LOCK BADGE
   ========================================================================== */

.patreon-lock {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--light);
  border: 2px dashed var(--pink);
  border-radius: 12px;
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
}

.patreon-lock-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.patreon-lock p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.patreon-lock .btn {
  flex-shrink: 0;
}


/* ==========================================================================
   11. COURSE-SPECIFIC MEDIA QUERIES
   ========================================================================== */

@media (max-width: 768px) {
  .course-hero-decoration {
    width: 100%;
    opacity: 0.4;
  }

  .course-hero-ctas {
    flex-direction: column;
  }

  .module-card-header {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .module-primary-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .patreon-lock {
    flex-wrap: wrap;
  }

  .process-flow {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
