/* ------------------------------------------------------------
   Mustafa Çeşme — Anı Sayfası (Warm Memory Space Theme)
   Romantik, aydınlık, “anı defteri” hissi
   Font: Option 2 (Cormorant Garamond + Spectral)
   Notes: quotes are now “not / anı kartı” (no big quote marks)
   ------------------------------------------------------------ */

:root{
  /* Warm paper palette */
  --bg: #fbf7f0;
  --bg2:#f5efe6;
  --paper: #ffffff;
  --paper2:#fffaf2;

  --text: #1f1c17;
  --muted:#5e564d;
  --muted2:#7a7066;

  --line:#eadfce;
  --line2:#e2d4bf;

  --accent:#b4874b;     /* sıcak altın/karamel */
  --accent2:#6b8b74;    /* yumuşak yeşil */

  --shadow: 0 18px 40px rgba(44,36,24,.10);
  --shadow2: 0 10px 24px rgba(44,36,24,.08);

  --radius: 22px;
  --radius-sm: 16px;

  --max: 1050px;

  /* Option 2 */
  --font-body: "Spectral", Georgia, serif;
  --font-title: "Cormorant Garamond", Garamond, Georgia, serif;

  /* For “notes” (less quotey) */
  --font-note: "Cormorant Garamond", Garamond, Georgia, serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 320px at 40% -120px, rgba(180,135,75,.16), transparent 62%),
    radial-gradient(900px 360px at 90% 10%, rgba(107,139,116,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.78;
}

h1, h2, .kicker{ font-family: var(--font-title); }

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.wrap{
  max-width: var(--max);
  margin:0 auto;
  padding: 28px 18px 80px;
}

/* “glass” yerine “paper” gibi hissettirelim */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* -------- HERO -------- */
.hero{ position:relative; }

.hero-media{
  height: 460px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.00), rgba(251,247,240,.92)),
    radial-gradient(900px 360px at 30% 20%, rgba(180,135,75,.16), transparent 60%),
    radial-gradient(900px 360px at 80% 10%, rgba(107,139,116,.12), transparent 60%),
    #efe6d7;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.02);
}

.hero-media .placeholder{
  padding: 10px 14px;
  border: 1px dashed var(--line2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.65);
  font-size: 13px;
}

.hero-inner{
  padding: 16px 22px 18px;
}

/* Soft kicker */
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
  color: var(--muted2);
}

.kicker::before{
  content:"";
  width:18px;
  height:1px;
  background: rgba(180,135,75,.70);
}

h1{
  margin: 10px 0 6px;
  font-size: clamp(36px, 4.8vw, 62px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.dates{
  margin-top:10px;
  color: var(--muted);
  font-size: 16px;
}

.lead{
  margin-top: 14px;
  max-width: 820px;
  color: var(--muted);
  font-size: 15.8px;
}

/* ---- Time pill ---- */
.hero-row{
  margin-top: 16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  color: var(--muted);
  font-size: 13px;
}

.pill strong{
  color: var(--text);
  font-weight: 800;
}

/* -------- NOTE STYLE (replaces “quote box”) -------- */
/* looks like a soft note on the page, not a quote */
.quote{
  position: relative;
  margin-top: 16px;
  padding: 14px 16px;

  border-radius: 18px;
  border: 1px solid rgba(180,135,75,.22);

  background:
    radial-gradient(520px 220px at 20% 0%, rgba(180,135,75,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,250,242,.72));

  color: rgba(31,28,23,.90);
  font-family: var(--font-note);
  font-style: normal;        /* less “quotey” */
  font-size: 18px;           /* note-like */
  line-height: 1.65;

  box-shadow: 0 14px 34px rgba(44,36,24,.10);
}

/* subtle left ribbon (not a quote bar) */
.quote::before{
  content:"";
  position:absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(180,135,75,.48), rgba(107,139,116,.22));
  opacity: .9;
}

/* remove big quote mark entirely */
.quote::after{ content:none; }

.hero .quote{
  font-size: 18.5px;
}

/* -------- GRID / CARDS -------- */
.grid{
  display:grid;
  gap:16px;
  margin-top: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px){
  .grid{ grid-template-columns: 1.1fr .9fr; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,250,242,.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 18px;
}

.card h2{
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: .00em;
  font-weight: 700;
}

.muted{ color: var(--muted); }
.muted2{ color: var(--muted2); }

.hr{
  height:1px;
  background: var(--line);
  margin: 16px 0;
}

/* -------- BUTTONS -------- */
.btnrow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.88);
  color: var(--text);
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  box-shadow: 0 10px 22px rgba(44,36,24,.10);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.97);
  border-color: rgba(180,135,75,.35);
  box-shadow: 0 14px 28px rgba(44,36,24,.12);
}

