
/* === Custom Cursor === */
html { cursor: url('cursor.png'), auto; }
html.cursor-link { cursor: url('cursorhover.png'), pointer; }
html.cursor-click { cursor: url('cursorclick.png'), pointer; }
/* Fallback when JS is unavailable */
a:hover, button:hover, .btn:hover, .nav-btn:hover { cursor: url('cursorhover.png'), pointer; }
a:active, button:active, .btn:active, .nav-btn:active { cursor: url('cursorclick.png'), pointer; }

:root {
  --bg-start: #ffffff; /* white */
  --bg-end: #f7cfbd;   /* light pink */
  --dot-color: rgba(255, 106, 165, 0.18); /* subtle pink dots */
  --dot-spacing: 10px; /* grid cell size (larger dots spacing) */
  --cursor-normal: url('cursorhover.png'), auto;
  --cursor-link: url('cursor.png'), auto;
  --cursor-click: url('cursorclick.png'), auto;
}

html {
  height: 100%;
  cursor: var(--cursor-normal);
}

/* Add cursor classes to html element instead */
html.custom-cursor-normal {
  cursor: var(--cursor-normal);
}

html.custom-cursor-link {
  cursor: var(--cursor-link);
}

html.custom-cursor-click {
  cursor: var(--cursor-click);
}
/* ===== Cursor Flower Trail Effect ===== */
.cursor-flower {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 999999; /* raise even higher */
  transform: translate(-50%, -50%);
  animation: flowerFade 1s ease-out forwards;
}

.cursor-flower::before,
.cursor-flower::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #ffb7c5 50%, transparent 51%);
  border-radius: 50%;
}

.cursor-flower::after {
  transform: rotate(45deg);
}

@keyframes flowerFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
  }
}
/* Make sure all interactive elements use the link cursor */
a, button, .btn, input[type="submit"], input[type="button"],
nav a, .demo-button, .social-links a, .read-more {
  cursor: var(--cursor-link);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "MS Gothic", "MS PGothic", Meiryo, Arial, sans-serif;
  cursor: inherit;

  /* Parallax-style fixed background with halftone dot overlay */
  background-image:
    radial-gradient(circle, var(--dot-color) 35%, transparent 36%),
    radial-gradient(circle, var(--dot-color) 35%, transparent 36%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  /* Dots scroll (foreground), gradient stays fixed (background) for parallax */
  background-attachment: scroll, scroll, fixed;
  background-repeat: repeat, repeat, no-repeat;
  background-size: var(--dot-spacing) var(--dot-spacing), var(--dot-spacing) var(--dot-spacing), 100% 100%;
  background-position: 0 0, calc(var(--dot-spacing) / 2) calc(var(--dot-spacing) / 2), 0 0;
  background-color: var(--bg-end);
}

/* Ensure common app roots inherit height so the background fills */
#root,
#app,
#__next {
  min-height: inherit;
}

/* Optional: improve font rendering slightly on supported browsers */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: inherit;
}

/* Global text color */
body  {
  color: #745039;
}

