/* Public Site CSS - Using deneme.html colors */
:root {
  /* deneme.html colors */
  --bg-color: #EEDC9A;
  --active-color: #FFB74D;
  --dark-color: #1A1812;
  --text-color: #1A1812;
  --light-color: #f5f0e0;
}


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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* ====================================
   Public Header
   ==================================== */
.modern-public-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 24, 18, 0.95);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.public-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}

.public-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  transition: all 0.3s ease;
}

/* Header logo only (no visible text) */
.public-logo .sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-logo:hover {
  transform: translateY(-2px);
  color: var(--active-color);
}

.public-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(to bottom right, var(--active-color), #FF9800);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(255, 183, 77, 0.4);
  transition: all 0.3s ease;
}

.public-logo-img {
  /* Horizontal logo (1162x498). Show bigger in header, no text. */
  width: auto;
  height: 40px;
  max-width: min(220px, 52vw);
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.public-logo:hover .public-logo-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(255, 183, 77, 0.5);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.public-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.public-nav-btn:hover {
  background: rgba(255, 183, 77, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 183, 77, 0.2);
  border-color: rgba(255, 183, 77, 0.3);
  color: #ffffff;
}

.public-nav-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.public-nav-btn:hover i {
  transform: scale(1.2);
}

/* ====================================
   Hero Section
   ==================================== */
.hero-section {
  min-height: 85vh;
  width: 100%;
  background: linear-gradient(180deg, var(--bg-color) 0%, #f5f0e0 100%);
  position: relative;
  padding: 100px 20px 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 24, 18, 0.08);
  border: 1px solid rgba(26, 24, 18, 0.15);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-color);
  width: fit-content;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--dark-color);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  font-family: 'Poppins', sans-serif;
}

.hero-title.hero-title-logo{
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img{
  width: min(520px, 84vw);
  height: auto;
  max-height: 250px;
  object-fit: contain;
  display: block;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-description {
  font-size: 18px;
  color: var(--dark-color);
  line-height: 1.6;
  margin: 0;
  max-width: 550px;
  opacity: 0.8;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 160px;
  box-shadow: 0 8px 18px rgba(26, 24, 18, 0.10);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(255, 183, 77, 0.18);
  border-color: rgba(255, 183, 77, 0.40);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 183, 77, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-color);
  font-size: 20px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-color);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
}

.stat-label {
  font-size: 13px;
  color: rgba(26, 24, 18, 0.62);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.hero-play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-color);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-color);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(26, 24, 18, 0.2);
  text-decoration: none;
  margin-top: 24px;
  font-family: 'Poppins', sans-serif;
}

.hero-play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 24, 18, 0.3);
  background: #2a2720;
}

.hero-play-button i {
  font-size: 16px;
}

.hero-action {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 60px;
  z-index: 20;
}

.play-button {
  position: relative;
  background: linear-gradient(135deg, var(--active-color), #FF9800);
  border: none;
  border-radius: 25px;
  padding: 24px 48px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(255, 183, 77, 0.5);
  overflow: hidden;
  min-width: 280px;
  justify-content: center;
  text-decoration: none;
}

.play-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(255, 183, 77, 0.6);
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.play-button:hover .play-icon {
  transform: scale(1.1) rotate(360deg);
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--active-color);
  box-shadow: 0 8px 32px rgba(255, 183, 77, 0.3);
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.floating-card.card-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 4s;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.1), rgba(255, 183, 77, 0.1));
  animation: rotate 20s linear infinite;
}

.hero-shape.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation-duration: 25s;
}

.hero-shape.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 40%;
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ====================================
   Categories Section
   ==================================== */
.categories-section {
  padding: 20px 0;
  background: var(--light-color);
  position: relative;
  padding-bottom: 150px;
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--dark-color);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.categories-grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 183, 77, 0.15);
  border-color: rgba(255, 183, 77, 0.3);
}

.category-card.completed {
  background: linear-gradient(135deg, #d6fce41a, #f4fff8);
  border-color: rgba(34, 197, 94, 1);
}

.category-card.completed::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  z-index: 10;
}

.category-image {
  min-height: 120px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 64px;
  color: #cbd5e1;
}

.category-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  line-height: 1.3;
}

.category-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-text {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.progress-percentage {
  font-size: 14px;
  color: var(--dark-color);
  font-weight: 700;
}

.progress-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--active-color), #FF9800);
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f8fafc;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.meta-item i {
  color: var(--active-color);
  font-size: 14px;
}

