/* ============================================================
   I BEAN TROLLED — main.css
   Styles specific to index.html only
   ============================================================ */

/* ── HERO ── */
#home {
  text-align: center;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(42,26,78,.6) 0%,
    transparent 70%
  );
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 72px;
}
.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem,5vw,3.4rem);
  color: var(--text);
  text-shadow: 0 0 60px rgba(192,132,252,.5);
  line-height: 1.15; margin-bottom: 20px;
}
.hero-sub {
  font-style: italic;
  font-size: clamp(1rem,2.5vw,1.3rem);
  color: var(--accent); opacity: .85;
  margin-bottom: 48px; letter-spacing: .04em;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── ORACLE ── */
#oracle { background: radial-gradient(ellipse at 50% 60%, rgba(26,8,48,.8) 0%, transparent 70%); }

/* Card flip system */
.card-scene { width: 280px; height: 420px; perspective: 1000px; -webkit-perspective: 1000px; }
.card-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.4,0,.2,1);
  -webkit-transition: -webkit-transform .75s cubic-bezier(.4,0,.2,1);
}
.card-inner.flipped { transform: rotateY(180deg); -webkit-transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0; border-radius: 20px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card-back {
  background-image: url('../images/troll-whisperer.png');
  background-size: contain;
  border: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(139,92,246,.3), inset 0 0 60px rgba(91,33,182,.2);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.card-back-pattern {
    display: none;
  position: absolute; inset: 12px; border-radius: 12px;
  border: 1px solid rgba(167,139,250,.3);
  background: repeating-linear-gradient(45deg,transparent,transparent 10px,rgba(139,92,246,.04) 10px,rgba(139,92,246,.04) 20px);
}
.back-text {
    display: none;
}
.card-front { transform: rotateY(180deg); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card-header { padding: 22px 20px 16px; text-align: center; }
.card-symbol { font-size: 2.2rem; display: block; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(255,255,255,.5)); }
.card-name { font-family: 'Cinzel Decorative',serif; font-size: .75rem; letter-spacing: .15em; color: rgba(255,255,255,.95); text-transform: uppercase; }
.card-divider { height: 1px; margin: 0 20px; }
.card-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: rgba(0,0,0,.35); }
.affirmation { font-style: italic; font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.93); font-weight: 300; }
.ritual-block { border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }
.ritual-label { font-family: 'Cinzel Decorative',serif; font-size: .55rem; letter-spacing: .2em; color: rgba(255,255,255,.5); text-transform: uppercase; margin-bottom: 5px; }
.ritual-text { font-size: .8rem; color: rgba(255,255,255,.8); line-height: 1.6; }
.oracle-controls { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shuffling-text { color: #c084fc; font-style: italic; font-size: .85rem; animation: pulse2 .6s ease-in-out infinite alternate; }
@keyframes pulse2 { from{opacity:.4;} to{opacity:1;} }

/* Share buttons */
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.share-btn {
  font-family: 'Space Mono', monospace;
  font-size: .6rem; letter-spacing: .12em;
  border: none; border-radius: 50px;
  padding: 10px 20px; cursor: pointer;
  transition: all .3s; text-transform: uppercase;
}
.share-btn-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.share-btn-tt { background: #010101; color: #fff; border: 1px solid rgba(255,255,255,.2); }
.share-btn:hover { transform: translateY(-2px); opacity: .9; }
canvas#shareCanvas { display: none; }

/* ── I FOUND ONE ── */
#found { background: radial-gradient(ellipse at 30% 50%, rgba(58,42,8,.4) 0%, transparent 60%); }
.found-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; width: 100%; align-items: start; }
@media(max-width:700px) { .found-grid { grid-template-columns: 1fr; } }
.found-info h3 { font-family: 'Cinzel Decorative',serif; font-size: 1.1rem; color: #DAA520; margin-bottom: 16px; text-shadow: 0 0 20px rgba(218,165,32,.4); }
.found-info p { font-size: .95rem; line-height: 1.8; color: var(--muted); margin-bottom: 14px; font-style: italic; }
.luck-counter { background: rgba(218,165,32,.08); border: 1px solid rgba(218,165,32,.25); border-radius: 16px; padding: 24px; margin-top: 24px; text-align: center; }
.luck-number { font-family: 'Cinzel Decorative',serif; font-size: 3rem; color: #DAA520; text-shadow: 0 0 30px rgba(218,165,32,.6); display: block; }
.luck-label { font-size: .8rem; color: var(--muted); letter-spacing: .15em; font-family: 'Space Mono',monospace; }
.troll-form { display: flex; flex-direction: column; gap: 16px; }

/* ── TRACKER ── */
#tracker { background: radial-gradient(ellipse at 70% 40%, rgba(42,26,78,.4) 0%, transparent 60%); }
.map-container { width: 100%; max-width: 800px; background: rgba(15,13,20,.8); border: 1px solid rgba(192,132,252,.2); border-radius: 20px; overflow: hidden; }
.map-header { padding: 16px 24px; border-bottom: 1px solid rgba(192,132,252,.15); display: flex; align-items: center; justify-content: space-between; }
.map-header span { font-family: 'Space Mono',monospace; font-size: .65rem; letter-spacing: .15em; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.5s ease-in-out infinite; display: inline-block; margin-right: 8px; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.map-svg-area {
    width: 100%;
    aspect-ratio: 1402 / 1122;
    height: auto;
    position: relative;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}
.map-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.map-troll-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}
.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    transition: transform .2s;
    box-shadow: 0 0 8px currentColor;
}
.map-troll-pin:hover .pin-dot { transform: scale(1.6); }
.pin-label { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(7,6,10,.95); border: 1px solid rgba(192,132,252,.3); border-radius: 6px; padding: 4px 8px; font-family: 'Space Mono',monospace; font-size: .55rem; color: var(--text); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.map-troll-pin:hover .pin-label { opacity: 1; }
.map-zoom-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-family: 'Space Mono',monospace; font-size: .55rem; color: rgba(255,255,255,.3); letter-spacing: .1em; pointer-events: none; z-index: 5; }

/* Find cards */
.finds-list { width: 100%; max-width: 800px; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.find-card { background: rgba(255,255,255,.03); border: 1px solid rgba(192,132,252,.15); border-radius: 12px; padding: 16px 20px; display: flex; align-items: flex-start; gap: 16px; }
.find-troll-num { font-family: 'Cinzel Decorative',serif; min-width: 64px; padding: 6px 10px; border-radius: 8px; text-align: center; font-size: .7rem; }
.find-details { flex: 1; }
.find-location { font-family: 'Space Mono',monospace; font-size: .65rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 4px; }
.find-message { font-style: italic; font-size: .88rem; color: var(--text); line-height: 1.6; }
.find-date { font-family: 'Space Mono',monospace; font-size: .6rem; color: var(--muted); margin-top: 6px; }

/* Countdown */
.countdown-block { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.countdown-label { font-family: 'Space Mono',monospace; font-size: .62rem; letter-spacing: .08em; margin-bottom: 8px; }
.countdown-label strong { font-size: .75rem; }
.countdown-bar-bg { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.countdown-bar-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }

/* Map popup */
.map-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.map-popup-overlay.visible { opacity: 1; pointer-events: all; }
.map-popup { background: linear-gradient(145deg,#1a0a2e,#0f0d14); border-radius: 20px; padding: 28px; max-width: 420px; width: 100%; position: relative; border: 1px solid rgba(192,132,252,.2); box-shadow: 0 0 60px rgba(0,0,0,.8); transform: scale(.9); transition: transform .3s; }
.map-popup-overlay.visible .map-popup { transform: scale(1); }
.popup-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.popup-close:hover { color: var(--text); }
.popup-num { font-family: 'Cinzel Decorative',serif; font-size: .8rem; letter-spacing: .15em; padding: 6px 14px; border-radius: 8px; display: inline-block; margin-bottom: 14px; }
.popup-location { font-family: 'Space Mono',monospace; font-size: .65rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 10px; }
.popup-message { font-style: italic; font-size: .95rem; line-height: 1.7; color: var(--text); margin-bottom: 12px; }
.popup-photo { width: 100%; border-radius: 12px; margin-bottom: 12px; max-height: 260px; object-fit: cover; display: block; }
.popup-date { font-family: 'Space Mono',monospace; font-size: .6rem; color: var(--muted); }
.popup-no-photo { font-style: italic; font-size: .8rem; color: var(--muted); text-align: center; padding: 20px; border: 1px dashed rgba(255,255,255,.1); border-radius: 10px; margin-bottom: 12px; }

/* ── THE CODE ── */
#code {
  background: radial-gradient(ellipse at 50% 50%, rgba(42,26,78,.5) 0%, transparent 70%);
  text-align: center;
  min-height: auto;
  padding: 72px 24px;
}
@media (max-width: 600px) {
  #code { padding: 44px 20px; }
}
.code-dots { display: flex; gap: 20px; justify-content: center; margin-bottom: 32px; }
.code-dot { width: 18px; height: 18px; border-radius: 50%; }
.code-blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 800px; width: 100%; }
@media(max-width:600px) { .code-blocks { grid-template-columns: 1fr; } }
.code-block { background: rgba(255,255,255,.03); border: 1px solid rgba(192,132,252,.15); border-radius: 16px; padding: 28px 20px; text-align: center; }
.code-num { font-family: 'Cinzel Decorative',serif; font-size: 2.5rem; margin-bottom: 12px; display: block; }
.code-block h4 { font-family: 'Cinzel Decorative',serif; font-size: .75rem; letter-spacing: .15em; color: var(--text); margin-bottom: 10px; }
.code-block p { font-style: italic; font-size: .85rem; line-height: 1.7; color: var(--muted); }
.code-manifesto { max-width: 600px; margin-top: 48px; font-style: italic; font-size: 1.05rem; line-height: 1.9; color: var(--muted); }
.code-manifesto strong { color: var(--text); font-style: normal; }
.visitor-counter{margin:16px auto 28px;font-family:'Space Mono',monospace;font-size:.72rem;letter-spacing:.18em;color:rgba(232,224,240,0.5);text-transform:uppercase;}
.visitor-count-number{color:#FF69B4;font-size:.85rem;text-shadow:0 0 12px #FF69B4;}
.hero-sub2 {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(232,224,240,.78);
  text-align: center;
}

@media(max-width:600px) {
  .hero-sub2 {
    display: block;
    width: 92%;
    max-width: none;
    font-size: .92rem;
    line-height: 1.65;
    margin: 16px auto 0;
    padding: 0;
  }
}
@media(max-width:600px) {
  .hero-trolls {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .hero-center {
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
  }
}
.visitor-count-text {
  display: inline-block;
}

@media (max-width:600px) {
  .visitor-count-text {
    display: block;
    margin-top: 4px;
    line-height: 1.5;
  }
}
.btn-gold {
  display: inline-block;
  font-family: 'Cinzel Decorative', serif;
  font-size: .72rem;
  letter-spacing: .15em;
  background: #DAA520;
  color: #07060a;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 0 30px rgba(218,165,32,.3);
  margin-top: 8px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(218,165,32,.5);
}
.find-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.find-pagination button {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(232,224,240,.7);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,105,180,.3);
  border-radius: 50px;
  padding: 6px 12px;
  cursor: pointer;
}

.find-pagination button.active {
  color: #07060a;
  background: var(--t-pink);
  border-color: var(--t-pink);
}

.kindness-divider {
  display: block;
  width: 90px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    var(--t-orange),
    var(--t-yellow),
    var(--t-green),
    var(--t-blue),
    var(--t-purple),
    var(--t-pink)
  );
  border-radius: 10px;
}

/* ==========================================
   WHICH TROLL IS CALLING YOU
========================================== */

.troll-calling-section{
    max-width:1100px;
    margin:0 auto;
    padding:72px 20px;
    min-height:auto;
    text-align:center;
}

.troll-calling-heading{
    max-width:700px;
    margin:0 auto 30px;
}

.calling-card{
    position:relative;
    max-width:700px;
    margin:0 auto;
    padding:34px 34px 30px;
    border-radius:28px;

    background:rgba(22,18,15,.72);
    border:1px solid rgba(255,255,255,.06);
    box-shadow:0 0 40px rgba(218,165,32,.12);

    overflow:hidden;

    transition:
    opacity .45s ease,
    background .6s ease,
    box-shadow .6s ease,
    transform .3s ease,
    border-color .3s ease;
}

.calling-card::before{
    content:"";
    position:absolute;
    inset:-40%;

    background:radial-gradient(circle,
        rgba(218,165,32,.18) 0%,
        transparent 60%);

    opacity:.75;
    transition:opacity .4s ease;
    pointer-events:none;
}

.calling-troll-img{
    width:175px;
    height:auto;

    filter:drop-shadow(0 0 30px rgba(218,165,32,.45));

    animation:float 3.5s ease-in-out infinite;

    transition:filter .6s ease, opacity .45s ease;

    margin-bottom:16px;
}

.calling-color{
    font-family:'Space Mono',monospace;
    text-transform:uppercase;
    letter-spacing:.18em;
    font-size:.7rem;
    color:#DAA520;
    margin-bottom:8px;
}

.calling-name{
    font-family:'Cinzel Decorative',serif;
    font-size:1.7rem;
    margin-bottom:8px;
}

.calling-quote{
    font-style:italic;
    color:#DAA520;
    font-size:1rem;
    margin-bottom:14px;
}

.calling-description{
    max-width:620px;
    margin:0 auto;
    line-height:1.65;
    color:rgba(232,224,240,.75);
}

.calling-ending{
    margin-top:16px;
    font-size:1.05rem;
    color:white;
}

.calling-dots{
    display:flex;
    justify-content:center;
    gap:12px;
    margin:22px 0;
}

/* Colored dots */
.calling-dots span{
    width:12px;
    height:12px;
    border-radius:50%;
    opacity:.35;
    transition:.35s ease;
}

.calling-dots span.active{
    transform:scale(1.45);
    opacity:1;
}

/* Mobile */
@media (max-width:768px){

    .troll-calling-section{
        padding:44px 14px;
    }

    .calling-card{
        padding:28px 18px 24px;
        border-radius:22px;
    }

    .calling-troll-img{
        width:125px;
    }

    .calling-name{
        font-size:1.4rem;
    }

    .calling-description{
        font-size:.9rem;
        line-height:1.55;
    }
    .calling-ending{
        font-size:.95rem;
        margin-top:14px;
    }

    .calling-dots{
        gap:10px;
        margin:18px 0;
    }

    .btn-rainbow{
        padding:10px 20px;
    }
}

/* ── RECENTLY HIDDEN ───────────────────────────────────── */

.recent-hides-section {
  padding: 72px 6%;
  min-height: auto;
  text-align: center;
  overflow: hidden;
}

.recent-hides-heading {
  max-width: 760px;
  margin: 0 auto 38px;
}

.recent-hides-wrapper {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.recent-hides-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  scrollbar-width: none;
}

.recent-hides-track::-webkit-scrollbar {
  display: none;
}

.recent-hide-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 240px;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(17,12,27,.76);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  text-align: left;
}

.recent-hide-photo {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  display: block;
}

.recent-hide-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recent-hide-location {
  margin: 0 0 6px;
  font-family: 'Spectral', serif;
  font-size: .95rem;
  line-height: 1.3;
  color: rgba(245,239,255,.94);
}

.recent-hide-date {
  margin: 0 0 10px;
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(232,224,240,.48);
}

.recent-hide-riddle {
  margin: 0 0 18px;
  min-height: 66px;
  font-family: 'Spectral', serif;
  font-size: .88rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(232,224,240,.72);
}

.recent-hide-link {
  margin-top: auto;
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.recent-hides-all {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,239,255,.9);
  text-decoration: none;
}

.recent-hides-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;

  background: rgba(18,12,30,.96);

  color: white;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;

  transition: all .3s ease;
  box-shadow: 0 0 20px rgba(192,132,252,.15);
}

.recent-hides-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 28px rgba(192,132,252,.35);
  border-color: rgba(255,255,255,.5);
}

.recent-hides-arrow-left {
  left: -8px;
}

.recent-hides-arrow-right {
  right: -8px;
}

@media (max-width: 1000px) {
  .recent-hide-card {
    flex-basis: calc((100% - 36px) / 3);
  }
}

@media (max-width: 700px) {
  .recent-hides-section {
    padding: 44px 0;
  }

  .recent-hides-heading {
    padding: 0 22px;
    margin-bottom: 28px;
  }

  .recent-hides-track {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 6px 22px 18px;
  scroll-padding-left: 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

 .recent-hide-card {
  flex: 0 0 220px;
  max-width: 220px;
}

  .recent-hides-arrow {
    display: none;
  }

  .recent-hides-all {
    margin-top: 18px;
  }
}