/* ============================================
   RAKSHAN ACADEMY - SIMPLE MODERN UI
   Clean, Minimal, Professional Design
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Primary Colors - Clean Blue */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.2s ease;
}

/* Dark Mode */
.theme-dark {
  --white: #1f2937;
  --gray-50: #111827;
  --gray-100: #1f2937;
  --gray-800: #f3f4f6;
  --gray-900: #f9fafb;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

/* ============================================
   SIMPLE HERO SECTION
   ============================================ */
.hero-simple {
  background: var(--white);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.hero-simple .container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-simple h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-simple h1 span {
  color: var(--primary);
}

.hero-simple p {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary-modern {
  background: var(--primary);
  color: var(--white);
}

.btn-primary-modern:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-modern {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary-modern:hover {
  background: var(--gray-50);
  color: var(--gray-900);
  border-color: var(--gray-400);
}

.btn-success-modern {
  background: var(--success);
  color: var(--white);
}

.btn-success-modern:hover {
  background: #059669;
  color: var(--white);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-simple {
  padding: var(--space-3xl) var(--space-lg);
}

.section-simple.bg-white {
  background: var(--white);
}

.section-simple.bg-gray {
  background: var(--gray-50);
}

.section-header-simple {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header-simple h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.section-header-simple p {
  color: var(--gray-500);
  font-size: 1rem;
}

.container-simple {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   CATEGORY CARDS - SIMPLE
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.category-card-simple {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.category-card-simple:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-icon-simple {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon-simple i {
  font-size: 1.5rem;
  color: var(--primary);
}

.category-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.category-info p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

.category-stars {
  display: flex;
  gap: 2px;
  margin-top: 6px;
}

.category-stars i {
  font-size: 0.75rem;
}

.category-stars .gold {
  color: #f59e0b;
}

.category-stars .gray {
  color: var(--gray-300);
}

/* ============================================
   QUIZ CARDS - SIMPLE
   ============================================ */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.quiz-card-simple {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.quiz-card-simple:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.quiz-image-simple {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--gray-100);
}

.quiz-image-simple img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.quiz-badge.free {
  background: var(--success);
  color: var(--white);
}

.quiz-badge.premium {
  background: var(--warning);
  color: var(--white);
}

.quiz-content-simple {
  padding: var(--space-lg);
}

.quiz-content-simple h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quiz-meta-simple {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.quiz-meta-simple span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.quiz-meta-simple i {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.quiz-footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-100);
}

.quiz-price-simple {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--success);
}

.quiz-price-simple.premium {
  color: var(--gray-900);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: var(--space-2xl) 0;
}

.stat-item-simple {
  text-align: center;
}

.stat-item-simple .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-item-simple .label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================
   TESTIMONIALS - SIMPLE
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.testimonial-simple {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.testimonial-simple p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

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

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.9375rem;
}

.testimonial-author .role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-simple {
  background: var(--primary);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.cta-simple h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-simple p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  font-size: 1.0625rem;
}

.cta-simple .btn-modern {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

.cta-simple .btn-modern:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

/* ============================================
   SIMPLE HEADER
   ============================================ */
.header-simple {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-simple .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-simple .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}

.header-simple .logo span {
  color: var(--primary);
}

.header-simple .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-simple .nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.header-simple .nav-link:hover,
.header-simple .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-simple .nav-link i {
  margin-right: 6px;
}

.header-simple .user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-simple .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.header-simple .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

/* Mobile Header Toggle */
.header-simple .mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
}

@media (max-width: 768px) {
  .header-simple .nav-links {
    display: none;
  }

  .header-simple .mobile-toggle {
    display: block;
  }

  .header-simple.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }

  .header-simple.nav-open .nav-link {
    width: 100%;
    padding: 12px 16px;
  }
}

/* ============================================
   SIMPLE FOOTER
   ============================================ */
.footer-simple {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer-simple .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-simple .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-simple .footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-simple .footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer-simple .footer-col a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 6px 0;
  transition: var(--transition);
}

.footer-simple .footer-col a:hover {
  color: var(--white);
}

.footer-simple .footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: 0.875rem;
}

.footer-simple .footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

/* Existing Footer Override for Simple Look */
.footer {
  background: var(--gray-900) !important;
  color: var(--gray-400);
  padding: 48px 0 24px;
}

.footer .text_heading {
  color: var(--white) !important;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer .footer_text_1,
.footer p {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--white);
}

.footer .copyright_footer {
  color: var(--gray-500);
  font-size: 0.8125rem;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  margin-top: 32px;
}

/* Override Existing Navbar Styles */
.navbar-modern {
  background: var(--white) !important;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: none !important;
  padding: 12px 0 !important;
}

.navbar-modern .navbar-brand {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--gray-900) !important;
  background: none !important;
  -webkit-text-fill-color: var(--gray-900) !important;
}

.navbar-modern .nav-link {
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: var(--gray-600) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-md);
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light) !important;
}

.navbar-modern .nav-link::after {
  display: none !important;
}

.navbar-modern .nav-link i {
  font-size: 1rem;
}

.profile-dropdown .avatar {
  width: 36px !important;
  height: 36px !important;
  background: var(--primary) !important;
}

.profile-dropdown .dropdown-menu {
  border: 1px solid var(--gray-200) !important;
  box-shadow: var(--shadow-lg) !important;
  border-radius: var(--radius-lg) !important;
}

.profile-dropdown .dropdown-item {
  font-size: 0.875rem;
  padding: 10px 16px !important;
}

.profile-dropdown .dropdown-item:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  transform: none !important;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 8px 0;
  z-index: 1000;
}

.mobile-nav-items {
  display: flex;
  justify-content: space-around;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.75rem;
  transition: var(--transition);
}

.mobile-nav-item i {
  font-size: 1.25rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-state i {
  font-size: 3rem;
  color: var(--gray-300);
  margin-bottom: var(--space-md);
}

.empty-state h3 {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

/* ============================================
   VIEW ALL BUTTON
   ============================================ */
.view-all-wrapper {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-simple h1 {
    font-size: 1.875rem;
  }

  .hero-simple p {
    font-size: 1rem;
  }

  .section-simple {
    padding: var(--space-2xl) var(--space-md);
  }

  .section-header-simple h2 {
    font-size: 1.5rem;
  }

  .categories-grid,
  .quiz-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .stats-simple {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top-modern {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.back-to-top-modern.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-modern:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

@media (min-width: 769px) {
  .back-to-top-modern {
    bottom: 24px;
  }
}

/* ============================================
   ADVERTISEMENT
   ============================================ */
.ad-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.ad-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ============================================
   PARTNERS/SPONSORS
   ============================================ */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
}

.partners-grid a {
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
}

.partners-grid a:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.partners-grid img {
  height: 40px;
  width: auto;
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