.difficulty {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.difficulty.very_easy {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  font-weight: 600;
}

.difficulty.easy {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.difficulty.medium {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.difficulty.hard {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.difficulty.very_hard {
  background: rgba(185, 28, 28, 0.15);
  color: #991b1b;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: #f8fafc;
  border-radius: 20px;
  border: 2px dashed #d1d5db;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-icon i {
  font-size: 36px;
  color: #9ca3af;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 12px 0;
}

.empty-state p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* ====================================
   Category Page
   ==================================== */
.category-hero-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, #f5f0e0 100%);
  position: relative;
  padding: 20px 20px 40px;
  overflow: hidden;
  margin-top: 0px;
}

.category-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  justify-content: center;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-color);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(26, 24, 18, 0.05);
  border: 1px solid rgba(26, 24, 18, 0.1);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
}

.breadcrumb-link:hover {
  background: rgba(26, 24, 18, 0.1);
  transform: translateY(-1px);
}

.breadcrumb-separator {
  color: rgba(26, 24, 18, 0.4);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--dark-color);
  font-weight: 700;
  opacity: 0.8;
}

/* Category page logo (headerless) */
.category-page-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: -6px;
  margin-bottom: 6px;
}
.category-page-logo-img{
  width: min(320px, 76vw);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  display: block;
}

.category-hero-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Give hero row the same "card" feel as levels-grid-wrapper */
.category-hero-row{
  background: rgba(248, 250, 252, 0.8);
  border-radius: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(229, 231, 235, 0.6);
}

.category-hero-left{
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-hero-description-wide{
  max-width: 820px;
}

/* Wide layout: icon+title (left), description (middle), progress (right) in one row */
@media (min-width: 980px){
  .category-hero-container{
    align-items: stretch;
    text-align: center;
  }
  .category-breadcrumb{
    justify-content: center;
    margin-bottom: 10px;
  }
  .category-page-logo{
    justify-content: center;
  }
  .category-hero-row{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
  }
  .category-hero-left{
    flex: 0 0 auto;
  }
  .category-hero-title-simple{
    margin: 0;
  }
  .category-hero-description-wide{
    flex: 1 1 auto;
    margin: 0;
    max-width: none;
    text-align: left;
  }
  .category-progress-inline{
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .category-progress-inline .progress-stat-compact,
  .category-progress-inline .clear-progress-btn{
    min-width: 92px;
    padding: 14px 18px;
  }
}

.category-hero-image-small {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(26, 24, 18, 0.05);
  border: 2px solid rgba(26, 24, 18, 0.1);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 24, 18, 0.1);
}

.category-hero-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(26, 24, 18, 0.3);
}

.hero-icon-placeholder-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--dark-color);
  background: rgba(26, 24, 18, 0.05);
  border-radius: 20px;
}

.category-hero-description {
  font-size: 18px;
  color: var(--dark-color);
  line-height: 1.6;
  margin: 0 0 0px 0;
  max-width: 600px;
  opacity: 0.8;
  font-weight: 400;
  text-align: center;
  display: block;
}

.category-hero-info-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.category-hero-title-simple {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark-color);
  margin: 0;
  line-height: 1.15;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

.category-progress-compact {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.progress-stat-compact,
.clear-progress-btn{
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(26, 24, 18, 0.10);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-stat-compact:hover,
.clear-progress-btn:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(255, 183, 77, 0.18);
  border-color: rgba(255, 183, 77, 0.40);
}

.clear-progress-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  color: var(--dark-color);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  min-width: 100px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clear-progress-btn:hover {
  background: #ffffff;
}

.clear-progress-btn i {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--active-color);
}

.progress-stat-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  min-width: 100px;
}

/* hover handled above */

.stat-number-compact {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark-color);
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}

.stat-label-compact {
  font-size: 12px;
  color: rgba(26, 24, 18, 0.62);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.category-levels-section {
  padding: 40px 0 80px;
  background: var(--light-color);
  position: relative;
}

.category-levels-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.levels-header {
  text-align: center;
  margin-bottom: 40px;
}

.levels-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--dark-color);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.levels-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.levels-grid-wrapper {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(229, 231, 235, 0.6);
}

.category-levels-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  max-width: none;
}

.modern-level-card {
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  text-decoration: none;
  color: inherit;
}

.modern-level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.05), rgba(255, 183, 77, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-level-card:hover::before {
  opacity: 1;
}

.modern-level-card:not(.locked):hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 183, 77, 0.2);
  border-color: rgba(255, 183, 77, 0.4);
}

.modern-level-card.completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), #ffffff);
  border-color: rgba(34, 197, 94, 0.3);
}

.modern-level-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc;
}

