/* ========================================
   GeoRanks Global Page Styles v1.0
   Shared base template for all pages
   ======================================== */

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #a7f3d0 0%, #38bdf8 100%);
  min-height: 100vh;
}

/* ========================================
   GLASS HEADER
======================================== */
.home-glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  z-index: 1000;
}

.logo-header {
  display: flex;
  align-items: center;
}

.logo-header img,
.logo-link img {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-left: 0.8rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.logo-link {
  text-decoration: none;
}

.logo-link:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* ========================================
   HAMBURGER ICON
======================================== */
.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 1.8rem;
  margin: 0;
  margin-right: 1rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menu-icon span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #0d315a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-icon:hover {
  transform: scale(1.1);
}

/* ========================================
   MENU OVERLAY & PANEL
======================================== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 49, 90, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 9999;
  padding: 80px 32px 40px;
}

.menu-overlay.active .menu-panel {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* ========================================
   MENU TITLE - CORAL UNDERLINE
======================================== */
.menu-panel h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0e2c50;
  margin: 0 0 32px 0;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 16px;
}

.menu-panel h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff9770, #ff6f61);
  border-radius: 2px;
}

/* ========================================
   MENU BUTTONS - WITH SHIMMER EFFECT
======================================== */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 24px;
  margin-bottom: 12px;
  background: white;
  border: 2px solid rgba(13, 49, 90, 0.08);
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0d315a;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.menu-btn:hover::before {
  left: 100%;
}

.menu-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.menu-btn:active {
  transform: translateX(4px) scale(0.98);
}

/* ========================================
   DAILY CHALLENGE BUTTON (190px HEIGHT)
======================================== */
.menu-daily-challenge {
  position: relative;
  height: 170px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 151, 112, 0.6);
  box-shadow: 0 4px 20px rgba(255, 151, 112, 0.3);
}

.menu-daily-challenge .daily-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  z-index: 1;
}

.menu-daily-challenge .daily-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

.menu-daily-challenge .daily-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
}

.menu-daily-challenge .daily-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.menu-daily-challenge .daily-category {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.menu-daily-challenge:hover {
  transform: translateX(4px) scale(1.02);
  border-color: rgba(255, 111, 97, 0.9);
}

/* ========================================
   SPECIAL BUTTONS - CORAL UPGRADE & CLOSE
======================================== */
.upgrade-access-btn {
  background: linear-gradient(135deg, #ff9770 0%, #ff6f61 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 151, 112, 0.4);
  margin-top: 8px;
}

.upgrade-access-btn:hover {
  background: linear-gradient(135deg, #ff8560 0%, #ff5f51 100%);
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 151, 112, 0.5);
}

.menu-close {
  display: none; /* Hide old close button */
}

/* ========================================
   CLOSE X BUTTON - TOP RIGHT
======================================== */
.menu-close-x {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: #0e2c50;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  z-index: 10;
}

.menu-close-x:hover {
  transform: scale(1.2);
}

.menu-close-x:active {
  transform: scale(1) rotate(90deg);
}

/* ========================================
   SCROLLBAR STYLING
======================================== */
.menu-panel::-webkit-scrollbar {
  width: 8px;
}

.menu-panel::-webkit-scrollbar-track {
  background: rgba(13, 49, 90, 0.05);
  border-radius: 10px;
}

.menu-panel::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 10px;
}

.menu-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* ========================================
   UTILITY ANIMATIONS
======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   FOOTER STYLES
======================================== */
.home-footer {
  background: linear-gradient(135deg, #0d315a 0%, #1a4d7a 100%);
  padding: 2.5rem 1rem;
  text-align: center;
}

.footer-socials {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  animation: footerFadeIn 0.8s ease-out 0.6s forwards;
}

@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Frosted glass container for social icons */
.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.icon-row a {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-row a:hover {
  transform: scale(1.15) translateY(-2px);
  opacity: 0.9;
}

.icon-row img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(1.1);
}

.divider {
  width: 1px;
  height: 28px;
  background: rgba(109, 108, 108, 0.525);
}

.footer-socials p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

 .footer-links {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-top: 15px;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: #ffffff;
    }

    .footer-links span {
      color: rgba(255, 255, 255, 0.5);
    }

/* Mobile responsive footer */
@media (max-width: 640px) {
  .icon-row {
    gap: 0; /* Remove fixed gap */
    justify-content: space-between; /* Spread evenly across container */
    width: calc(100% - 2rem);
  }

  .divider {
    flex-shrink: 0; /* Prevent dividers from collapsing */
  }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
  .menu-panel {
    max-width: 100%;
  }

  .menu-icon {
    padding: 1.5rem;
  }

  .logo-header img,
  .logo-link img {
    height: 35px;
  }

  .menu-daily-challenge {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .menu-panel {
    padding: 24px 24px 32px;
  }

  .menu-panel h2 {
    font-size: 1.75rem;
  }

  .menu-btn {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .menu-daily-challenge {
    height: 170px;
  }

  .menu-daily-challenge .daily-title {
    font-size: 1.2rem;
  }

  .menu-daily-challenge .daily-category {
    font-size: 0.9rem;
  }
}