/* =========================
   ROOT VARIABLES
========================= */

:root {

  --primary: #7b4a2c;
  --primary-dark: #6a3e24;

  --accent: #ffb200;

  --button: #4c88c7;
  --button-hover: #3b76b4;

  --bg-main: #f5efe8;
  --bg-card: #ffffff;
  --bg-soft: #f3f3f3;

  --text-main: #333;
  --text-light: #777;

  --radius: 14px;

  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.10);

  --container: 1200px;

  --transition: 0.25s ease;

  --tg-color: #0088CC;
  --tg-2-color: #0074b3;

  --reddit-color: #FF4500;
  --reddit-2-color: #f14000;


}

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
}



/* =========================
   LAYOUT
========================= */

.container {
  max-width: var(--container);
  margin: auto;
  padding: 0 20px;
}



/* =========================
   NAVBAR
========================= */

.navbar {
  width: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: var(--container);
  margin: auto;

  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 42px;
}

.nav-logo span {
  font-size: 22px;
  font-weight: 700;
  color: #ffd86b;
  letter-spacing: 1px;
}

/* menu */

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ffd86b;
}

/* language button */

.lang {
  background: white;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang:hover {
  background: #ffd86b;
}



/* =========================
   HERO SECTION
========================= */

.hero {
  padding: 60px 20px;
  background: linear-gradient(180deg, #f6efe6, #f0e3d4);
}

.hero-container {

  max-width: var(--container);
  margin: auto;

  display: flex;
  align-items: center;
  gap: 60px;

  background: var(--bg-card);

  padding: 45px;

  border-radius: var(--radius);

  box-shadow: var(--shadow-card);
}

.hero-image img {
  width: 280px;
}

/* hero text */

.hero-content h1 {
  font-size: 34px;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 14px;
}

.hero-content strong {
  color: #b8771d;
}

/* hero buttons */

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 16px;
}

.claim-btn {
  background: var(--tg-color);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.claim-btn:hover {
  transform: translateY(-2px);
  background: var(--tg-2-color);
}

.share-btn {
  background: var(--reddit-color);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}

.share-btn:hover {
  opacity: 0.9;
  background: var(--reddit-2-color);

}



/* =========================
   SPINS SECTION
========================= */

.spins-section {
  padding: 70px 20px;
  max-width: var(--container);
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 40px;
}



/* grid layout */

.spins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}



/* =========================
   SPIN CARD
========================= */

.spin-card {

  background: var(--bg-soft);

  border-radius: var(--radius);

  box-shadow: var(--shadow-soft);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  transition: var(--transition);
}

.spin-card:hover {
  transform: translateY(-3px);
}


/* main row */

.spin-main {

  display: flex;
  align-items: center;
  gap: 18px;

  padding: 22px;
}


/* icon */

.spin-left img {
  width: 75px;
}


/* info */

.spin-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* spins text */

.spin-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}


/* time badge */

.spin-time {

  font-size: 15px;

  color: var(--text-light);

  background: #e6e6e6;

  padding: 6px 12px;

  border-radius: 6px;

  width: fit-content;
}


/* collect button */

.collect-btn {

  background: var(--button);
  color: white;

  padding: 14px 32px;

  border-radius: 10px;

  font-size: 16px;
  font-weight: 600;

  text-decoration: none;

  transition: var(--transition);
}

.collect-btn:hover {
  background: var(--button-hover);
}


/* bottom click strip */

.spin-bottom {

  background: #e9e9e9;

  font-size: 13px;
  color: #666;

  padding: 8px 16px;

  border-top: 1px solid #ddd;
}



/* =========================
   FOOTER
========================= */

.site-footer {
  background: #3b2314;
  color: #eee;
  margin-top: 70px;
}

.footer-container {

  max-width: var(--container);

  margin: auto;

  padding: 45px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 40px;

  flex-wrap: wrap;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 350px;
  font-size: 14px;
  line-height: 1.6;
  color: #d6d6d6;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffd86b;
}

.footer-bottom {
  text-align: center;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #c9c9c9;
}



/* =========================
   TABLET
========================= */

@media (max-width:1024px) {

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    width: 220px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .spins-grid {
    grid-template-columns: 1fr 1fr;
  }

}



/* =========================
   MOBILE
========================= */

