@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Fredoka+One&display=swap');

:root {
  --main-blue: #4DA2FF;
  --accent-dark: #011829;
  --anim-light: #C0E6FF;
  --white: #ffffff;
  --text-dark: #022c4b;
  --text-light: #f0f8ff;
  --shadow: rgba(77, 162, 255, 0.25);
  --bg-start: #020a1A;
  --bg-end: #011829;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(320deg, var(--bg-start), var(--bg-end), var(--bg-start));
  background-size: 200% 200%;
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  animation: gradient-flow 15s ease infinite;
}

@keyframes gradient-flow {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

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

header {
  background: rgba(1, 24, 41, 0.9);
  backdrop-filter: blur(12px);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(77, 162, 255, 0.2);
  min-height: 70px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.nav-mobile-line1,
.nav-mobile-line2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-mobile-line1 {
  gap: 20px;
}

.nav-mobile-line2 {
  gap: 15px;
  font-size: 0.9rem;
}

.nav-mobile .nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--primary-blue);
  text-decoration: none;
}

.nav-mobile .nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-mobile .nav-link:hover,
.nav-mobile .nav-link.active {
  color: var(--primary-blue);
}

.mobile-coins {
  color: var(--accent-yellow);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Left section - Logo and badge */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* Center section - Navigation links */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

/* Right section - Auth container */
.nav-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

/* Desktop navigation adjustments for larger screens */
@media (min-width: 1200px) {
  .nav-desktop {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .nav-left {
    flex: 1;
    max-width: 300px;
  }
  
  .nav-center {
    position: static;
    transform: none;
    flex: 1;
    justify-content: center;
  }
  
  .nav-right {
    flex: 1;
    max-width: 300px;
    justify-content: flex-end;
  }
}

.nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  text-decoration: none;
  background: linear-gradient(45deg, var(--main-blue), var(--anim-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.beta-badge {
  background: linear-gradient(45deg, #ff6b35, #ff8f65);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  animation: pulse-beta 2s ease-in-out infinite;
  position: relative;
  top: -2px;
}

@keyframes pulse-beta {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

/* Global link color adjustments for content areas */
a { color: var(--anim-light); }
a:hover { color: var(--main-blue); }

.nav-links a:hover {
  color: var(--main-blue);
}

/* Disabled navigation link styles */
.nav-links .nav-link.disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  font-weight: 600;
}

.nav-mobile .nav-link.disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.btn {
  background: linear-gradient(45deg, var(--main-blue), #6db9ff);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.4s ease;
  border: none;
  box-shadow: 0 5px 20px var(--shadow);
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px var(--shadow);
}

.btn i {
    margin-right: 8px;
}

.btn-secondary {
  background: transparent;
  color: var(--main-blue);
  border: 2px solid var(--main-blue);
}

.btn-secondary:hover {
  background: var(--main-blue);
  color: var(--white);
}

footer {
  padding: 50px 0 20px 0;
  text-align: center;
  background: #000;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.8rem;
  margin: 0 15px;
  transition: color 0.3s;
}

/* Ensure custom image icon matches FA icon sizing/weight */
/* Moonbags icon as CSS background to match FA icon style and hover */
/* Moonbags icon uses mask so it inherits link color (like Font Awesome) */
.social-links .moonbags-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.social-links a:hover {
  color: var(--main-blue);
}

.moonbags-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* Makes the icon white */
  transition: all 0.3s ease;
  opacity: 1;
}

.social-links a:hover .moonbags-icon {
  filter: brightness(0) invert(0.3) sepia(1) saturate(5) hue-rotate(200deg) brightness(1.2); /* Blue tint on hover */
  transform: scale(1.1);
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 10px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.footer-links a:hover {
  background-color: rgba(77, 162, 255, 0.1);
  color: var(--main-blue);
}

.disclaimer {
  font-size: 0.9rem;
  color: #888;
  max-width: 800px;
  margin: 0 auto;
}

.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s, transform 0.8s;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-links.mobile-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(1, 24, 41, 0.95);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 20px;
  border-top: 1px solid rgba(77, 162, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-links.mobile-open li {
  margin: 10px 0;
}

.nav-links.mobile-open a {
  font-size: 1.1rem;
  padding: 10px 0;
  display: block;
}

/* Tablet and smaller desktop adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-center {
    position: static;
    transform: none;
    margin: 0 2rem;
  }
  
  nav {
    gap: 1rem;
  }
  
  .nav-links {
    gap: 20px;
  }
}

/* Mobile responsive breakpoint */
@media (max-width: 768px) {
  /* Hide desktop nav and show mobile nav */
  .nav-desktop {
    display: none;
  }
  
  .nav-mobile {
    display: flex;
  }
  
  /* Adjust header height for two-line layout */
  header {
    min-height: 80px;
    padding: 8px 0;
  }
  
  nav {
    min-height: 70px;
  }
  
  /* Mobile auth container */
  #auth-container-mobile {
    display: flex;
    align-items: center;
  }
  
  /* Hide hamburger menu related styles */
  .mobile-menu-btn {
    display: none !important;
  }
  
  .nav-links.mobile-open {
    display: none !important;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(1, 24, 41, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid rgba(77, 162, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  .nav-links.mobile-open li {
    margin: 10px 0;
  }
  
  .nav-links.mobile-open a {
    font-size: 1.1rem;
    padding: 10px 0;
    display: block;
    color: var(--text-light);
    text-decoration: none;
  }
  
  /* Mobile header optimizations */
  header {
    min-height: 70px;
    padding: 8px 0;
  }
  main {
    padding-top: 90px !important;
  }
  
  .hero {
    padding-top: 100px !important;
  }
  
  .meme-generator-container {
    padding-top: 110px !important;
  }
  
  .gallery-container {
    padding-top: 110px !important;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  header {
    min-height: 110px;
  }
  
  .meme-generator-container {
    padding-top: 150px !important;
  }
  
  .gallery-container {
    padding-top: 150px !important;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  header {
    min-height: 120px;
  }
  
  .meme-generator-container {
    padding-top: 160px !important;
  }
  
  .gallery-container {
    padding-top: 160px !important;
  }
} 