:root {
  --bg-deep: #1c2a24;
  --bg-mid: #2f463b;
  --sand: #e8dfd0;
  --sand-soft: #f3eee6;
  --ink: #17211c;
  --muted: #5d6b63;
  --accent: #c47a3a;
  --accent-dark: #9a5a24;
  --line: rgba(23, 33, 28, 0.12);
  --ok: #2f6b4f;
  --err: #8f2f2f;
  --shadow: 0 18px 40px rgba(18, 28, 22, 0.18);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-soft);
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 122, 58, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(47, 70, 59, 0.35), transparent 50%),
    linear-gradient(165deg, #f7f2ea 0%, #e7ddd0 45%, #d8e0d6 100%);
  animation: skyShift 18s ease-in-out infinite alternate;
}

@keyframes skyShift {
  from { filter: saturate(1); transform: scale(1); }
  to { filter: saturate(1.08); transform: scale(1.03); }
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 6vw;
  animation: riseIn 0.7s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--bg-mid), var(--bg-deep));
  color: var(--sand);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-user {
  color: var(--muted);
  font-weight: 500;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
button.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: rgba(255,255,255,0.55); }

.btn-danger { background: var(--err); }
.btn-danger:hover { background: #6e2222; }

.btn-google {
  background: #1a73e8;
}
.btn-google:hover { background: #1557b0; }
.btn-google:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-youtube {
  background: #c4302b;
}
.btn-youtube:hover { background: #9e2420; }

.google-auth-box {
  margin: 0.2rem 0 0.4rem;
}
.google-auth-box #google-signin-btn {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-or span {
  flex-shrink: 0;
}

.form-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8rem 0 1.2rem;
}

.form-subhead {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.pin-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  pointer-events: none;
}
.pin-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
}

