/* 
  Moosjer.be - Version 3
  Theme: 60s Psychedelic / Flower Power / Organic
*/

@import url('https://fonts.googleapis.com/css2?family=Spicy+Rice&family=Quicksand:wght@400;600&display=swap');

:root {
  /* Psychedelic Palette */
  --color-bg: #fffbf0;
  /* Warm cream off-white */
  --color-text: #3d2b1f;
  /* Dark brown organic text */
  --color-orange: #ff7f50;
  /* Warm Orange */
  --color-yellow: #ffd700;
  /* Sunshine Yellow */
  --color-purple: #9932cc;
  /* Deep Orchid */
  --color-lime: #32cd32;
  /* Lime Green */
  --color-teal: #008080;
  /* Teal */

  /* Gradients */
  --grad-sunset: linear-gradient(135deg, var(--color-orange), var(--color-purple));
  --grad-flow: linear-gradient(45deg, var(--color-yellow), var(--color-orange), var(--color-purple));

  /* Typography */
  --font-heading: 'Spicy Rice', cursive;
  --font-body: 'Quicksand', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Borders & Shadows */
  --border-organic: 2px solid var(--color-orange);
  --radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%;
  /* Organic shape */
  --shadow-glow: 0 10px 25px rgba(255, 127, 80, 0.3);
  --shadow-text: 2px 2px 0px rgba(255, 215, 0, 0.5);
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

body {
  background-color: var(--color-bg);
  background-image: url('assets/bg-watercolor.png');
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: multiply;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 18px;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--color-purple);
  text-shadow: var(--shadow-text);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  background-image: linear-gradient(var(--color-yellow) 0 0);
  background-position: 0 100%;
  /* Vertical position */
  background-size: 0% 5px;
  background-repeat: no-repeat;
  transition: background-size 0.3s, color 0.3s;
}

a:hover {
  background-size: 100% 5px;
  color: var(--color-purple);
}

/* Layout Utilities */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}

.text-center {
  text-align: center;
}

/* Navigation */
.site-header {
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 251, 240, 0.9);
  backdrop-filter: blur(5px);
  border-bottom: 2px dashed var(--color-orange);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-orange);
  text-shadow: 2px 2px 0 var(--color-purple);
  background: none !important;
  /* Override standard link hover */
}

.site-nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  background: none;
  /* Reset link style */
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--color-purple);
  text-shadow: 0 0 10px var(--color-yellow);
  transform: scale(1.1) rotate(-2deg);
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-bg);
  min-width: 220px;
  box-shadow: var(--shadow-glow);
  border: 2px dashed var(--color-orange);
  border-radius: 20px;
  z-index: 2000;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 0;
}

.dropdown-content a {
  color: var(--color-text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 1rem;
  background: none;
  text-align: center;
  border-radius: 10px;
  position: relative;
  /* Anchor for pseudo-element */
  z-index: 1;
  /* Keep text on top */
  transition: color 0.2s;
}

/* Pseudo-element for the yellow background to allow rotation without breaking hover */
.dropdown-content a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-yellow);
  border-radius: 10px;
  z-index: -1;
  /* Behind text */
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-content a:hover {
  color: var(--color-purple);
  background: none;
  /* Ensure no bg on main element */
}

.dropdown-content a:hover::before {
  opacity: 1;
}

/* Balanced randomized rotations with stronger angles */
/* Explicit alternating rotations for the 5 menu items */
.dropdown-content a:nth-child(1):hover::before {
  transform: scale(1.05) rotate(-3deg);
  /* Catch You In The Eye (Left) */
}

.dropdown-content a:nth-child(2):hover::before {
  transform: scale(1.05) rotate(3deg);
  /* Lat Min Gerust (Right) */
}

.dropdown-content a:nth-child(3):hover::before {
  transform: scale(1.05) rotate(-3deg);
  /* I Want You (Left) */
}

.dropdown-content a:nth-child(4):hover::before {
  transform: scale(1.05) rotate(3deg);
  /* Krupt Ut Je Bedde (Right) */
}

.dropdown-content a:nth-child(5):hover::before {
  transform: scale(1.05) rotate(-3deg);
  /* Desert Blues (Left) */
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Fix for dropdown flickering: Disable movement on the trigger link */
.site-nav .dropdown>a:hover {
  transform: none;
  cursor: default;
}

/* Invisible bridge to prevent losing hover when moving to content */
.dropdown-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/pattern-fractal.png');
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.album-art-frame {
  width: 350px;
  height: 350px;
  background: var(--grad-flow);
  border-radius: var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-flow);
}

.album-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-blob);
  display: block;
}

/* Fallback state when image is missing */
.fallback-title {
  color: var(--color-purple);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  padding: var(--space-md);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: var(--shadow-text);
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: url('assets/icon-sun.png') no-repeat center/cover;
  /* Placeholder logic */
  background-color: #fff;
  border: 5px solid #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 40px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  background: var(--grad-sunset);
  color: #fff;
  border-radius: 50px;
  /* Pill shape */
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  background-size: 200% auto;
  text-transform: uppercase;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background-position: right center;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  100% {
    transform: translateY(0px) rotate(0deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Decorative Stickers */
.sticker {
  position: absolute;
  width: 80px;
  z-index: 10;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
}

.sticker-mushroom {
  top: -20px;
  right: -30px;
  transform: rotate(15deg);
}

.sticker-sun {
  bottom: -30px;
  left: -20px;
  animation: spin-slow 20s linear infinite;
}

/* Section Components */
.section-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-glow);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
  background: transparent;
  border-top: 2px dashed var(--color-orange);
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .album-art-frame {
    width: 250px;
    height: 250px;
  }

  .album-placeholder {
    width: 200px;
    height: 200px;
  }
}

/* Memories & Gallery */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.memory-card {
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid var(--color-purple);
  border-radius: var(--radius-blob);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  color: var(--color-text);
  display: block;
}

.memory-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 10px 20px rgba(153, 50, 204, 0.4);
  background: rgba(255, 255, 255, 0.6);
}

.memory-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px dashed var(--color-orange);
}

.memory-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 15px 10px 5px;
  color: var(--color-purple);
}

.memory-desc {
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0 10px;
  font-style: italic;
}

/* Gallery Pages */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: var(--space-lg);
}

.gallery-item {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.breadcrumbs {
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--color-purple);
}


/* Lightbox Overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 127, 80, 0.5);
  border: 4px solid var(--color-orange);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  font-family: sans-serif;
  transition: all 0.3s;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
  color: var(--color-yellow);
  transform: scale(1.2) rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition: all 0.3s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-family: sans-serif;
  z-index: 10001;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-yellow);
  transform: translateY(-50%) scale(1.2);
}

@media (max-width: 768px) {

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 10px;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}