@media (max-width:768px) {

  .nav-menu {
    display: none;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .spins-grid {
    grid-template-columns: 1fr;
  }

  .spin-main {
    flex-wrap: wrap;
  }

  .spin-left img {
    width: 60px;
  }

  .collect-btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 26px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

}

/* =========================
   ARTICLE SECTION
========================= */

.article-section {

  padding: 70px 20px;

  background: var(--bg-card);

}

.article-container {

  max-width: 800px;

  margin: auto;

  line-height: 1.8;

  color: var(--text-main);

  font-size: 16px;

}

.article-container h2 {

  font-size: 32px;

  margin-bottom: 20px;

  color: var(--primary-dark);

}

.article-container h3 {

  font-size: 24px;

  margin-top: 30px;

  margin-bottom: 10px;

  color: var(--primary);

}

.article-container p {

  margin-bottom: 16px;

}

.article-container ul {

  margin: 15px 0;

  padding-left: 20px;

}

.article-container li {

  margin-bottom: 8px;

}

.spin-card {
  position: relative;
}

/* ribbon tag */

.offer-tag {

  position: absolute;
  top: 0;
  right: 0;

  background: #ff7a00;
  color: white;

  font-size: 12px;
  font-weight: 700;

  padding: 6px 14px;

  border-bottom-left-radius: 8px;

  letter-spacing: 0.5px;

}

/* featured card */

.featured-card {

  grid-column: 1 / -1;

  background: #f4f4f4;

  border: 2px solid #ff7a00;

}


/* ribbon */

.offer-tag {

  position: absolute;

  top: 0;
  right: 0;

  background: #ff7a00;
  color: white;

  font-size: 12px;
  font-weight: 700;

  padding: 6px 14px;

  border-bottom-left-radius: 8px;

}


/* main layout */

.featured-main {
  align-items: center;
}


/* info center */

.featured-info {
  align-items: center;
  text-align: center;
}


/* expire text */

.expire-text {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}


/* countdown */

.countdown {

  display: flex;
  gap: 10px;
  margin-top: 8px;

}


/* timer boxes */

.time-box {

  background: #0d2a63;

  color: white;

  padding: 8px 10px;

  border-radius: 6px;

  text-align: center;

  min-width: 55px;

}

.time-box span {
  font-size: 18px;
  font-weight: 700;
  display: block;
}

.time-box small {
  font-size: 10px;
  opacity: 0.8;
}



.live-users {

  font-size: 13px;
  color: #d35400;
  font-weight: 600;

  margin-top: 6px;
}

/* =========================
   TASK PAGE (MOBILE FIRST)
========================= */

.tasks-section {
  padding: 40px 16px;
}

.tasks-container {
  max-width: 600px;
  margin: auto;
  background: var(--bg-card);
  padding: 25px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
}


/* headings */

.tasks-container h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.tasks-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 25px;
}


/* task list */

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* task card */

.task-card {

  background: var(--bg-soft);

  border-radius: 14px;

  padding: 16px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  text-align: left;

  transition: var(--transition);
}


/* active */

.task-card.active {
  border: 2px solid var(--accent);
}


/* completed */

.task-card.completed {
  border: 2px solid #28a745;
}


/* info */

.task-info h3 {
  font-size: 16px;
  margin-bottom: 3px;
}

.task-info p {
  font-size: 13px;
  color: var(--text-light);
}


/* button */

.task-btn {

  width: 100%;

  background: var(--button);
  color: white;

  padding: 12px;

  border: none;
  border-radius: 10px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: var(--transition);
}


/* loading */

.task-btn.loading {
  background: #999;
}


/* completed button */

.task-card.completed .task-btn {
  background: #28a745;
}


/* =========================
   STICKY FOOTER BUTTON
========================= */

.tasks-footer {

  position: fixed;

  bottom: 0;
  left: 0;

  width: 100%;

  padding: 12px 16px;

  background: white;

  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}


/* finish button */

#finishBtn {

  width: 100%;

  background: #ccc;
  color: white;

  padding: 14px;

  border: none;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 600;

  cursor: not-allowed;
}

#finishBtn.active {
  background: var(--accent);
  cursor: pointer;
}



/* =========================
   TABLET+
========================= */

@media (min-width:768px) {

  .tasks-container {
    padding: 40px;
  }

  .task-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .task-btn {
    width: auto;
    padding: 10px 20px;
  }

  .tasks-footer {
    position: static;
    box-shadow: none;
    margin-top: 20px;
  }

}