/* ----- | SHRINES PAGE STYLES | ----- */
/* Importing google font */
@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amaranth:ital,wght@0,400;0,700;1,400;1,700&display=swap');


@font-face {
  font-family: 'FancyH1'; 
  src: url('/assets/fonts/PORKYS.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Fonts */
  --primary-font: 'Raleway', sans-serif;
  --heading-font: 'Amaranth', sans-serif;

  /* Colors */
  --accent: #8d3f3f;
  --accent-2: #ff83a2;
  --background: #4bd6e2;
  --preloader-bg: #ffb75f;
  --divider: #f4d3e8;
  --heading:  rgb(187, 94, 94);
  --footer-bg: #793056;
  --footer-text: #c27283;
  --panel-bg: #ffffff;
  --panel-border: #f6c9b9;
  --muted: #6c4f6d;
  --text: #222;
  --link: #3c2a3a;
  --link-hover-bg: #f2f2f2;
  --dropdown-bg: #ffffff;
  --navtxt: rgb(161, 83, 83);;

  /* Gradients */
  --gradient-left: linear-gradient(360deg, rgb(217, 94, 178) 0%, #fbbf5d 100%);
  --gradient-right: linear-gradient(360deg, #fbbf5d, rgb(217, 94, 178));
  --gradient-btn: linear-gradient(90deg, var(--accent), var(--accent-2));
  --gradient-heading: linear-gradient(0deg, rgb(255, 227, 117) 15%, rgb(255, 90, 107) 100%);

  /* Layout */
  --maxwidth: 1250px; /*page width*/
  --gutter: 16px;
  --radius: 12px;

  /* Shadows */
  --shadow-light: 0 6px 12px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 6px 18px rgba(14, 12, 20, 0.04);
  --shadow-panel: 0 6px 18px rgba(14, 12, 20, 0.125);

  /* Sizes */
  --avatar-size: 40px;
  --mini-avatar-size: 56px;
  --banner-height: 350px;
  --font-small: 13px;
  --font-base: 15px;
  --font-h1: 1.6rem;
  --font-h2: 1.3rem;

  /* Cursor */
  --cursor-url: url("https://cur.cursors-4u.net/food/foo-6/foo523.cur"), auto;
}

/* popup */
#autoplay-popup.hidden {
  display: none;
  pointer-events: none;
}

/* Player!------------ */
#music-player {
  position: fixed;
  top: 3%;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
}

#music-toggle {
  cursor: var(--cursor-url);
  font-size: 18px;
  color: white;
  text-shadow: -1px 0 #428acd, 0 1px #428acd, 1px 0 #428acd, 0 -1px #428acd;
}

#music-title {
  font-family: fancyH1;
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-shadow: -1px 0 #428acd, 0 1px #428acd, 1px 0 #428acd, 0 -1px #428acd;
}
/* Player END!------------ */


/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffb75fa8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  font-size: 3.12rem;
  color: #fff;
  animation: zoomInOut 1s ease-in-out infinite;
}

@keyframes zoomInOut {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}


/* General background adjustments */
html, body {
  height: 100%;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative; /* Ensure the body element is a positioning context */
  cursor: var(--cursor-url);
}

/* Shrine page custom background */
body.shrine-page-body {
  font-family: var(--primary-font);
  color: var(--accent);

  background-image: 
    url("https://i.ibb.co/NggqXcBB/animal-03.png"), /* top layer */
    linear-gradient(180deg, #60E8F8, #FB9E77);       /* bottom layer */

  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  background-position: top left, center;
  background-blend-mode: soft-light;  
  background-attachment: scroll, fixed; /* gradient stays, pattern scrolls */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading);
  margin-top: 8px;
  margin-bottom: 4px;
}

