/* ===== RESET & GLOBAL ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #2e2e2e;
  color: #111;
  line-height: 1.5;
}

html, body {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

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

/* ===== NAVBAR ===== */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000000;
  border-bottom: 1px solid #212121;
  padding: 16px 20px;
}

header.navbar.fixed-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #000000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 100%;
}

.logo-img {
  height: 35px;
  width: auto;
  display: block;
}

.navbar.scrolled {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logo {
  font-weight: bold;
  font-size: 22px;
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 24px;
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #9501ff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: #9501ff;
  transform: translateY(-2px);
}

.nav-links a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.btn-signup {
  padding: 8px 14px;
  background: #9501ff;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-left: 15px;
  text-transform: uppercase;
  font-size: 12px;
}

.btn-signup:hover {
  background: #ba5dfc; /* Updated hover color */
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 1px;
}

.footer-copy {
  opacity: 0.6;
}

/* ===== MODAL ===== */
.video-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.show {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: #000;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 100;
}

/* ===== COMPETITION CARDS ===== */
.competition-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: border 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
  background-clip: padding-box;
  opacity: 0;
  transform: translateY(20px);
}

.competition-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.competition-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero image container */
.card-top-section {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  color: #000;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

/* Contest title inside hero */
.card-top-section h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  max-width: 70%; /* optional width restriction */
  white-space: pre-line; /* allows <br> */
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
  text-align: left;
  position: absolute;
  left: 20px;
}

/* Prize tag - top-left */
.prize-tag,
.prize {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255 255 255 / 0.85);
  color: #000;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  user-select: none;
  pointer-events: none;
  display:  none;
}

.prize-tag::before,
.prize::before {
  content: '🎁';
  display: inline-block;
  margin-right: 6px;
}

/* Status badge - top-right */
.status,
.active-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Bottom section */
.card-bottom-section {
  background: #686868;
background: linear-gradient(130deg,rgba(104, 104, 104, 1) 0%, rgba(78, 78, 78, 1) 50%, rgba(72, 72, 72, 1) 100%);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-dates {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 4px;
}

.hashtag {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

/* Platform icons */
.platform-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-icons .pill {
  display: inline-flex;
  align-items: center;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  gap: 8px;
  user-select: none;
}

.platform-icons .pill img {
  height: 16px;
  width: 16px;
  display: inline-block;
}

.pill-tiktok {
  background-color: #000;
}

.pill-instagram {
  background-color: #e1306c; /* Instagram pink */
}

.card-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: 8px;
}

.btn-link {
  font-weight: bold;
  border-bottom: 2px solid #ba5dfc;
  padding-bottom: 2px;
  color: #ba5dfc;
}

.muted {
  color: #ccc;
  font-weight: bold;
}

/* ===== MOBILE HEADER ===== */
/* Hidden by default on desktop */
.mobile-header {
  display: none;
}

@media screen and (max-width: 767px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #111;               /* dark background */
    border-bottom: 1px solid #333; /* darker border */
    position: relative;
    z-index: 1000;
    height: 60px;
  }

  /* Hide desktop header/navbar on mobile */
  .desktop-header,
  header.navbar {
    display: none;
  }
}

/* ===== MOBILE MENU BUTTON (Hamburger) ===== */
.mobile-menu-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 24px;
  height: 3px;
  background: #eee;       /* lighter lines for contrast */
  border-radius: 2px;
}

/* ===== MOBILE LOGO (Centered in header) ===== */
.mobile-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
}

.mobile-logo img {
  width: 100%;
  height: auto;
}

/* ===== MOBILE SIDE MENU (Drawer) ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #111;                /* dark background */
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.8); /* stronger shadow */
  padding: 60px 20px;
  transition: left 0.3s ease;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Slide in */
.mobile-menu.show {
  left: 0;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 20px;
}

.mobile-nav a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #eee;               /* light text */
}

/* ===== MOBILE AUTH BUTTONS ===== */
.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.login-btn,
.signup-btn {
  padding: 12px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.login-btn {
  background: transparent;
  color: #eee;           /* light text */
  border: 2px solid #eee; /* light border */
}

.signup-btn {
  background: #eee;      /* light bg */
  color: #111;           /* dark text */
}

/* ===== MOBILE FOOTER ===== */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #111;                  /* dark background */
  border-top: 1px solid #333;       /* darker border */
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.8); /* stronger shadow */
}

.footer-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #eee;                      /* light text */
  font-size: 11px;
  font-weight: 500;
}

.footer-icon img {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  filter: brightness(0) invert(1);  /* invert icons if they are dark */
}

/* Hide mobile footer on desktop */
@media screen and (min-width: 768px) {
  .mobile-footer {
    display: none;
  }
}

/* footer */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  margin: 0 6px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-logo {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.divider {
  color: #666;
}

/* ===== GENERAL MODAL (Signup, etc.) ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  color: #111;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal h2 {
  font-size: 22px;
  margin-bottom: 1rem;
}

.modal input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.modal button[type="submit"] {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: #9501ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal button[type="submit"]:hover {
  background: #ba5dfc;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

