@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* =========================================
   QUEREKA - COMPLETE STYLE.CSS
   PREMIUM GREEN THEME
========================================= */

:root {
  --primary: #41933e;
  --primary-dark: #073b20;
  --primary-light: #74d85a;
  --dark: #041f14;
  --text: #152518;
  --gold: #ffd700;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.6;

  color: var(--text);

  overflow-x: clip;
  overflow-y: auto;

  background-color: #031d10;

  background-image:
    repeating-radial-gradient(
      ellipse 85% 120% at 50% -35%,
      transparent 0,
      transparent 115px,
      rgba(80, 220, 100, 0.15) 118px,
      transparent 123px
    ),
    radial-gradient(ellipse at 50% 110%, #176b35 0%, #0a3e23 45%, #031d10 100%);

  background-attachment: fixed;
  background-repeat: no-repeat;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: #276c2a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* =========================================
   MAIN WEBSITE CONTAINER
========================================= */

.app {
  position: relative;

  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  height: auto;

  margin: 0 auto;

  overflow: visible;

  background-color: #052d19;

  background-image:
    radial-gradient(
      circle at 15% 20%,
      rgba(117, 255, 60, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 60%,
      rgba(65, 147, 62, 0.35),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      transparent 28%,
      rgba(17, 110, 42, 0.45) 29%,
      transparent 50%
    ),
    linear-gradient(45deg, #041f14 0%, #07502b 45%, #032716 100%);

  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(65, 147, 62, 0.15);
}

/* =========================================
   HEADER
========================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 17px 16px;

  background: linear-gradient(135deg, #41933e, #246d30);

  color: #ffffff;

  border-bottom: 2px solid #74d85a;
}

.header a {
  color: #ffffff;
  text-decoration: none;
}

.brand {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.hamb {
  border: 0;
  padding: 0;

  background: transparent;
  color: #ffffff;

  font-size: 26px;
  line-height: 1;
}

/* =========================================
   COIN WALLET
========================================= */

.wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  margin-left: auto;
  padding: 6px 12px;

  background: #ffffff;
  color: #235c23;

  border-radius: 24px;

  font-size: 14px;
  font-weight: 800;

  white-space: nowrap;
}

.wallet img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  vertical-align: middle;
  flex-shrink: 0;
}

.coin-icon svg,
.coin-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wallet .coin-icon {
  width: 22px;
  height: 22px;
}

.coin-large .coin-icon {
  width: 40px;
  height: 40px;
}

.hero-coin {
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

/* =========================================
   HERO
========================================= */

.hero {
  padding: 26px 18px;

  background: linear-gradient(
    135deg,
    rgba(7, 59, 32, 0.92),
    rgba(65, 147, 62, 0.65)
  );

  color: #ffffff;
}

.hero h1 {
  margin: 0 0 8px;

  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
}

.hero p {
  margin: 0;
  opacity: 0.95;
}

/* =========================================
   MAIN CONTENT
========================================= */

.wrap {
  padding: 16px;
  color: #ffffff;
}

.wrap h2 {
  margin-top: 8px;
}

/* =========================================
   CATEGORY TABS
========================================= */

.tabs {
  display: flex;
  gap: 8px;

  padding: 10px 0;

  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;

  padding: 9px 14px;

  background: #ffffff;
  color: #28692d;

  border: 1px solid #b6d8b7;
  border-radius: 30px;

  font-weight: 600;
  white-space: nowrap;
}

.tab.active {
  background: #41933e;
  color: #ffffff;
  border-color: #74d85a;
}

/* =========================================
   QUIZ CATEGORY CARDS
========================================= */

.card {
  margin: 12px 0;
  padding: 16px;

  background: #ffffff;
  color: #152518;

  border: 1px solid #d9ebd8;
  border-radius: 15px;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.catrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.caticon {
  display: grid;
  place-items: center;

  width: 60px;
  height: 60px;

  background: #e6f4e5;
  border-radius: 13px;

  font-size: 33px;
  flex-shrink: 0;
}

.card h3 {
  margin: 0;
  color: #152518;
  font-weight: 700;
}

.small {
  color: #627563;
  font-size: 12px;
  font-weight: 400;
}

.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  margin-top: 14px;
}

/* =========================================
   BUTTONS
========================================= */

.primary {
  display: inline-block;

  padding: 11px 18px;

  background: linear-gradient(135deg, #41933e, #246d30);

  color: #ffffff;

  border: 1px solid #41933e;
  border-radius: 9px;

  font-weight: 600;
  text-decoration: none;
}

.primary:hover {
  background: #245f28;
}

.secondary {
  display: inline-block;

  padding: 10px 15px;

  background: #ffffff;
  color: #2b762c;

  border: 1px solid #41933e;
  border-radius: 9px;

  font-weight: 600;
  text-decoration: none;
}

.secondary:hover {
  background: #e6f4e5;
}

.earn {
  padding: 11px 20px;

  background: linear-gradient(180deg, #fff36a, #ffc400);

  color: #302300;

  border: 2px solid #ffffff;
  border-radius: 30px;

  font-weight: 800;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =========================================
   QUIZ DETAIL PAGE
========================================= */

.detail {
  margin: 16px 0;
  padding: 20px;

  background: #ffffff;
  color: #152518;

  border: 1px solid #d8e6d7;
  border-radius: 17px;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.detail h2 {
  margin: 0;
}

.rule {
  margin: 12px 0;
}

/* =========================================
   QUIZ PLAYING PAGE
========================================= */

.quiztop {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin: 20px 0;

  color: #ffffff;
}

.timer {
  display: grid;
  place-items: center;

  width: 60px;
  height: 60px;

  background: rgba(0, 0, 0, 0.15);
  color: #ffffff;

  border: 4px solid #74d85a;
  border-radius: 50%;

  font-size: 22px;
  font-weight: 700;
}

.question {
  margin: 35px 0;

  color: #ffffff;

  font-size: 23px;
  line-height: 1.3;
}

.answer {
  width: 100%;

  margin: 6px 0;
  padding: 17px;

  background: #ffffff;
  color: #152518;

  border: 1px solid #c9d9c9;
  border-radius: 10px;

  text-align: left;
  font-weight: 700;
}

.answer:hover {
  border-color: #41933e;
}

.answer.correct {
  background: #c5f1ca;
  border-color: #228b35;
  color: #103d1b;
}

.answer.wrong {
  background: #ffd5d5;
  border-color: #c34242;
  color: #6d1717;
}

.center {
  text-align: center;
}

/* =========================================
   SIDEBAR OVERLAY
   FIXED INSIDE CENTERED APP WIDTH
========================================= */

.overlay {
  position: fixed;

  top: 0;
  left: max(0px, calc((100vw - 440px) / 2));

  width: min(440px, 100vw);
  height: 100vh;
  height: 100dvh;

  display: none;
  align-items: stretch;
  justify-content: flex-start;

  background: rgba(0, 0, 0, 0.68);

  z-index: 99999;
}

.overlay.open {
  display: flex;
}

/* =========================================
   SIDEBAR PANEL
========================================= */

.drawer {
  position: relative;

  width: min(280px, 85%);
  height: 100%;

  max-height: 100vh;
  max-height: 100dvh;

  overflow-x: hidden;
  overflow-y: auto;

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  background: #ffffff;
  color: #152518;

  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
}

/* =========================================
   SIDEBAR HEADER
========================================= */

.drawerhead {
  position: relative;

  padding: 28px 18px;

  background: linear-gradient(135deg, #0a4727, #41933e);

  color: #ffffff;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  padding-top: 10px;
}

.drawer-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  background: #ffffff;
  color: #287a35;

  border-radius: 14px;

  font-size: 26px;
  font-weight: 800;

  flex-shrink: 0;
}

.drawer-brand h2 {
  margin: 0;

  color: #ffffff;

  font-size: 21px;
  font-weight: 700;
}

.drawer-brand small {
  font-size: 11px;
  color: #ffffff;
  opacity: 0.9;
}

.drawerhead .close {
  position: absolute;

  top: 20px;
  right: 18px;

  float: none;

  padding: 0;

  background: transparent;
  color: #ffffff;

  border: none;

  font-size: 26px;
  line-height: 1;
}

/* =========================================
   SIDEBAR MENU LINKS
========================================= */

.drawer a {
  display: flex;
  align-items: center;
  gap: 13px;

  min-height: 53px;
  padding: 14px 20px;

  background: #ffffff;
  color: #183c25;

  border-bottom: 1px solid #e7eee8;

  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;

  text-decoration: none;
}

.drawer a:hover {
  background: #edf7ed;
  color: #247b32;
}

.drawer a svg {
  display: block;

  width: 19px;
  height: 19px;
  min-width: 19px;

  color: #41933e;

  stroke: currentColor;
  stroke-width: 2;

  flex-shrink: 0;
}

/* =========================================
   ARTICLES / POLICY PAGES
========================================= */

.article {
  padding: 20px;

  background: #ffffff;
  color: #152518;

  border: 1px solid #dce8dc;
  border-radius: 13px;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.article h1 {
  color: #174b23;
  font-size: 25px;
  line-height: 1.25;
}

.article h2 {
  margin-top: 25px;

  color: #245f28;
  font-size: 19px;
}

.article p,
.article li {
  line-height: 1.8;
}

/* =========================================
   FOOTER
========================================= */

.footer,
.site-footer {
  padding: 28px 20px;

  background: linear-gradient(145deg, #073b20, #041f14);

  color: #ffffff;

  border-top: 3px solid #41933e;

  font-size: 13px;
}

.footer a,
.site-footer a {
  display: inline-block;

  margin-right: 12px;
  margin-bottom: 10px;

  color: #ffffff;
  text-decoration: none;
}

.footer a:hover,
.site-footer a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.footer p,
.site-footer p {
  color: #e2f2e3;
}

/* =========================================
   NOTES / PILLS
========================================= */

.note {
  color: #d5e9d6;
  font-size: 12px;
  font-weight: 400;
}

.pill {
  display: inline-block;

  padding: 4px 9px;

  background: #e1f2df;
  color: #256b2a;

  border-radius: 20px;

  font-size: 12px;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 440px) {
  body {
    background: #052d19;
  }

  .app {
    width: 100%;
    max-width: 100%;

    box-shadow: none;
  }

  .overlay {
    left: 0;
    width: 100vw;
  }

  .drawer {
    width: min(280px, 85vw);
  }

  .hero h1 {
    font-size: 24px;
  }

  .question {
    font-size: 22px;
  }

  .wrap {
    padding: 14px;
  }

  .card {
    padding: 15px;
  }

  .primary {
    padding: 10px 14px;
  }
}

/* =========================================
   SMALL MOBILE SCREENS
========================================= */

@media (max-width: 360px) {
  .header {
    gap: 8px;
    padding: 14px 12px;
  }

  .brand {
    font-size: 17px;
  }

  .wallet {
    padding: 5px 8px;
    font-size: 12px;
  }

  .wallet img {
    width: 21px;
    height: 21px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .drawer a {
    padding: 13px 16px;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
