/* Learn Page Styles - Phase 1 */

.learn-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

.user-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.streak {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.streak-icon {
  font-size: 1.2rem;
}

.tier-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.learn-header h1 {
  font-size: 1.75rem;
  margin: 0.5rem 0;
}

#progressSummary {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Continue Learning Section */
.continue-learning {
  padding: 1.5rem;
  background: white;
}

.continue-learning h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.current-module-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.current-module-card:hover {
  transform: translateY(-2px);
}

.module-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.course-name {
  font-size: 0.85rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-continue {
  background: white;
  color: #f5576c;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-continue:hover {
  transform: translateX(5px);
}

.progress-bar {
  margin-top: 1rem;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: white;
  transition: width 0.3s ease;
}

/* Tiers Section */
.tiers-section {
  padding: 1.5rem;
  background: #f8f9fa;
  min-height: 50vh;
}

.tiers-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.section-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.tiers-grid {
  display: grid;
  gap: 1.5rem;
}

/* Tier Card */
.tier-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  position: relative;
}

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

.tier-card.active {
  border: 2px solid #667eea;
}

.tier-card.locked {
  opacity: 0.85;
}

.tier-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.tier-tagline {
  font-size: 1rem;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tier-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.tier-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tier-access-info {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.tier-access-info small {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.current-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge-icon {
  font-size: 1rem;
}

.btn-tier-action {
  width: 100%;
  padding: 1rem;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-tier-action:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Schools Section (kept for backwards compatibility but hidden on learn.html) */
.schools-section {
  display: none;
}

/* School Card */
.school-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.school-card.locked {
  opacity: 0.7;
  position: relative;
}

.school-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.school-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.school-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.school-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.school-meta {
  display: none; /* REMOVED: No course counts or prices */
}

/* School Status Indicators */
.school-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.school-status.in-progress {
  background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
  color: white;
}

.school-status.locked {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.school-status.partial {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  color: white;
}

.school-status.full {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.status-icon {
  font-size: 1rem;
}

.status-text {
  flex: 1;
}

.lock-badge {
  display: none; /* REMOVED: Using school-status instead */
}
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-explore {
  width: 100%;
  padding: 0.75rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-explore:hover {
  background: #764ba2;
}

/* Responsive */
@media (min-width: 768px) {
  .tiers-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .schools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .schools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Upgrade Modal Styles */
.upgrade-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.upgrade-modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: #333;
}

.upgrade-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.upgrade-modal-content h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.upgrade-desc {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
}

.upgrade-benefits {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.benefit-item {
  padding: 0.5rem 0;
  color: #333;
  font-size: 0.95rem;
}

.btn-upgrade {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-upgrade:hover {
  transform: translateY(-2px);
}

.upgrade-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #666;
}