.btn.primary{
  background: linear-gradient(180deg, rgba(180,135,75,.26), rgba(180,135,75,.12));
  border-color: rgba(180,135,75,.38);
}

.btn small{
  font-weight: 650;
  color: var(--muted);
}

/* -------- GALLERY -------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-btn{
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
}

.gallery-btn:focus{
  outline: 2px solid rgba(44,74,61,.35);
  outline-offset: 3px;
}

.gallery-img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(44,36,24,.10);
  transition: transform .25s ease, box-shadow .25s ease;
  filter: saturate(0.96) contrast(0.98);
}

.gallery-btn:hover .gallery-img{
  transform: scale(1.02);
  box-shadow: 0 16px 36px rgba(44,36,24,.14);
}

@media (max-width: 640px){
  .gallery{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------- LIGHTBOX -------- */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.is-open{
  display: block;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(3px);
}

.lightbox-inner{
  position: relative;
  max-width: min(980px, 92vw);
  max-height: 86vh;
  margin: 7vh auto 0;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(232,228,221,.8);
  box-shadow: 0 20px 70px rgba(0,0,0,.25);
  padding: 16px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.lightbox-img{
  max-width: 100%;
  max-height: 74vh;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255,255,255,.6);
}

.lightbox-close{
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 26px;
  line-height: 44px;
}

.lightbox-nav.prev{ left: 12px; }
.lightbox-nav.next{ right: 12px; }

.lightbox-meta{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px){
  .lightbox-inner{ margin-top: 5vh; padding: 12px; }
  .lightbox-nav{ width: 46px; height: 46px; font-size: 28px; }
}

/* -------- MESSAGES -------- */
.messages{
  display:grid;
  gap: 12px;
  margin-top: 14px;
}

.msg{
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.84);
}

.msg .who{
  font-weight: 800;
  margin-bottom: 6px;
}

.msg .meta{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted2);
}
.msg .text {
  white-space: normal; /* since we convert \n to <br> in JS */
}

/* -------- SIGNATURE -------- */
.signature{
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(180,135,75,.30);
  background:
    radial-gradient(700px 240px at 20% 0%, rgba(180,135,75,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,250,242,.84));
  box-shadow: var(--shadow2);
}

/* -------- SOCIAL MEMORY -------- */
.social-memory{
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(180,135,75,.32);
  background:
    radial-gradient(700px 240px at 15% 0%, rgba(180,135,75,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,250,242,.82));
  box-shadow: var(--shadow2);
}

.social-memory p{
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 820px;
}

.social-links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line2);
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  box-shadow: 0 10px 22px rgba(44,36,24,.10);
}

.social-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 28px rgba(44,36,24,.12);
}

.social-link img{
  width: 16px;
  height: 16px;
  object-fit: contain;
  display:block;
  opacity: .92;
}

.social-link.instagram:hover{ border-color: rgba(225,48,108,.30); }
.social-link.facebook:hover{ border-color: rgba(24,119,242,.30); }
.social-link.linkedin:hover{ border-color: rgba(10,102,194,.30); }

/* -------- FOOTER -------- */
footer{
  margin-top: 18px;
  text-align:center;
  color: var(--muted2);
  font-size: 12px;
}
.read-more-btn{
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  font-family: var(--font-title);
  font-size: 15px;
  color: var(--accent);

  opacity: .85;
  transition: opacity .2s ease;
}

.read-more-btn:hover{ opacity: 1; }

.read-more-btn::after{ content: " →"; }


/* -------- HERO TIME (emotional focus) -------- */
.time-sentence{
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: rgba(31,28,23,.75);
}

.time-sentence span{
  margin: 0 6px;
  font-family: var(--font-title);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: .01em;
}

.lightbox-meta{
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.78);
  text-align: center;
}
