

:root {
  --bg-color: #0d0d0d;
  --text-color: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --font-main: "Outfit", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-color);
  font-family: var(--font-main);
  color: var(--text-color);
  transition: background-color 1.5s ease;
  font-family: "Montserrat", sans-serif;
}

/* Canvas takes full screen behind UI */
#liquidCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* The core of the liquid effect: Blur + Contrast */
  filter: blur(12px) contrast(1.5) brightness(1.2);
  /* Improve performance */
  transform: translateZ(0);
}

/* UI Overlay styling */
.ui-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* Let clicks pass through to canvas if needed, but we have buttons */
}

header {
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.title {
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #aaa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.8;
  color: #ffffff;
}

/* Palette Display */
.palette-display {
  display: flex;
  gap: 15px;
  margin-bottom: 3rem;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  pointer-events: auto;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.swatch {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: var(--color);
  transition:
    transform 0.3s ease,
    background-color 0.8s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swatch span {
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  /* Adaptive color logic would be better but simple dark is ok for light palettes */
  letter-spacing: 0.5px;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch:hover span {
  opacity: 1;
}

/* Mood Buttons */
.mood-selector {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}

.mood-btn {
  padding: 12px 24px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mood-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mood-btn.active {
  background: white;
  color: black;
  border-color: white;
}

/* Palette yerine yazı modu */
.palette-display.is-text {
  justify-content: center;
  align-items: center;
  gap: 0;
}

.palette-display.is-text .swatch {
  display: none;
}

.palette-text {
  width: min(720px, 92vw);
  text-align: center;
  padding: 4px 6px;
}

.palette-text h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.palette-text p {
  font-size: 1rem;
  opacity: 0.86;
  line-height: 1.5;
  margin-bottom: 14px;
}

.palette-text .cta {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.palette-text .chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Referanslar ekranında içerik taşmasın: kutu scroll */
#paletteDisplay {
  max-height: min(72vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 6px; /* scrollbar için boşluk */
}

/* scrollbar (opsiyonel, modern dursun) */
#paletteDisplay::-webkit-scrollbar {
  width: 10px;
}
#paletteDisplay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}
#paletteDisplay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

/* Referanslar içinde layout: başlık sabit, liste scroll */
.gc-refs-wrap {
  width: min(980px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gc-refs-head {
  text-align: center;
}

.gc-refs-scroll {
  overflow: auto;
  max-height: min(52vh, 520px); /* burada grid aşağı yukarı kayar */
  padding: 6px 4px 2px;
}

/* grid */
.gc-refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 120px));
  gap: 14px;
  justify-content: center;
}

/* kart */
.gc-refs-card {
  width: 200px;
  height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.gc-refs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* alt kısım sabit blok gibi */
.gc-refs-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
}

/* sosyal sorumluluk */
.gc-charity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}
.gc-charity img {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
}
.gc-charity small {
  font-size: 0.78rem;
  opacity: 0.85;
  text-align: center;
  line-height: 1.35;
}

/* Ekranın en altına TAM yapışık sabit bar */
.gc-charity-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0; /* ✅ tam yapışık */
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 0; /* ✅ bar gibi dursun */

  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);

  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

/* içerik genişliği kontrollü */
.gc-charity-fixed .gc-charity-inner {
  width: min(980px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gc-charity-fixed img {
  width: 26px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.gc-charity-fixed small {
  font-size: 0.78rem;
  opacity: 0.9;
  line-height: 1.25;
  text-align: center;
}

/* Bar altta; içerik üstüne binmesin */
.ui-overlay {
  padding-bottom: 56px;
}

@media (max-width: 520px) {
  .gc-charity-fixed small {
    font-size: 0.72rem;
  }
  .ui-overlay {
    padding-bottom: 64px;
  }
}
/* Responsive */
@media (max-width: 600px) {
  .title {
    font-size: 2.5rem;
  }

  .swatch {
    width: 40px;
    height: 40px;
  }

  .swatch span {
    display: none;
  }
}


/* Lightbox */
.gc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(10px);
}

.gc-lightbox-card {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 88vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  overflow: hidden;
  padding: 12px;
}

.gc-lightbox-img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain; /* ✅ taşırmaz, ölçülü büyütür */
  display: block;
  border-radius: 14px;
}

.gc-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* kart hover “tıklanabilir” hissi */
.gc-refs-card { cursor: zoom-in; }
.gc-refs-card:hover { transform: translateY(-2px); transition: .2s ease; }

/* Instagram sabit buton */
.gc-instagram-fixed {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  pointer-events: auto;
}

.gc-instagram-fixed a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;

  color: #fff;
  font-weight: 700;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );

  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: all .2s ease;
}

.gc-instagram-fixed a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
#liquidCanvas {
  pointer-events: none;
}

.ui-overlay{
  pointer-events: none;
}

.ui-overlay *{
  pointer-events: auto;
}