.modern-level-card.locked:hover {
  transform: none;
  box-shadow: none;
}

.level-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.level-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 16px;
  line-height: 1;
}

.modern-level-card.completed .level-number {
  color: #059669;
}

.modern-level-card.locked .level-number {
  color: #94a3b8;
}

.level-status-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  z-index: 3;
}

.level-status-badge.completed {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.level-status-badge.locked {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.level-status-badge.available {
  background: linear-gradient(135deg, var(--active-color), #FF9800);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 183, 77, 0.4);
}

.modern-level-card:hover .level-status-badge.available {
  transform: scale(1.1);
}

/* ====================================
   Footer
   ==================================== */
.modern-public-footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2a2518 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 24px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img{
  /* Original logo ratio: 1162x498 (~2.33). Keep it large & horizontal */
  width: 220px;
  height: auto;
  max-width: 70vw;
  border-radius: 14px;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(to bottom right, var(--active-color), #FF9800);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 183, 77, 0.3);
  padding: 5px;
}

.footer-logo-icon i {
  font-size: 24px;
  color: white;
}

/* footer-logo span removed in markup */

.footer-description {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.footer-bottom {
  margin-top: 40px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 77, 0.3), transparent);
  margin-bottom: 24px;
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}

.footer-love {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-love i {
  color: #ef4444;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 1024px) {
  .hero-container {
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .categories-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .category-hero-simple {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .category-progress-compact {
    justify-content: center;
  }
  
  .category-levels-modern-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 20px 60px;
    min-height: auto;
  }
  
  .hero-container {
    gap: 32px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  .hero-stats {
    gap: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stats .stat-card{
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  
  .play-button {
    padding: 20px 36px;
    font-size: 18px;
    min-width: 240px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .categories-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .category-hero-section {
    padding-top: 76px;
  }
  
  .category-hero-title-simple {
    font-size: 24px;
  }
  
  .category-progress-compact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
  }

  .category-progress-compact .progress-stat-compact,
  .category-progress-compact .clear-progress-btn,
  .category-progress-inline .progress-stat-compact,
  .category-progress-inline .clear-progress-btn{
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
  
  .levels-title {
    font-size: 32px;
  }
  
  .category-levels-modern-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
  }
  
  .modern-level-card {
    min-height: 120px;
    padding: 12px;
  }
  
  .level-number {
    font-size: 24px;
  }
  
  .public-header-inner {
    padding: 12px 16px;
    gap: 16px;
  }
  
  .public-logo {
    font-size: 18px;
  }
  
  .public-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .public-nav {
    gap: 12px;
  }
  
  .public-nav-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .public-nav-btn span {
    display: none;
  }
  
  .public-nav-btn {
    min-width: 44px;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .category-hero-title-simple {
    font-size: 20px;
  }
  
  .category-levels-modern-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
  }
  
  .modern-level-card {
    min-height: 100px;
    padding: 8px;
  }
  
  .level-number {
    font-size: 20px;
  }

  /* Phone: stats/progress cards should be 2 per row */
  .hero-stats{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .hero-stats .stat-card{
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 16px 16px;
  }

  .category-progress-compact,
  .category-progress-inline{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
  }

  .category-progress-compact .progress-stat-compact,
  .category-progress-compact .clear-progress-btn,
  .category-progress-inline .progress-stat-compact,
  .category-progress-inline .clear-progress-btn{
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}

/* Teacher FAB */
.teacher-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #1a1812;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(26, 24, 18, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.teacher-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 24, 18, 0.4);
  background: #2a2720;
}

.teacher-fab:active {
  transform: translateY(0);
}

/* Category Modal */
.category-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.category-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.category-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 24, 18, 0.6);
  backdrop-filter: blur(4px);
}

.category-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(26, 24, 18, 0.25);
  animation: slideUp 0.3s ease-out;
}

.category-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.category-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1812;
  font-family: 'Inter', sans-serif;
}

.category-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.category-modal-close:hover {
  background: #f3f4f6;
  color: #1a1812;
}

.category-modal-body {
  padding: 24px;
}

.unlock-warning {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #92400e;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.unlock-warning i {
  color: #f59e0b;
}

.teacher-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teacher-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.teacher-action-btn.unlock-btn {
  background: #1a1812;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 24, 18, 0.2);
}

.teacher-action-btn.unlock-btn:hover {
  background: #2a2720;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 24, 18, 0.3);
}

.teacher-action-btn.clear-btn {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.teacher-action-btn.clear-btn:hover {
  background: #fecaca;
  transform: translateY(-2px);
}

.teacher-action-btn i {
  font-size: 18px;
}

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

