/* Ramadhan Section Styles */

.ramadhan-container,
.material-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 80px;
}

.ramadhan-header,
.material-header {
  text-align: center;
  margin-bottom: 35px;
  padding: 20px;
}

.ramadhan-header h1,
.material-header h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--poke-yellow);
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(255,203,5,0.4);
}

.subtitle {
  color: #ccc;
  font-size: 1.1rem;
  margin-top: 8px;
  font-weight: 600;
}

/* Progress Card */
.progress-card {
  margin-bottom: 30px;
  text-align: center;
}

.progress-card h3 {
  font-size: 1.2rem;
}

/* Materials Grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.material-card {
  position: relative;
  text-align: center;
  padding: 20px;
  transition: all 0.3s;
}

.material-card:hover {
  transform: translateY(-5px);
}

.material-card.locked-material {
  opacity: 0.6;
  cursor: not-allowed;
}

.material-status {
  position: absolute;
  top: 15px;
  right: 15px;
}

.status-badge {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 15px;
  font-weight: bold;
  display: inline-block;
}

.status-badge.locked {
  background: rgba(255,87,34,0.2);
  color: #FF5722;
  border: 1px solid rgba(255,87,34,0.4);
}

.status-badge.completed {
  background: rgba(76,175,80,0.2);
  color: var(--poke-green);
  border: 1px solid rgba(76,175,80,0.4);
}

.status-badge.coming-soon {
  background: rgba(158,158,158,0.2);
  color: #999;
  border: 1px solid rgba(158,158,158,0.4);
}

.material-icon {
  font-size: 3.5rem;
  margin: 15px 0;
}

.material-title {
  font-size: 1.3rem;
  color: var(--poke-yellow);
  margin: 12px 0;
  font-weight: 900;
}

.material-desc {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 12px 0;
  min-height: 60px;
}

.material-progress {
  margin-top: 15px;
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #555;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--poke-green), #8BC34A);
  transition: width 0.5s ease;
  border-radius: 8px;
}

.progress-text {
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
}

/* Story Cards (expandable) */
.story-card {
  background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
  border: 3px solid rgba(255,203,5,0.3);
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s;
}

.story-card:hover {
  border-color: var(--poke-yellow);
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  user-select: none;
}

.story-header:hover {
  background: rgba(255,203,5,0.05);
}

.story-num {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--poke-yellow);
  color: var(--poke-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin-right: 15px;
}

.story-header h3 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

.arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: var(--poke-yellow);
}

.story-card.open .arrow {
  transform: rotate(180deg);
}

.story-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
}

.story-card.open .story-body {
  max-height: 5000px;
  padding: 20px;
  padding-top: 0;
}

/* Arabic Ayat Styling */
.ayat-box {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,203,5,0.2);
}

.ayat-box:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ayat-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.8;
  text-align: center;
  color: #fff;
  margin-bottom: 10px;
  direction: rtl;
  font-weight: 700;
}

.ayat-number {
  text-align: center;
  color: var(--poke-yellow);
  font-size: 1.1rem;
  font-weight: 900;
  margin: 8px 0;
}

.ayat-latin {
  text-align: center;
  font-size: 1.1rem;
  color: #ccc;
  font-style: italic;
  margin: 8px 0;
  font-weight: 600;
}

.ayat-meaning {
  text-align: center;
  font-size: 1rem;
  color: #aaa;
  margin-top: 10px;
  line-height: 1.6;
}

/* Lesson Boxes */
.lesson-box {
  background: rgba(59,76,202,0.1);
  border-left: 4px solid var(--poke-blue);
  padding: 18px;
  margin: 20px 0;
  border-radius: 10px;
}

.lesson-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--poke-yellow);
  margin-bottom: 10px;
}

.lesson-box p {
  color: #ccc;
  line-height: 1.7;
}

/* Syarat Grid (4 conditions) */
.syarat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.syarat-item {
  background: rgba(76,175,80,0.1);
  border: 2px solid rgba(76,175,80,0.3);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s;
}

.syarat-item:hover {
  transform: scale(1.05);
  border-color: var(--poke-green);
}

.syarat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.syarat-title {
  font-weight: bold;
  color: var(--poke-green);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.syarat-desc {
  font-size: 0.8rem;
  color: #999;
}

/* Quiz Section */
.quiz-section {
  background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
  border: 3px solid var(--poke-yellow);
  border-radius: 20px;
  padding: 30px;
  margin-top: 40px;
}

.quiz-header {
  text-align: center;
  margin-bottom: 25px;
}

.quiz-header h2 {
  font-size: 1.8rem;
  color: var(--poke-yellow);
  margin-bottom: 8px;
}

.quiz-locked {
  text-align: center;
  padding: 40px 20px;
}

.section-badge {
  display: inline-block;
  padding: 8px 15px;
  margin: 5px;
  border-radius: 20px;
  font-size: 0.85rem;
  background: rgba(255,87,34,0.2);
  color: #FF5722;
  border: 1px solid rgba(255,87,34,0.4);
}

.section-badge.read {
  background: rgba(76,175,80,0.2);
  color: var(--poke-green);
  border: 1px solid rgba(76,175,80,0.4);
}

/* Question Styles */
.question-card {
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255,203,5,0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}

.question-number {
  font-size: 0.9rem;
  color: var(--poke-yellow);
  font-weight: bold;
  margin-bottom: 10px;
}

.question-text {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 600;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-bottom: 12px;
  background: linear-gradient(145deg, #3a3a5a, #2a2a4a);
  border: 2px solid #555;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.option-btn:hover {
  border-color: var(--poke-yellow);
  transform: translateX(5px);
}

.option-btn.selected {
  background: linear-gradient(145deg, rgba(59,76,202,0.4), rgba(59,76,202,0.2));
  border-color: var(--poke-blue);
}

.option-btn.correct {
  background: linear-gradient(145deg, rgba(76,175,80,0.4), rgba(76,175,80,0.2));
  border-color: var(--poke-green);
}

.option-btn.wrong {
  background: linear-gradient(145deg, rgba(244,67,54,0.4), rgba(244,67,54,0.2));
  border-color: #F44336;
}

.quiz-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

/* Result Card */
.result-card {
  text-align: center;
  padding: 20px;
}

.result-card h2 {
  font-size: 1.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .materials-grid {
    grid-template-columns: 1fr;
  }

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

  .ayat-arabic {
    font-size: 1.5rem;
  }

  .quiz-section {
    padding: 20px;
  }

  .question-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .story-num {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-right: 10px;
  }

  .story-header h3 {
    font-size: 1rem;
  }

  .ayat-arabic {
    font-size: 1.3rem;
  }
}