/* Content Layout Styles */
.content-layout {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.blog-entry {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.blog-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.blog-entry h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #745039;
  font-weight: 600;
}

.blog-entry p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.blog-date {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

@media (max-width: 768px) {
  .content-layout {
    flex-direction: column;
    gap: 24px;
  }
  
  .main-content,
  .blog-sidebar {
    flex: none;
    width: 100%;
    min-width: 300px;
  }
}

footer {
  margin-top: 72px;
  text-align: center;
}

.footer-content {
  max-width: 100vw;
  min-height: 205px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  z-index: 1;
  background: url("../public/footer.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.footer-row {
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  position: relative; 
  margin-top: 120px;
  padding: 5px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-top: -24px;
  padding: 0 12px 12px 12px;
}

.footer-section h3 {
  margin: 0 0 12px 0;
  font-size: clamp(0.6rem, 1.2vw, 1.1rem);
  color: #745039;
}

.footer-section p, .footer-section a {
  margin: 0;
  font-size: clamp(0.5rem, 1vw, 1rem);
  color: #a67c52;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-links a {
  padding: 0px 12px;
  background: linear-gradient(45deg, #ffb6c1, #ffffff);
  color: #333;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(19, 10, 10, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  border: 1px solid rgba(255, 182, 193, 0.3);
  text-decoration: none;
  color: #745039;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(31, 14, 17, 0.1));
  border-radius: 4px;
  pointer-events: none;
  color: #745039;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #745039;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-section {
    min-width: auto;
  }
}

/* Navigation Button Styles */
nav {
  display: flex;
  gap: 0px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100vw;  /* Or a fixed px width if you want */
  overflow: hidden;
}

nav a {
  cursor: var(--cursor-link);
  display: block; /* Ensure the anchor behaves like a block element */
  width: 15vw; /* Set width relative to viewport width */
  min-width: 86px;
  aspect-ratio: 3.35 / 1; 
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  color: transparent; /* Hide text */
  text-shadow: none;
  padding: 0;
  margin: 0;
}

/* Navigation Button Image Effects */
nav a[href="about.html"],
nav a[href="/about.html"] {
  background-image: url('../public/about-button.png');
}

nav a[href="about.html"]:hover,
nav a[href="/about.html"]:hover {
  background-image: url('../public/about-hover.png');
  /* transform: translateY(-2px) scale(1.50); */
}

nav a[href="blog.html"],
nav a[href="/blog.html"] {
  background-image: url('../public/blog-button.png');
}

nav a[href="blog.html"]:hover,
nav a[href="/blog.html"]:hover {
  background-image: url('../public/blog-hover.png');
}

nav a[href="shop.html"],
nav a[href="/shop.html"]{
  background-image: url('../public/store-button.png');
}

nav a[href="shop.html"]:hover,
nav a[href="/shop.html"]:hover {
  background-image: url('../public/store-hover.png');
}
nav a[href="gallery.html"],
nav a[href="/gallery.html"] {
  background-image: url('../public/gallery-button.png');
}

nav a[href="gallery.html"]:hover,
nav a[href="/gallery.html"]:hover{
  background-image: url('../public/gallery-hover.png');
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.image-card {
  background: #fff;
  border: 2px solid #f3c8d2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image-card:hover {
  transform: translateY(-5px);
}

.image-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
/* Blog Page Styles */
.blog-header {
  text-align: center;
  margin: 48px 0;
  padding: 0 24px;
}

.blog-header h1 {
  font-size: 48px;
  margin: 0 0 16px 0;
  color: #312424;
  font-weight: 700;
}

.blog-header p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  padding: 0 24px 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 182, 193, 0.2);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.blog-card.featured .blog-image {
  height: 400px;
}

.blog-card.featured .blog-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card.featured h2 {
  font-size: 32px;
  margin: 0 0 16px 0;
  color: #312424;
  line-height: 1.2;
}

.blog-image {
  height: 250px;
  overflow: hidden;
  background: linear-gradient(45deg, #ffb6c1, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 24px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: center;
}

.blog-category {
  background: linear-gradient(45deg, #ffb6c1, #ffc0cb);
  color: #333;
  padding: 4px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-date {
  color: #999;
  font-size: 14px;
  font-style: italic;
}

.blog-card h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: #312424;
  line-height: 1.3;
  font-weight: 600;
}

.blog-card p {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

.read-more {
  color: #ff6b9d;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #e55a8a;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 32px 16px;
  }
  
  .blog-card.featured {
    grid-template-columns: 1fr;
  }
  
  .blog-card.featured .blog-image {
    height: 250px;
  }
  
  .blog-card.featured .blog-content {
    padding: 24px;
  }
  
  .blog-header h1 {
    font-size: 36px;
  }
  
  .blog-header p {
    font-size: 16px;
  }
}
/* Vertical image display with cute dotted borders */
/* Container for stacking image cards */
.image-cards-container {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: flex-start; /* push cards to the left */
  gap: 15px; /* space between cards */
}

.image-card {
  width: 100%;
  max-width: 500px; /* optional, controls maximum size */
  margin: 15px auto;
  border: 2px dotted #b58b6a;
  border-radius: 10px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.image-card img {
  display: block;
  width: 100%;
  height: auto; /* keeps proportions */
  border-radius: 8px;
}
/* Scale GIF inside .image-display */
.image-display {
  max-width: 100%;   
  border-radius: 8px;
  padding: 8px;
  background: #fdfaf4;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.image-display img {
  width: 100%;
  height: auto;       /* keeps correct proportions */
  display: block;
  border-radius: 6px;
}

.image-display:hover{
  opacity: 0.8;
}

:root { --lace-width: 80px; }

/* Vertical lace border base */
.lace-side {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--lace-width);
  pointer-events: none;
  z-index: 50;
  background: url("../public/rabbit-lace.png") repeat-y;
  background-size: contain;
  animation: scroll-lace 30s linear infinite;
  width: 4vw;
}
/* Wrapper for buttons or items that need a "NEW" badge */
.has-new {
  position: relative;
  display: inline-block;
}

.has-new::after {
  content: "";
  position: absolute;
  top: -14px;  /* adjust position */
  right: -12px; /* adjust position */
  width: 50px;
  height: 40px;
  background: url("../public/new.gif") no-repeat center/contain;
  object-fit: contain;
  pointer-events: none;
}

.lace-left { left: 0; }
.lace-right { right: 0; transform: scaleX(-1); }

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers logo, slideshow, nav horizontally */
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  max-width: 960px;      /* keeps everything neat */
}

.site-header .logo img {
  max-width: 60%; /* scale logo smaller */
  height: auto;
  margin-top: 30px;
}

.site-header .logo:hover img{
  content: url('../public/chiffonlogo-hover.png');
  max-width: 60%;
  height: auto;
  margin-top: 30px;
}

/* === Imageboard Style Blog === */
.imageboard {
  width: 95%;
  max-width: 1100px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: "MS PGothic", Arial, sans-serif;
}

.thread {
  display: flex;
  background: #fffdf9;
  border: 1px solid #d9caca;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
}

.thread-image img {
  width: 160px;
  height: auto;
  margin-right: 15px;
  border: 1px solid #ccc;
}

.thread-content {
  flex: 1;
}

.thread-meta {
  font-size: 0.8em;
  color: #777;
  margin-bottom: 6px;
}

.thread-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #c45b7e;
}

.thread-excerpt {
  font-size: 0.9em;
  line-height: 1.4em;
  margin-bottom: 8px;
}

/* Scroll animation */
@keyframes scroll-lace {
  from { background-position-y: 0; }
  to   { background-position-y: 100%; }
}