h1 {
  font-size: var(--font-h1);
  text-align: center;
  font-weight: bolder;
  background: var(--gradient-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 { font-size: var(--font-h2); }

hr {
  border: 1px solid var(--divider);
  border-radius: 5px;
}

/* Page wrapper ensures vertical stacking & centering */
.shrine-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 0; /* was 40px 0, removed top space */
  margin-top: 0;
}

/* Title */
.sh1 {
  font-family: 'FancyH1', sans-serif;
  font-size: 50px;
  color: #FFFFFF;
  text-align: center;
  margin: 0;
  /* outline */
  -webkit-text-stroke: 2px #28a7dd; 
  -webkit-text-fill-color: #FFFFFF;
}

.h2-highlight {
  color: white;
  background: linear-gradient(90deg, #EF9470, #fbd15d);
  padding: 0.6em 12px;
  display: block;      
  width: 100%;           /* ensures it spans the container */
  box-sizing: border-box; /* include padding in width */
  border-radius: 6px;    
  margin-bottom: 1em;    
  text-transform: uppercase;
  position: relative; /*needed for pseudo element*/
}

.h3-with-gif {
  color: #98DFC8;
  text-transform: uppercase;
  width: fit-content;
  padding: 1px 8px 1px 1px;
  border-radius: 8px;
}

.h3-with-gif::before {
  content: "";
  display: inline-block;      /* it behaves like an image inline with text */
  width: 30px;                /* pokeball size */
  height: 30px;
  margin-right: 10px;         /* space between gif and text */
  vertical-align: middle;     /* align with the middle of the text */
  background-image: url('https://file.garden/ZuieK-GJI1CTTRsv/imgbb%20rec/dbt58sh-a6b64fd9-4b1f-4a08-a0d0-dfb6240ab4b0.gif');
  background-size: contain;    /* ensures the whole gif fits the box */
  background-repeat: no-repeat;
}

.h3-with-gif::after {
  content: "";
  display: block;
  width: 100%;               /* same width as the heading */
  height: 3px;               /* thickness of the line */
  background: #98DFC8;    
  border-radius: 2px;        /* rounded ends for a soft look */
  margin-top: 4px;           /* spacing from the heading text */
}

/* Navigation */
.shrine-nav {
  display: flex;
  flex-wrap: wrap; /* wrap buttons so they don't go offscreen */
  justify-content: center; 
  gap: 12px;
  margin-bottom: 0px;
  margin-top: 10px;
  justify-content: center;
}


/* All buttons */
.shrine-nav button {
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--heading-font);
  font-weight: bold;
  font-size: 18px;
  /* background: #28bfdd; default blue */
  /* color: #fff; */
  cursor: var(--cursor-url);
  transition: transform 0.2s, background-color 0.2s;
}

/* Hover effect for all buttons */
.shrine-nav button:hover {
  transform: scale(1.05);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
/* settings for iconify + txt buttons */
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* center whole content */
  gap: 8px; /* space between icon and text */
/* other settings */
  padding: 10px 18px;
  border-radius: 6px;
  background: rgba(179, 251, 255, 0.397);
  border: 2px solid rgb(179, 251, 255);              
  color: #27a0c9; 
  cursor: var(--cursor-url);
  font-family: var(--heading-font);
  font-size: 18px;
}

.dropbtn iconify-icon {
  font-size: 22px;   /* controls icon size */
  line-height: 1;    /* prevents weird vertical spacing */
}

.dropbtn:hover {
  background: rgb(179, 251, 255);
  color: #38AEDF;
  transform: scale(1.05);
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #28bfdd;
  border-radius: 8px;
  box-shadow: var(--shadow-panel);
  min-width: 160px;
  z-index: 10;
}

.dropdown-content button {
  width: 100%;
  background: none;
  border: none;
  padding: 10px;
  text-align: left;
  cursor: var(--cursor-url);
  color: white;
  font-family: var(--primary-font);
}

.dropdown-content button:hover {
  background: #f3936e;
  color: white;
}

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


/* Go Back button */
.shrine-nav .back-btn {
  background: #b77c63;
  color: white;
  border: none;
}

.shrine-nav .back-btn:hover {
  background: #f3936e;
}


/* Main box (banner + content inside) */
.shrine-box {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  width: 900px;
  height: 600px;
  margin: 20px 0 10px 0; /* smaller bottom margin */
}

/* Banner inside the box (left side) */
.shrine-banner {
  width: 250px;
  height: 600px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Scrollable content on the right */
.shrine-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  text-align: justify;
  /* Scrollbar customization */
  scrollbar-width: thin;
  scrollbar-color: #69f0ff #47c0e4;
}

.shrine-content img {
  display: block;
  margin: 0 auto; /* top-bottom 0, left-right auto */
  max-width: 100%;   /* images responsive */
}

/* Shrine sections */
.shrine-section {
  display: none;
}

.shrine-section.active {
  display: block;
}

/* Special footer for this page */
.shrine-footer {
  text-align: center;
  margin: 0; /* removed the previous top margin */
  padding: 10px;
  color: white;
  background-color: rgba(250, 235, 215, 0.062);
  border-radius: 8px;
  width: fit-content;
}

/* Text/content boxes inside shrine content */
.scontent-box {
  background: rgba(255, 244, 244, 0.9);  /* slightly transparent white */
  border: 2px solid #EDAC63;             /* matches your h3 color */
  border-radius: 12px;                    /* rounded corners */
  padding: 20px 24px;                     /* space inside */
  margin: 16px 0;                         /* space between boxes */
  transition: transform 0.2s, box-shadow 0.2s;
}


/* style for text inside boxes */
.scontent-box p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.image-caption {
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  margin: 6px 0 16px 0; /* spacing between image and caption */
  font-family: 'Raleway', sans-serif;
  margin-bottom: 25px;
  background-color: #ffefdc7c;
  border-radius: 5px;
}


/* book gallery */
/* === BOOK GALLERY LAYOUT === */
.book-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, 120px);
  gap: 1.5rem;
  padding: 1rem 0;

  justify-content: center;   /* centers the grid */
  overflow: visible;
}

