/* Heroes of the Ramayana - Production CSS Framework */

:root {
  --color-pdhpe: #FF6B35;
  --color-english: #00D9FF;
  --color-drama: #FF006E;
  --color-life-skills: #8B5CF6;
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #e94560;
  --color-light: #f0f0f0;
  --color-text: #333;
  --color-text-light: #666;
  --spacing-unit: 1rem;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  background: #fafafa;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav.main-nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-unit);
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-subject {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.nav-subject:hover {
  background: rgba(255,255,255,0.2);
}

.nav-subject.pdhpe { border-left: 3px solid var(--color-pdhpe); }
.nav-subject.english { border-left: 3px solid var(--color-english); }
.nav-subject.drama { border-left: 3px solid var(--color-drama); }
.nav-subject.life-skills { border-left: 3px solid var(--color-life-skills); }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 4rem var(--spacing-unit);
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #d63554;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Carousel */
.carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--spacing-unit);
}

.carousel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.carousel-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.carousel-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
}

.character-card {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--color-text);
  min-width: 120px;
}

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

.character-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.character-name {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}

/* Grid Sections */
.grid-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 var(--spacing-unit);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 3rem;
}

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

.subject-card {
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: white;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subject-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.subject-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.subject-card.pdhpe {
  background: linear-gradient(135deg, var(--color-pdhpe) 0%, #ff8555 100%);
}

.subject-card.english {
  background: linear-gradient(135deg, var(--color-english) 0%, #00e8ff 100%);
}

.subject-card.drama {
  background: linear-gradient(135deg, var(--color-drama) 0%, #ff3d7f 100%);
}

.subject-card.life-skills {
  background: linear-gradient(135deg, var(--color-life-skills) 0%, #a78bfa 100%);
}

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

/* Outcomes Grid */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.outcome-badge {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 4px solid var(--color-accent);
}

.outcome-badge.pdhpe { border-left-color: var(--color-pdhpe); }
.outcome-badge.english { border-left-color: var(--color-english); }
.outcome-badge.drama { border-left-color: var(--color-drama); }
.outcome-badge.life-skills { border-left-color: var(--color-life-skills); }

.outcome-code {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-family: 'Monaco', 'Courier New', monospace;
}

.outcome-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: white;
  padding: 3rem var(--spacing-unit);
  margin-top: 4rem;
  border-top: 2px solid var(--color-accent);
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* Breadcrumbs */
.breadcrumb {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 var(--spacing-unit);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Character Profile */
.character-profile {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 var(--spacing-unit);
}

.profile-header {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-icon {
  font-size: 8rem;
  text-align: center;
  line-height: 1;
}

.profile-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.profile-quality {
  background: var(--color-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Activities Section */
.activities-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.activity-group {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.activity-group:last-child {
  border-bottom: none;
}

.activity-subject {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.subject-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: white;
  font-weight: 600;
}

.subject-tag.pdhpe { background: var(--color-pdhpe); }
.subject-tag.english { background: var(--color-english); }
.subject-tag.drama { background: var(--color-drama); }
.subject-tag.life-skills { background: var(--color-life-skills); }

.activity {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-pdhpe);
}

.activity.english { border-left-color: var(--color-english); }
.activity.drama { border-left-color: var(--color-drama); }
.activity.life-skills { border-left-color: var(--color-life-skills); }

.activity-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.activity-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.activity-outcome {
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--color-primary);
  border: 1px solid #ddd;
}

.activity-description {
  line-height: 1.6;
  color: var(--color-text);
}

/* Pricing */
.pricing-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 var(--spacing-unit);
}

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

.pricing-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s;
  border-top: 4px solid var(--color-accent);
}

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

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.pricing-card .currency {
  font-size: 1.2rem;
  font-weight: normal;
}

.pricing-card .period {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  color: var(--color-text);
}

.pricing-features li:before {
  content: '✓ ';
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Dashboard */
.dashboard-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 var(--spacing-unit);
}

.dashboard-welcome {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 3rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.dashboard-welcome h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.dashboard-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.dashboard-card a {
  display: inline-block;
  margin-top: 1rem;
}

.license-key-display {
  background: #f0f0f0;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border: 2px solid var(--color-accent);
}

.license-key-display .label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.license-key-display .key {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: bold;
  word-break: break-all;
  user-select: all;
}

/* Curriculum Explorer */
.explorer-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 var(--spacing-unit);
}

.filter-panel {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.filter-group h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
}

.filter-option input {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
  user-select: none;
}

/* Matrix View */
.matrix-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
}

.curriculum-matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px;
}

.curriculum-matrix th,
.curriculum-matrix td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
}

.curriculum-matrix th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.curriculum-matrix td:first-child,
.curriculum-matrix th:first-child {
  text-align: left;
  font-weight: 600;
}

.curriculum-matrix tbody tr:hover {
  background: #f8f9fa;
}

.matrix-check {
  color: var(--color-accent);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .profile-header {
    grid-template-columns: 1fr;
  }

  .profile-icon {
    font-size: 4rem;
  }

  .carousel-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .hero {
    min-height: 350px;
    padding: 2rem var(--spacing-unit);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .activity-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }
}

@media print {
  header, footer, .cta-group, nav {
    display: none;
  }

  .curriculum-matrix {
    font-size: 0.85rem;
  }

  .outcome-badge {
    page-break-inside: avoid;
  }
}
