/* ============================================
   MINT-Games – Home Page Styles
   ============================================ */

/* ---- Site Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(225, 20%, 8%, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow-primary);
  animation: float 6s ease-in-out infinite;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.header-badge {
  background: linear-gradient(135deg, hsla(38,95%,62%,0.15), hsla(38,95%,62%,0.05));
  border: 1px solid hsla(38,95%,62%,0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.7s ease both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Decorative orbs */
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.deco-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.deco-orb-1 {
  width: 400px; height: 400px;
  background: var(--color-primary);
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.deco-orb-2 {
  width: 300px; height: 300px;
  background: var(--color-secondary);
  bottom: -80px; left: -80px;
  animation: float 10s ease-in-out infinite 2s;
}

.deco-orb-3 {
  width: 200px; height: 200px;
  background: var(--color-purple);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float 12s ease-in-out infinite 4s;
}

/* ---- Modules Section ---- */
.modules-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: var(--space-xl);
  color: var(--color-text);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

/* ---- Module Card ---- */
.module-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  animation: fadeInUp 0.6s ease both;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(220,90%,62%,0.06), transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
  border-color: hsla(220,90%,62%,0.4);
}

.module-card:hover::before { opacity: 1; }

.module-card:nth-child(2):hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow-green);
  border-color: hsla(162,72%,48%,0.4);
}

.module-card:nth-child(2)::before {
  background: linear-gradient(135deg, hsla(162,72%,48%,0.06), transparent 60%);
}

#card-3:hover {
  box-shadow: var(--shadow-lg), 0 0 32px var(--color-purple-glow);
  border-color: hsla(270, 80%, 68%, 0.4);
}

#card-3::before {
  background: linear-gradient(135deg, hsla(270, 80%, 68%, 0.06), transparent 60%);
}

#card-4:hover {
  box-shadow: var(--shadow-lg), 0 0 32px var(--color-accent-glow);
  border-color: hsla(38, 95%, 62%, 0.4);
}

#card-4::before {
  background: linear-gradient(135deg, hsla(38, 95%, 62%, 0.06), transparent 60%);
}

.module-card-locked {
  opacity: 0.45;
  pointer-events: none;
}

.module-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.module-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.module-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.module-number {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.module-duration {
  font-size: 13px;
  color: var(--color-text-dim);
}

.module-badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.badge-info {
  background: hsla(220,90%,62%,0.15);
  color: var(--color-primary);
  border: 1px solid hsla(220,90%,62%,0.3);
}

.badge-green {
  background: hsla(162,72%,48%,0.15);
  color: var(--color-secondary);
  border: 1px solid hsla(162,72%,48%,0.3);
}

.badge-purple {
  background: hsla(270, 80%, 68%, 0.15);
  color: var(--color-purple);
  border: 1px solid hsla(270, 80%, 68%, 0.3);
}

.badge-orange {
  background: hsla(38, 95%, 62%, 0.15);
  color: var(--color-accent);
  border: 1px solid hsla(38, 95%, 62%, 0.3);
}

.badge-gray {
  background: hsla(220,12%,45%,0.15);
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
}

.module-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.module-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

.module-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.module-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.topic-tag {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.module-activities {
  display: flex;
  gap: 8px;
  margin-top: var(--space-sm);
}

.activity-icon {
  font-size: 20px;
  padding: 4px;
  cursor: default;
  transition: transform var(--transition-fast);
}

.activity-icon:hover { transform: scale(1.3); }

/* Card Footer */
.module-card-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: 4px;
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--color-surface2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.btn-start {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--color-primary), hsl(200, 90%, 55%));
  color: white;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--color-primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-start::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, hsla(255,255%,255%,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-start:hover::after { transform: translateX(100%); }

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-primary-glow);
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-start:hover .btn-arrow { transform: translateX(4px); }

/* Completion state */
.module-card.completed .btn-start {
  background: linear-gradient(135deg, var(--color-secondary), hsl(140, 72%, 40%));
  box-shadow: 0 4px 20px var(--color-secondary-glow);
}

/* ---- Curriculum & Grade Tags ---- */
.module-curriculum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
}

.curriculum-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-grade {
  background: hsla(200, 90%, 55%, 0.1);
  color: hsl(200, 90%, 65%);
  border: 1px solid hsla(200, 90%, 55%, 0.2);
}

