/* Temalar sayfası. Ortak renk, düğme ve sayfa altı stilleri landing.css dosyasındadır. */

/* ── Başlık ─────────────────────────────────────────────── */
.lp .tg-hero { position: relative; overflow: hidden; padding: 172px 0 40px; text-align: center; isolation: isolate; }
.lp .tg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 45% 70% at 50% 0%, rgba(123, 31, 228, .55), transparent 70%),
  radial-gradient(ellipse 30% 55% at 8% 60%, rgba(236, 72, 153, .2), transparent 70%),
  radial-gradient(ellipse 30% 55% at 92% 55%, rgba(59, 130, 246, .18), transparent 70%); }
.lp .tg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent 75%); }
.lp .tg-hero h1 { margin: 0 auto 18px; max-width: 880px; font: 800 clamp(38px, 5.6vw, 70px)/1.04 var(--head); letter-spacing: -.05em; }
.lp .tg-hero p { max-width: 560px; margin: 0 auto; font-size: 18px; color: var(--muted); }

/* ── Filtreler ──────────────────────────────────────────── */
.lp .tg-filters-wrap { position: sticky; top: 0; z-index: 30; padding: 14px 0; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.lp .tg-filters-wrap.stuck { background: rgba(14, 10, 29, .86); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lp .tg-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.lp .tg-filter { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 17px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); font: 600 14px var(--body); color: #d9d2f1; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.lp .tg-filter i { font-size: 13px; color: #b79cff; }
.lp .tg-filter:hover { background: rgba(168, 85, 247, .14); border-color: rgba(196, 181, 253, .45); transform: translateY(-1px); }
.lp .tg-filter.active { background: #fff; border-color: #fff; color: #1a1033; }
.lp .tg-filter.active i { color: #7b1fe4; }
.lp .tg-count { min-width: 26px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .09); font-size: 11.5px; text-align: center; }
.lp .tg-count:empty { display: none; }
.lp .tg-filter.active .tg-count { background: #ede7fb; color: #5b21b6; }

/* ── Kartlar ────────────────────────────────────────────── */
.lp .tg-gallery { padding: 26px 0 90px; scroll-margin-top: 150px; }
.lp .tg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.lp .tg-card { display: block; width: 100%; padding: 0; text-align: left; animation: tg-in .5s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes tg-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lp .tg-window { display: block; padding: 6px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid var(--line-2); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.lp .tg-bar { display: flex; gap: 6px; padding: 5px 7px 9px; }
.lp .tg-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background .3s; }
.lp .tg-card:hover .tg-bar i:nth-child(1), .lp .tg-card:focus-visible .tg-bar i:nth-child(1) { background: #ff5f57; }
.lp .tg-card:hover .tg-bar i:nth-child(2), .lp .tg-card:focus-visible .tg-bar i:nth-child(2) { background: #febc2e; }
.lp .tg-card:hover .tg-bar i:nth-child(3), .lp .tg-card:focus-visible .tg-bar i:nth-child(3) { background: #28c840; }
.lp .tg-shot { position: relative; display: block; container-type: inline-size; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: #1a1430; }
.lp .tg-shot:not(.loaded) { background: linear-gradient(100deg, #1a1430 30%, #2b2150 50%, #1a1430 70%); background-size: 300% 100%; animation: tg-shine 1.4s linear infinite; }
.lp .tg-shot img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transform: translateY(0); transition: transform 1.2s var(--ease); }
.lp .tg-view { position: absolute; left: 50%; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 99px; background: var(--btn); color: #fff; font: 600 14px var(--head); white-space: nowrap; box-shadow: 0 14px 30px -8px rgba(60, 10, 130, .8); opacity: 0; transform: translate(-50%, 14px); transition: opacity .3s, transform .35s var(--ease); }
.tg-modal .tg-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font: 700 11.5px "Plus Jakarta Sans", system-ui, sans-serif; color: #fff; }
.lp .tg-badge { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font: 700 11.5px var(--head); color: #fff; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .45); }
.lp .badge-free, .tg-modal .badge-free { background: linear-gradient(135deg, #10b981, #059669); }
.lp .badge-paid, .tg-modal .badge-paid { background: linear-gradient(135deg, #7b1fe4, #6d28d9); }
.lp .badge-premium, .tg-modal .badge-premium { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.lp .tg-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 6px 0; }
.lp .tg-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 16px var(--head); letter-spacing: -.01em; color: #f1edff; }
.lp .tg-cat { flex: none; font-size: 12.5px; color: var(--dim); }
.lp .tg-card:hover .tg-window, .lp .tg-card:focus-visible .tg-window { transform: translateY(-6px); border-color: rgba(196, 181, 253, .55); box-shadow: 0 30px 60px -24px rgba(123, 31, 228, .85); }
.lp .tg-card:hover .tg-view, .lp .tg-card:focus-visible .tg-view { opacity: 1; transform: translate(-50%, 0); }
/* Fare üzerindeyken sayfanın tamamı yavaşça kayar */
@media (hover: hover) {
  .lp .tg-card:hover .tg-shot img { transform: translateY(min(0px, calc(125cqw - 100%))); transition: transform 7s linear .25s; }
}

/* Yükleniyor, boş ve hata durumları */
.lp .tg-state { grid-column: 1 / -1; padding: 70px 20px; text-align: center; color: var(--muted); }
.lp .tg-state i { display: block; margin-bottom: 16px; font-size: 40px; color: #b79cff; }
.lp .tg-state strong { display: block; margin-bottom: 6px; font: 700 20px var(--head); color: #fff; }
.lp .tg-skeleton { aspect-ratio: 4 / 5.5; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .03) 70%); background-size: 300% 100%; animation: tg-shine 1.4s linear infinite; }
@keyframes tg-shine { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ── Sayfalama ──────────────────────────────────────────── */
.lp .tg-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; }
.lp .tg-page { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); font: 600 14px var(--body); color: #d9d2f1; transition: background .2s, border-color .2s; }
.lp .tg-page:hover:not(:disabled) { background: rgba(168, 85, 247, .16); border-color: rgba(196, 181, 253, .45); }
.lp .tg-page.active { background: var(--btn); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -8px rgba(123, 31, 228, .8); }
.lp .tg-page:disabled { opacity: .35; cursor: default; }
.lp .tg-dots { color: var(--dim); }
.lp .tg-total { margin-left: 10px; font-size: 13.5px; color: var(--dim); }

/* ── Önizleme penceresi ─────────────────────────────────── */
.tg-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 26px; background: rgba(5, 3, 12, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.tg-modal.active { opacity: 1; visibility: visible; }
.tg-dialog { display: flex; flex-direction: column; width: min(1400px, 100%); height: 100%; border-radius: 20px; overflow: hidden; background: #151026; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 50px 120px -20px rgba(0, 0, 0, .85), 0 0 80px -30px rgba(123, 31, 228, .7); transform: translateY(22px) scale(.98); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.tg-modal.active .tg-dialog { transform: none; }
.tg-dialog-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tg-dialog-head h3 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 17px "Plus Jakarta Sans", system-ui, sans-serif; color: #fff; text-transform: none; }
.tg-dialog-head .tg-badge { flex: none; }
.tg-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #a7a0c2; white-space: nowrap; }
.tg-close { flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s, transform .2s; }
.tg-close:hover { background: #ef4444; transform: rotate(90deg); }
.tg-dialog-body { position: relative; flex: 1; min-height: 0; background: #fff; }
.tg-frame { width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s; }
.tg-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #151026; color: #a7a0c2; }
.tg-loading i { font-size: 34px; color: #b79cff; animation: tg-spin 1s linear infinite; }
@keyframes tg-spin { to { transform: rotate(360deg); } }
.tg-loading[hidden] { display: none; }

@media (max-width: 1180px) { .lp .tg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .lp .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } }
@media (max-width: 720px) {
  .lp .tg-hero { padding: 130px 0 26px; }
  .lp .tg-hero p { font-size: 16px; }
  .lp .tg-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .lp .tg-filters::-webkit-scrollbar { display: none; }
  .lp .tg-window { padding: 4px; border-radius: 13px; }
  .lp .tg-bar { padding: 3px 5px 6px; gap: 4px; }
  .lp .tg-bar i { width: 7px; height: 7px; }
  .lp .tg-shot { border-radius: 9px; }
  .lp .tg-view { display: none; }
  .lp .tg-badge { top: 7px; left: 7px; padding: 4px 8px; font-size: 10px; }
  .lp .tg-meta { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 9px; }
  .lp .tg-name { max-width: 100%; font-size: 14px; }
  .lp .tg-total { width: 100%; margin: 4px 0 0; text-align: center; }
  .tg-modal { padding: 0; }
  .tg-dialog { border-radius: 0; border: 0; }
  .tg-hint { display: none; }
  .tg-close { margin-left: auto; }
}
@media (max-width: 420px) { .lp .tg-grid { grid-template-columns: 1fr; } .lp .tg-name { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .lp .tg-card { animation: none; } .tg-modal, .tg-dialog { transition: none; } }

/* ── Açık tema (yalnız renkler; düğme js/theme-mode.js) ── */
html[data-mode="light"] .lp .tg-hero::before { background:
  radial-gradient(ellipse 45% 70% at 50% 0%, rgba(147, 51, 234, .2), transparent 70%),
  radial-gradient(ellipse 30% 55% at 8% 65%, rgba(236, 72, 153, .13), transparent 70%),
  radial-gradient(ellipse 30% 55% at 92% 60%, rgba(99, 102, 241, .14), transparent 70%); }
html[data-mode="light"] .lp .tg-hero::after { background-image: linear-gradient(rgba(76, 29, 149, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(76, 29, 149, .055) 1px, transparent 1px); }
html[data-mode="light"] .lp .tg-filters-wrap.stuck { background: rgba(250, 249, 255, .9); }
html[data-mode="light"] .lp .tg-filter { background: #fff; color: #3b3358; }
html[data-mode="light"] .lp .tg-filter i { color: #7c3aed; }
html[data-mode="light"] .lp .tg-filter:hover { background: #f1ebfe; border-color: rgba(123, 31, 228, .42); }
html[data-mode="light"] .lp .tg-filter.active { background: #2e1065; border-color: #2e1065; color: #fff; }
html[data-mode="light"] .lp .tg-filter.active i { color: #d8b4fe; }
html[data-mode="light"] .lp .tg-count { background: #f1ebfe; color: #4c1d95; }
html[data-mode="light"] .lp .tg-filter.active .tg-count { background: rgba(255, 255, 255, .18); color: #fff; }
html[data-mode="light"] .lp .tg-window { background: linear-gradient(180deg, #fff, #efeafb); box-shadow: 0 20px 40px -28px rgba(60, 20, 120, .45); }
html[data-mode="light"] .lp .tg-bar i { background: rgba(46, 16, 101, .18); }
html[data-mode="light"] .lp .tg-shot { background: #ece7fa; }
html[data-mode="light"] .lp .tg-shot:not(.loaded) { background: linear-gradient(100deg, #ece7fa 30%, #f8f6ff 50%, #ece7fa 70%); background-size: 300% 100%; }
html[data-mode="light"] .lp .tg-name { color: #1f1840; }
html[data-mode="light"] .lp .tg-card:hover .tg-window, html[data-mode="light"] .lp .tg-card:focus-visible .tg-window { border-color: rgba(123, 31, 228, .45); box-shadow: 0 30px 55px -26px rgba(123, 31, 228, .6); }
html[data-mode="light"] .lp .tg-state i { color: #7c3aed; }
html[data-mode="light"] .lp .tg-state strong { color: #17112e; }
html[data-mode="light"] .lp .tg-skeleton { background: linear-gradient(100deg, #efebfa 30%, #fbfaff 50%, #efebfa 70%); background-size: 300% 100%; }
html[data-mode="light"] .lp .tg-page { background: #fff; color: #3b3358; }
html[data-mode="light"] .lp .tg-page:hover:not(:disabled) { background: #f1ebfe; border-color: rgba(123, 31, 228, .42); }
html[data-mode="light"] .lp .tg-page.active, html[data-mode="light"] .lp .tg-page.active:hover:not(:disabled) { background: var(--btn); border-color: transparent; color: #fff; }
/* Önizleme penceresi */
html[data-mode="light"] .tg-modal { background: rgba(35, 18, 70, .55); }
html[data-mode="light"] .tg-dialog { background: #fff; border-color: rgba(46, 16, 101, .14); box-shadow: 0 50px 120px -30px rgba(35, 12, 80, .6); }
html[data-mode="light"] .tg-dialog-head { border-bottom-color: rgba(46, 16, 101, .1); }
html[data-mode="light"] .tg-dialog-head h3 { color: #17112e; }
html[data-mode="light"] .tg-hint { color: #6b6488; }
html[data-mode="light"] .tg-close { background: #f1ebfe; color: #2e1065; }
html[data-mode="light"] .tg-close:hover { background: #ef4444; color: #fff; }
html[data-mode="light"] .tg-loading { background: #fff; color: #6b6488; }
html[data-mode="light"] .tg-loading i { color: #7c3aed; }
