/* ----------- Base ----------- */
body, html {
  margin: 0; 
  padding: 0; 
  height: 100%; 
  overflow-x: hidden;
  font-family: 'Georgia', serif;
  background: #0b0b0f;
  color: #ffffff;
}

/* Selector / Dropdown */
.selector {
  text-align: center;
  margin: 20px auto 0 auto;
}
.selector select {
  padding: 6px 12px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f5f0e6;
  cursor: pointer;
}

/* ----------- Sparkling Title ----------- */
@keyframes sparkle {
  0%,100% { text-shadow:0 0 4px #fff,0 0 10px #fff; }
  50% { text-shadow:0 0 8px #fff,0 0 20px #fff; }
}
.sparkle {
  animation: sparkle 1s infinite;
  color: #ffffff;
  font-size: 3em;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* ----------- Central Column ----------- */
.intro-column {
  position: relative;
  width: 450px;
  margin: 0 auto;
  top: 50px;
  z-index: 10;
  color: #ffffff;
  text-shadow: 0 0 6px #ffffff;
}
.intro-container {
  background: rgba(0,0,0,0.6);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

/* ----------- Sections / Kastītes ----------- */
.main-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto;
  position: relative;
  z-index: 10;
}
section {
  background: rgba(0,0,0,0.6);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
  color: #ffffff;
  text-shadow: 0 0 6px #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 4px solid;
}
section:nth-child(1) { border-color: #361d18; }
section:nth-child(2) { border-color: #9e7100; }
section:nth-child(3) { border-color: #361d18; }
section:nth-child(4) { border-color: #9e7100; }
section:nth-child(5) { border-color: #361d18; }
section:nth-child(6) { border-color: #9e7100; }
section:nth-child(7) { border-color: #361d18; }
section:nth-child(8) { border-color: #9e7100; }
section:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255,255,255,0.4);
}

/* ----------- Floating Stars ----------- */
.star, .falling-star { pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  opacity: 0.9;
  animation: twinkle 2s infinite alternate;
  z-index: 1;
}
@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}
.falling-star {
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 4px white;
  animation: fall linear infinite;
  z-index: 2;
}
@keyframes fall {
  0% { transform: translate(0,0); }
  100% { transform: translate(1200px, 700px); }
}

/* ----------- Book Shelf ----------- */
.book-shelf-wrapper {
  width: 90%;
  max-width: 1000px;
  margin: 80px auto 50px auto;
  position: relative;
  z-index: 10;
  text-align: center;
}
.book-shelf-wrapper h2 {
  margin-bottom: 10px;
  font-size: 2em;
  text-shadow: 0 0 8px #ffffff;
}
.book-shelf {
  background: #361d18;
  border: 4px solid #9e7100;
  height: 220px;
  border-radius: 8px;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-bottom: 20px;
  position: relative;
  gap: 10px;
}
.book-shelf img {
  height: 160px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(255,255,255,0.2);
  transition: transform 0.3s ease;
  z-index: 2;
}
.book-shelf img:hover {
  transform: scale(1.05) translateY(-5px);
}
.shelf {
  position: absolute;
  bottom: 10px;
  width: 100%;
  height: 10px;
  background: #361f18;
  border-radius: 5px;
  z-index: 1;
}

/* ----------- Seasonal Moodboard 3x3 ----------- */
.moodboard-section {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
}

.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.moodboard-grid img {
  width: 100%;
  aspect-ratio: 3/4; /* Portreta formāts */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255,255,255,0.25);
  transition: transform 0.3s ease;
}

.moodboard-grid img:hover {
  transform: scale(1.05) rotate(0deg);
}


/* ----------- Neon link style ----------- */
a.neon-link {
  color: #f3c77e;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  text-shadow: 0 0 5px #f3c77e, 0 0 10px #f3c77e, 0 0 20px #f3c77e;
}
a.neon-link:hover {
  color: #fff5d1;
  text-shadow: 0 0 10px #fff5d1, 0 0 20px #fff5d1, 0 0 40px #fff5d1;
}

/* ----------- Responsive ----------- */
@media screen and (max-width:1024px){
  .main-wrapper {grid-template-columns: 1fr 1fr;}
}
@media screen and (max-width:768px){
  .main-wrapper, .intro-column, .book-shelf-wrapper, .moodboard-section {width:90%; margin:50px auto;}
  .main-wrapper {grid-template-columns: 1fr;}
  .moodboard-grid {grid-template-columns: repeat(2, 1fr); grid-auto-rows:180px;}
}