/* === BOOK CARD === */
.book {
  position: relative;
  cursor: var(--cursor-url);
  text-align: center;
  transition: transform 0.2s ease;
  z-index: 1;
}

.book:hover {
  transform: scale(1.05);
  z-index: 100;
}

/* === BOOK IMAGE (uniform size) === */
.book img {
  width: 100%;
  aspect-ratio: 2 / 3;        /* keeps classic book ratio */
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* === TOOLTIP === */
.book::after {
  content: attr(data-title) " — " attr(data-author);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0,0,0,0.9);
  color: white;

  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;

  max-width: 180px;         /* controls wrapping width */
  width: max-content;
  white-space: normal;      /* allows wrapping */
  text-align: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;

  z-index: 1000;
}

.book:hover::after {
  opacity: 1;
  transform: translate(-50%, -4px);
}


/* === STAR RATING CONTAINER === */
.stars {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem; /* slightly bigger for presence */
  line-height: 1;
  white-space: nowrap;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  background-color: #ffffff49;
  border-radius: 4px;
}

/* grey base stars */
.stars::before {
  content: "★★★★★";
  color: #b0a0a0;
  text-shadow:
    0 0 3px rgba(0,0,0,0.8),
    0 1px 2px rgba(0,0,0,0.8);
}

/* gold overlay stars */
.stars::after {
  content: "★★★★★";
  color: gold;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--rating-percent, 100%);
  overflow: hidden;
  white-space: nowrap;

  text-shadow:
    0 0 4px rgba(255,215,0,0.8),
    0 0 8px rgba(255,200,0,0.6),
    0 2px 4px rgba(0,0,0,0.7);

  filter: brightness(1.15);
}

/* dolls collection */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
  }

  .doll-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: none;

  height: 220px;              /* uniform size */
  display: flex;             
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */

  transition: transform 0.3s ease;
}

  .doll-card img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;              
  object-fit: contain;       /* preserves full image */
  display: block;
  transition: transform 0.3s ease;
  padding: 10px;            
}

  /* ✨ Hover effect (balance + lift) */
  .doll-card:hover {
    transform: rotate(-2deg) scale(1.03);
  }

  /* 📱 Mobile tweaks */
  @media (max-width: 500px) {
    .gallery {
      padding: 20px;
      gap: 12px;
    }
  }