.tag-competency {
  background: hsla(270, 80%, 68%, 0.1);
  color: hsl(270, 80%, 78%);
  border: 1px solid hsla(270, 80%, 68%, 0.2);
}

.tag-mint {
  background: hsla(162, 72%, 48%, 0.1);
  color: hsl(162, 72%, 58%);
  border: 1px solid hsla(162, 72%, 48%, 0.2);
}

/* Hover glows for module cards 5 & 6 */
#card-5:hover {
  box-shadow: var(--shadow-lg), 0 0 32px rgba(220, 50, 100, 0.4);
  border-color: rgba(220, 50, 100, 0.5);
}
#card-5::before {
  background: linear-gradient(135deg, rgba(220, 50, 100, 0.08), transparent 60%);
}

#card-6:hover {
  box-shadow: var(--shadow-lg), 0 0 32px rgba(0, 200, 220, 0.4);
  border-color: rgba(0, 200, 220, 0.5);
}
#card-6::before {
  background: linear-gradient(135deg, rgba(0, 200, 220, 0.08), transparent 60%);
}

/* Hover glows for module cards 8, 10, 11 & 12 */
#card-8:hover, #card-11:hover {
  box-shadow: var(--shadow-lg), 0 0 32px var(--color-purple-glow);
  border-color: hsla(270, 80%, 68%, 0.4);
}
#card-8::before, #card-11::before {
  background: linear-gradient(135deg, hsla(270, 80%, 68%, 0.06), transparent 60%);
}

#card-10:hover {
  box-shadow: var(--shadow-lg), 0 0 32px rgba(220, 50, 100, 0.4);
  border-color: rgba(220, 50, 100, 0.5);
}
#card-10::before {
  background: linear-gradient(135deg, rgba(220, 50, 100, 0.08), transparent 60%);
}

#card-12:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow-green);
  border-color: hsla(162,72%,48%,0.4);
}
#card-12::before {
  background: linear-gradient(135deg, hsla(162,72%,48%,0.06), transparent 60%);
}

/* Badges for Module 5 and 6 */
.badge-red {
  background: rgba(220, 50, 100, 0.15);
  color: #ff6085;
  border: 1px solid rgba(220, 50, 100, 0.3);
}

.badge-teal {
  background: rgba(0, 200, 220, 0.15);
  color: #50e3c2;
  border: 1px solid rgba(0, 200, 220, 0.3);
}

/* ---- Teacher Info Section ---- */
.teacher-info-section {
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-xl);
}

.teacher-info-card {
  background: linear-gradient(135deg, hsla(220, 20%, 12%, 0.8), hsla(220, 20%, 8%, 0.8));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.teacher-info-card::after {
  content: '🏫';
  position: absolute;
  font-size: 150px;
  right: -20px;
  bottom: -30px;
  opacity: 0.04;
  pointer-events: none;
}

.teacher-info-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.teacher-info-icon {
  font-size: 32px;
}

.teacher-info-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.teacher-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.teacher-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teacher-info-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
}

.teacher-info-item p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---- Sponsor Section ---- */
.sponsor-section {
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-xl);
}

.sponsor-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, hsla(220, 90%, 62%, 0.05), hsla(162, 72%, 48%, 0.05));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.sponsor-card:hover {
  transform: translateY(-2px);
  border-color: hsla(220, 90%, 62%, 0.3);
  box-shadow: var(--shadow-lg);
}

.sponsor-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  width: 140px;
  height: 120px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.sponsor-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: left;
}

.sponsor-badge {
  align-self: flex-start;
  background: linear-gradient(135deg, hsla(162, 72%, 48%, 0.15), hsla(162, 72%, 48%, 0.05));
  border: 1px solid hsla(162, 72%, 48%, 0.3);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.sponsor-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.sponsor-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.sponsor-text strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .sponsor-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
    justify-items: center;
    padding: var(--space-lg);
  }
  .sponsor-info {
    text-align: center;
    align-items: center;
  }
  .sponsor-badge {
    align-self: center;
  }
}

/* ---- Site Footer ---- */
.site-footer {
  text-align: center;
  padding: var(--space-xl);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-dim);
  font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .header-inner { padding: var(--space-md); }
  .hero { padding: var(--space-xl) var(--space-md); }
  .modules-section { padding: 0 var(--space-md) var(--space-xl); }
  .modules-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .hero-stats { gap: var(--space-lg); }
  .stat-num { font-size: 34px; }
}

/* iPad optimizations */
@media (min-width: 768px) and (max-width: 1180px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