.lightbox-youtube-wrap {
  width: min(92vw, 960px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.lightbox-youtube-wrap[hidden] {
  display: none !important;
}
.lightbox-youtube-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.detail-media-youtube {
  aspect-ratio: 16 / 9;
  background: #000;
}
.detail-media-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.main {
  width: min(1440px, 94vw);
  margin: 0 auto 4rem;
  animation: riseIn 0.85s ease both;
}

.main-wide {
  width: min(1440px, 96vw);
}

@keyframes riseIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero {
  padding: 1.5rem 0 2.2rem;
}

.hero-compact {
  padding: 0.8rem 0 1.4rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  max-width: 12ch;
}

.hero-compact h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: none;
}

.hero p {
  margin: 1rem 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-compact p {
  margin-top: 0.55rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-compact .hero-actions {
  margin-top: 1rem;
}

.hero-home {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-main {
  flex: 1 1 280px;
  min-width: 0;
}

.latest-blog-card {
  flex: 0 1 300px;
  width: min(100%, 300px);
  margin-left: auto;
  padding: 0.85rem 0.95rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.latest-blog-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.45rem;
}

.latest-blog-link {
  display: block;
  line-height: 1.35;
}

.latest-blog-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.latest-blog-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.55rem;
}

.latest-blog-link .meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.section {
  margin-top: 2.5rem;
}

.pin-section {
  margin-top: 0.4rem;
}

.popular-section {
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.6rem;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination-pages a,
.pagination-pages span {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
}

.pagination-pages a:hover {
  background: rgba(255,255,255,0.7);
}

.pagination-current {
  background: var(--accent);
  color: #fff;
}

.pagination-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-card {
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-card-content {
  padding: 1.1rem 1.2rem 1.15rem;
}

.blog-card-image {
  display: block;
  background: #d8d0c4;
}

.blog-card-image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.blog-detail-image {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-detail-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
}

.blog-card-meta strong {
  color: var(--ink);
}

.blog-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.blog-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.blog-readmore {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 650;
  font-size: 0.92rem;
}

.blog-detail {
  max-width: 760px;
  margin: 0.5rem auto 0;
}

.blog-back {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.blog-detail h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.blog-detail-body {
  margin-top: 1.2rem;
  padding: 1.2rem 1.3rem;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.7;
  font-size: 1.02rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Klasik kart grid (diğer sayfalar) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cardIn 0.6s ease both;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(18, 28, 22, 0.22);
}

.media-card:nth-child(2) { animation-delay: 0.05s; }
.media-card:nth-child(3) { animation-delay: 0.1s; }
.media-card:nth-child(4) { animation-delay: 0.15s; }
.media-card:nth-child(5) { animation-delay: 0.2s; }
.media-card:nth-child(6) { animation-delay: 0.25s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.media-thumb {
  aspect-ratio: 4 / 3;
  background: #d5cdc1;
  overflow: hidden;
  position: relative;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pinterest tarzı masonry — dar pinler, yan yana */
.pin-masonry {
  columns: 180px;
  column-gap: 12px;
  width: 100%;
}

.pin {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  vertical-align: top;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(18, 28, 22, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 28, 22, 0.16);
}

.pin-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: #d8d0c4;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.pin-open img,
.pin-open video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.pin:hover .pin-open img,
.pin:hover .pin-open video {
  transform: scale(1.04);
}

.pin-caption {
  padding: 0.5rem 0.65rem 0.65rem;
  line-height: 1.3;
}

.pin-caption h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pin-caption .meta {
  margin-top: 0.2rem;
  font-size: 0.72rem;
}

.pin-open .badge {
  top: 0.45rem;
  left: 0.45rem;
  font-size: 0.62rem;
  padding: 0.18rem 0.4rem;
}

/* Lightbox — viewport ortası (body altında, transform yok) */
.lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  overflow: hidden;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 11, 0.88);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: auto;
  max-width: 96vw;
  max-height: 94vh;
  max-height: 94dvh;
  margin: auto;
  padding: 0.5rem;
  box-sizing: border-box;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #17211c;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.lightbox-media {
  position: relative;
  z-index: 1;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 92vw !important;
  max-height: calc(94vh - 5rem) !important;
  max-height: calc(94dvh - 5rem) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.lightbox-media[hidden] {
  display: none !important;
}

.lightbox-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: min(92vw, 640px);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.lightbox-bar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.lightbox-bar .meta {
  margin: 0.2rem 0 0;
}

body.lightbox-open {
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .pin-masonry {
    columns: 150px;
    column-gap: 8px;
  }
  .pin {
    margin-bottom: 8px;
    border-radius: 10px;
  }
}

@media (max-width: 420px) {
  .pin-masonry {
    columns: 2;
    column-gap: 8px;
  }
}

.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(23, 33, 28, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-body {
  padding: 0.95rem 1rem 1.1rem;
}

.media-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.meta {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.empty {
  padding: 1.4rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255,255,255,0.35);
}

.panel {
  width: min(520px, 100%);
  margin: 1rem auto 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
}

.panel .lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  font: inherit;
}

textarea { min-height: 110px; resize: vertical; }

.form-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.flash {
  width: min(1440px, 94vw);
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  animation: riseIn 0.45s ease both;
}

.flash-ok { background: rgba(47, 107, 79, 0.14); color: var(--ok); }
.flash-err { background: rgba(143, 47, 47, 0.12); color: var(--err); }

.detail {
  display: grid;
  gap: 1.4rem;
}

.detail-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}

.detail-media img,
.detail-media video {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin: 0 auto;
}

.detail-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 0.94rem;
}

.admin-table th {
  background: rgba(28, 42, 36, 0.92);
  color: var(--sand);
  font-weight: 600;
}

.site-footer {
  padding: 2rem 6vw 3rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1.3rem;
  }

  .hero h1 { max-width: none; }
}


.panel-wide { width: min(720px, 100%); }

.hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.file-list {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  max-height: 220px;
  overflow: auto;
}

.file-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.file-list li:last-child { border-bottom: 0; }

.comments {
  margin-top: 2.4rem;
  padding-top: 0.5rem;
}

.comment-form {
  margin-top: 0.6rem;
  padding: 1.1rem 1.2rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.comment-item {
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.comment-item p {
  margin: 0.55rem 0 0;
  line-height: 1.55;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-meta strong {
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(23, 33, 28, 0.08);
}

.status-pending { background: rgba(196, 122, 58, 0.18); color: var(--accent-dark); }
.status-approved { background: rgba(47, 107, 79, 0.16); color: var(--ok); }
.status-rejected { background: rgba(143, 47, 47, 0.14); color: var(--err); }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-actions .btn,
.admin-actions button.btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.admin-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}