/* Reading Page Comprehensive Styles */

/* Root Variables */
:root {
  --primary-color: #21014a;
  --secondary-color: #ff8a1d;
  --accent-color: #e67300;
  --text-dark: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --background-light: #f9f9f9;
  --background-white: #ffffff;
  --shadow-light: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 15px;
  --transition: all 0.3s ease;
}

/* General Styles */
body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--background-light) 0%, #e8f4f8 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23FF8A1D" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
  opacity: 0.3;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Custom Buttons */
.custom-btn {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  color: var(--text-white);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 138, 29, 0.3);
}

.custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 138, 29, 0.4);
  color: var(--text-white);
}

.custom-border-btn {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.custom-border-btn:hover {
  background: var(--secondary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 138, 29, 0.3);
}

/* Reading Levels Section */
.reading-levels {
  background: var(--background-white);
}

.level-card {
  background: var(--background-white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-light);
  height: 100%;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--accent-color)
  );
  transform: scaleX(0);
  transition: var(--transition);
}

.level-card:hover::before {
  transform: scaleX(1);
}

.level-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.level-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

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

.level-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.level-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.level-features li:last-child {
  border-bottom: none;
}

.level-features i {
  color: var(--secondary-color);
  margin-right: 10px;
}

/* Reading Materials Section */
.reading-materials {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a0e7a 100%);
  position: relative;
}

.reading-materials .section-title,
.reading-materials .section-subtitle {
  color: var(--text-white);
}

.reading-card {
  background: var(--background-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.reading-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.reading-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.reading-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(33, 1, 74, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.reading-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay-content i {
  font-size: 3rem;
  color: var(--text-white);
}

.reading-card-body {
  padding: 25px;
}

.reading-level {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.reading-level.beginner {
  background: linear-gradient(135deg, #fff1e6, #ffe4cc);
  color: var(--secondary-color);
}

.reading-level.intermediate {
  background: linear-gradient(135deg, #fff5e6, #ffebcc);
  color: var(--accent-color);
}

.reading-level.advanced {
  background: linear-gradient(135deg, #f3e6ff, #e6ccff);
  color: var(--primary-color);
}

.reading-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card-stats {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Stories Section */
.stories-section {
  background: var(--background-light);
}

.story-card {
  background: var(--background-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.story-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-img img {
  transform: scale(1.05);
}

.story-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-category {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  align-self: flex-start;
}

.story-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.story-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  flex: 1;
}

.story-features {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.feature i {
  color: var(--secondary-color);
}

.story-btn {
  align-self: flex-start;
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.story-btn:hover {
  background: var(--secondary-color);
  color: var(--text-white);
}

/* Articles Section */
.articles-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a0a5a 100%);
}

.articles-section .section-title,
.articles-section .section-subtitle {
  color: var(--text-white);
}

.article-filters {
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 10px 25px;
  border-radius: 25px;
  margin: 0 10px 10px 0;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color);
  color: var(--text-white);
  border-color: var(--secondary-color);
}

.articles-grid {
  margin-bottom: 2rem;
}

.article-item {
  transition: all 0.3s ease;
}

.article-card {
  background: var(--background-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.article-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-img img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(33, 1, 74, 0.9);
  color: var(--text-white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-content {
  padding: 25px;
}

.article-content h3 {
  font-size: 1.3rem;
  margin: 15px 0;
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.article-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.article-link:hover {
  color: var(--accent-color);
}

/* Reading Tips Section */
.reading-tips {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a0e7a 100%);
}

.tips-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  width: 100%;
  height: auto;
}

.tips-content {
  background: var(--background-white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-light);
}

.tips-content h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.tip-item {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-start;
}

.tip-icon {
  margin-right: 20px;
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 5px;
}

.tip-text h4 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.tip-text p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  padding: 10px 0 10px;
}

.footer-info h5,
.footer-links h5,
.footer-contact h5 {
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.copyright-text-wrap a {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-padding {
    padding: 80px 0;
  }

  .tips-image {
    margin-bottom: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .reading-card,
  .level-card,
  .story-card,
  .article-card {
    margin-bottom: 30px;
  }

  .reading-card-img,
  .story-img,
  .article-img {
    height: 180px;
  }

  .tips-content {
    padding: 30px 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .article-filters {
    text-align: center;
  }

  .filter-btn {
    margin: 5px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .custom-btn,
  .custom-border-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .reading-card-body,
  .story-content,
  .article-content {
    padding: 20px;
  }

  .level-card {
    padding: 30px 20px;
  }
}

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reading-card,
.level-card,
.story-card,
.article-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loading states */
.article-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}
