@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Great+Vibes&display=swap');

:root { --accent: #b22222; }

body { margin: 0; background: #1e1e1e; }

/* Mektup sayfasında header koyu tema */
body.has-site-header .site-header {
  background: rgba(30, 30, 30, 0.98);
  border-bottom-color: rgba(93, 64, 55, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
body.has-site-header .site-title { color: #d4bc8d; }
body.has-site-header .site-title:hover { color: #e4d5b7; }

/* Bu sayfanın tamamını kapsa: tema ile kavga etmesin */
.gp-letter-page{
  margin:0;
  padding:0;
  background:#1e1e1e;
  font-family:'Dancing Script', cursive;
  overflow-x:hidden;
  color:#d4bc8d;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
}

/* Scrollbar sadece bu sayfada (desktop) */
.gp-letter-page::-webkit-scrollbar{ width:8px; }
.gp-letter-page::-webkit-scrollbar-track{ background:#1a1a1a; }
.gp-letter-page::-webkit-scrollbar-thumb{ background:#5d4037; border-radius:10px; }
 /* HEART MENU (sağ üstte sabit) */
.heart-main-wrapper{
  position:fixed;
  top:10px;
  right:18px;
  z-index:99999;
  text-align:right;
}
.heart-btn{
  font-size:40px;
  color:var(--accent);
  cursor:pointer;
  animation: heartbeat 2.6s infinite;
  user-select:none;
  line-height:1;
}

@keyframes heartbeat{
  0%{transform:scale(1)}
  20%{transform:scale(1.03)}
  35%{transform:scale(1)}
  55%{transform:scale(1.06)}
  70%{transform:scale(1)}
  100%{transform:scale(1)}
}

.heart-nav-panel{
  max-height:0;
  opacity:0;
  overflow:hidden;
  background: rgba(255,255,255,0.98);
  margin-top:10px;
  border-radius:22px;
  box-shadow:0 10px 40px rgba(0,0,0,0.10);
  transition: all .45s cubic-bezier(.4,0,.2,1);
  padding:0 20px;
  border:1px solid rgba(178,34,34,0.12);
  width:220px;
}
.heart-nav-panel.open{
  max-height:600px;
  opacity:1;
  padding:16px 20px;
}

.m-links{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0;
}
.m-item{
  text-decoration:none;
  color:#333;
  font-weight:800;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:2px;
  transition:.25s;
}
.m-item:hover{color:var(--accent);}

/* ALT PANEL */
.gp-bottom-panel{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  padding:18px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  background: linear-gradient(transparent, #1e1e1e 40%);
  z-index:2000;
  pointer-events:none; /* sadece içindeki elemanlar tıklansın */
}
.gp-bottom-panel > *{ pointer-events:auto; }

.gp-copyright{
  font-size:.85rem;
  letter-spacing:1px;
  opacity:.7;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin-top:10px;
  text-align:center;
  padding:0 14px;
}

/* GERİ DÖN BUTONU */
.gp-back-button{
  padding:8px 25px;
  background:rgba(93,64,55,.2);
  border:1px solid #5d4037;
  color:#d4bc8d;
  font-family:'Dancing Script', cursive;
  font-size:1.2rem;
  cursor:pointer;
  border-radius:15px;
  transition:all .25s;
  display:none;
}
.gp-back-button:hover{
  background:#5d4037;
  color:#e4d5b7;
}

/* 1. SCREEN: ZARF */
.gp-envelope-container{
  position:fixed;
  top:45%;
  left:50%;
  transform:translate(-50%, -50%);
  z-index:1000;
  cursor:pointer;
  text-align:center;
  transition:1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gp-envelope{
  width:300px;
  height:180px;
  background:#c3a675;
  position:relative;
  box-shadow:0 15px 40px rgba(0,0,0,.6);
  border-radius:4px;
}
.gp-envelope::before{
  content:'';
  position:absolute;
  top:0; left:0;
  border-left:150px solid transparent;
  border-right:150px solid transparent;
  border-top:100px solid #b39665;
}
.gp-seal{
  position:absolute;
  top:75px;
  left:125px;
  width:50px;
  height:50px;
  background:#8b0000;
  border-radius:50%;
  box-shadow:inset 0 0 10px rgba(0,0,0,.5);
}
.gp-sender{
  margin-top:20px;
  font-size:1.3rem;
  color:#d4bc8d;
}

/* 2. SCREEN: MEKTUP */
.gp-letter-wrapper{
  display:none;
  width:100%;
  max-width:700px;
  padding:50px 20px 250px 20px;
  box-sizing:border-box;
  opacity:0;
  transition:opacity 1.2s ease;
}

.gp-letter-container{
  width:100%;
  min-height:100vh;
  background:#e4d5b7;
  padding:60px 40px;
  box-sizing:border-box;
  position:relative;
  border-radius:60px / 30px;
  box-shadow:0 0 50px rgba(0,0,0,.7), inset 0 0 100px rgba(139,69,19,.2);
  border:1px solid #d2b48c;
}

.gp-burn-edge{
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  border-radius:60px / 30px;
  box-shadow:inset 0 0 35px 15px rgba(62,39,0,.3);
  pointer-events:none;
}

.gp-text-content{
  font-size:1.6rem;
  line-height:2.6rem;
  color:#2c1e0f;
  text-align:justify;
}

.gp-header{
  font-family:'Great Vibes', cursive;
  font-size:3rem;
  margin-bottom:40px;
  display:block;
  text-align:center;
  color:#5d4037;
}

.gp-signature{
  margin-top:80px;
  text-align:right;
  font-size:1.6rem;
  font-family:'Great Vibes', cursive;
  color:#8b0000;
  opacity:0;
  transition:opacity 2s ease;
}

/* Mobilde taşma olmasın */
@media (max-width: 520px){
  .gp-envelope{ width:260px; height:160px; }
  .gp-envelope::before{
    border-left:130px solid transparent;
    border-right:130px solid transparent;
    border-top:90px solid #b39665;
  }
  .gp-seal{ left:105px; }
  .gp-letter-container{ padding:42px 22px; }
  .gp-header{ font-size:2.5rem; }
  .gp-text-content{ font-size:1.3rem; line-height:2.2rem; }
}
