/* ==========================================================================
   CannaEvent - Custom CSS
   Colors: primary=#111827, green=#1AFF30, cream=#fafafa
   ========================================================================== */

/* ---------- Base & Resets ---------- */
html {
  scroll-behavior: smooth;
}

::selection {
  background-color: rgba(26, 255, 48, 0.35);
  color: #111827;
}

::-moz-selection {
  background-color: rgba(26, 255, 48, 0.35);
  color: #111827;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1AFF30;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #15cc26;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #1AFF30 transparent;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 8px 40px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

/* ---------- Navigation Glass ---------- */
.nav-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-glass.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(17, 24, 39, 0.1);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #111827 0%, #1AFF30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero ---------- */
.hero-gradient {
  background:
    linear-gradient(135deg, rgba(3, 7, 18, 0.92) 0%, rgba(17, 24, 39, 0.85) 60%, rgba(31, 41, 55, 0.80) 100%),
    url('/assets/images/hero-bg.jpg') center center / cover no-repeat;
}

.hero-gradient h1,
.hero-gradient p,
.hero-gradient span {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ---------- Nav Links ---------- */
.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: #111827;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #1AFF30;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1AFF30;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ---------- Mobile Nav Link ---------- */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  color: #111827;
  font-weight: 500;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
  color: #1AFF30;
  padding-left: 1.25rem;
}

/* ---------- Footer Social ---------- */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social:hover {
  background: #1AFF30;
  transform: scale(1.1);
}

/* ---------- Footer Link ---------- */
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #1AFF30;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(26, 255, 48, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(26, 255, 48, 0.6);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.5s ease forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ---------- Content Prose ---------- */
.prose-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2d2d2d;
}

.prose-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(26, 255, 48, 0.3);
}

.prose-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-content p {
  margin-bottom: 1.25rem;
}

.prose-content ul,
.prose-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose-content ul {
  list-style-type: disc;
}

.prose-content ol {
  list-style-type: decimal;
}

.prose-content li {
  margin-bottom: 0.5rem;
}

.prose-content blockquote {
  border-left: 4px solid #1AFF30;
  background: rgba(26, 255, 48, 0.06);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #111827;
}

.prose-content a {
  color: #1AFF30;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.prose-content a:hover {
  color: #111827;
}

/* ---------- Buttons ---------- */
.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: #1AFF30;
  color: #111827;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.btn-green:hover {
  background: #15cc26;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 255, 48, 0.35);
}

.btn-green:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #1AFF30;
  font-weight: 600;
  border: 2px solid #1AFF30;
  border-radius: 0.5rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: #1AFF30;
  color: #111827;
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ---------- Blob Decoration ---------- */
.blob-decoration {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.blob-decoration.blob-primary {
  background: radial-gradient(circle, #111827, transparent 70%);
}

.blob-decoration.blob-green {
  background: radial-gradient(circle, #1AFF30, transparent 70%);
}

/* ---------- Section Dividers ---------- */
.section-divider-wave {
  position: relative;
  overflow: hidden;
}

.section-divider-wave::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23fafafa' d='M0,40 C360,80 720,0 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: cover;
}

.section-divider-wave-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23111827' d='M0,40 C360,80 720,0 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.cookie-visible {
  transform: translateY(0);
}

/* ---------- Reading Progress Bar ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #111827, #1AFF30);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ---------- Scroll to Top ---------- */
#scroll-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-top.scroll-top-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

#scroll-top.scroll-top-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Utility: stagger delays ---------- */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.25rem;
  }

  .prose-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .prose-content h2 {
    font-size: 1.5rem;
  }

  .prose-content h3 {
    font-size: 1.25rem;
  }
}
