@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Source+Sans+3:wght@200..900&family=Baloo+2:wght@400..800&family=Nunito+Sans:wght@200..1000&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');



/* ------------------ ROOT VARIABLES ------------------ */
:root {
  /* Fonts */
  --font-main: "Poppins", sans-serif;
  --font-size-base: 1.125rem;
  --font-size-button: 1rem;
  --font-size-small: 0.8125rem;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semi-bold: 600;

  /* Border radius */
  --radius-small: 6px;
  --radius-large: 12px;
}

/* ------------------ BASE STYLES ------------------ */
html {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-main);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#category-sidebar-menu,
#category-sidebar-menu li,
#category-sidebar-menu a,
#category-sidebar-menu span {
  font-size: var(--font-size-small);
}

.logo {
  font-family: "Baloo 2", sans-serif;
  font-optical-sizing: auto;
  font-size: 32px;
  font-weight: 800;
  font-style: normal;
  font-variation-settings: "wdth" 70, "YTLC" 540;
}
.nunito-sans {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
}
/* ------------------ UTILITY CLASSES ------------------ */
.hidden {
  display: none !important;
}

.premium-user {
  display: block;
}

/* ------------------ BUTTONS ------------------ */
.fc-button {
  font-weight: var(--font-weight-semi-bold);
  font-size: var(--font-size-button);
  position: relative;
  overflow: hidden;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-small);
  line-height: 1.2;
  word-break: break-word;
  white-space: normal;
}

.fc-audio-button {
  transition: opacity 0.2s ease-in-out;
}

/* ------------------ LAYOUT ------------------ */
#main-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 1px);
  overflow: hidden;
  padding-top: 80px;
  
}

/* ------------------  END SG ------------------ */
#stats-page-container
{
  padding-top: 80px;
}

/* ------------------ MAIN CONTENT ------------------ */
#main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding-bottom: 40px;
}

#cards-container {
  padding: 0;
}

#cards-grid {
  padding-top: 100px;
}

@media (max-width: 768px) {
  #cards-grid {
    margin: 0 20px;
  }
}

/* ------------------ SIDEBAR ------------------ */
aside,
#sidebar {
  width: 20%;
  margin-left: 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 88%;
  overflow: hidden;
  position: relative;
}

.navbar {
  backdrop-filter: blur(10px);
  z-index: 999;
}
/* ------------------ SIDEBAR MENU ------------------ */
#category-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

#category-sidebar-menu li,
#category-sidebar-menu li:active,
#category-sidebar-menu li:focus,
#category-sidebar-menu a,
#category-sidebar-menu a:active,
#category-sidebar-menu a:focus,
#category-sidebar-menu summary {
  border-radius: 0 !important;
  outline: none !important;
  background-color: transparent !important;
  text-decoration: none !important;
}


/* ------------------ SLIDER ------------------ */
#slider {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding: 0;
  position: relative;
}

/* #sidebar::after {
  content: "";
  display: block;
  position: sticky;
  bottom: 0;
  width: 100%;
  margin-left: 6%;
  height: 1px;
  background-color: var(--border-gray);
  z-index: 10;
} */

/* ------------------ CARD ------------------ */
.card,
.card-body {
  border-radius: var(--radius-large) !important;
}

.card {
  overflow: hidden !important;
  max-width: 576px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Translation display area */
.card .bg-dark-card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.primary-lang-text {
  text-align: center;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 1rem;
  font-size: clamp(1.25rem, 4vw, 2.25rem) !important;
  line-height: 1.3 !important;
}

/* ------------------ DROPDOWN ------------------ */
.dropdown-content {
  z-index: 9999;
}

#category-sidebar-menu a.premium-locked {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ------------------ SVG ------------------ */

.svg-wrapper {
      width: 100vw;
      height: 100vh;
    }



.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: block;
}

/* Add this at the end of the file */
@media (min-width: 1024px) {
  nav.hidden.lg\:flex {
    display: flex !important;
  }
}

.lg-show-dropdown {
  display: none;
}

@media (min-width: 1024px) {
  .lg-show-dropdown {
    display: block !important;
  }
}

/* Mobile styles */
@media (max-width: 1023px) {
  .primary-lang-text {
    font-size: 2rem !important;
  }
  .fc-button {
    font-size: 0.8rem !important;
  }
}

/* Custom progress bar color override */
.progress::-webkit-progress-value {
  background-color: var(--progress-color, #05C7F2);
}

.progress::-moz-progress-bar {
  background-color: var(--progress-color, #05C7F2);
}

.progress[value]::-webkit-progress-value {
  background-color: var(--progress-color, #05C7F2);
}

.join {
    border-radius: 0 0 var(--rounded-btn, 0.5rem) var(--rounded-btn, 0.5rem);
}

/* ------------------ CHALLENGE PAGE ------------------ */
@media (max-width: 640px) {
  #challenge-page .language-section-content {
    display: flex;
    flex-direction: column;
  }

  #challenge-page .language-section-content > * {
    width: 100%;
  }

  #challenge-page .challenge-card-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  #challenge-page .challenge-card-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  #challenge-page .challenge-card-actions .start-challenge-btn {
    width: 100%;
  }
}