/* AndaYayıncılık Public Site CSS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1008;
  --ink-soft: #3a2e22;
  --paper: #f5f0e8;
  --paper-dark: #ede8de;
  --rust: #8B3A1C;
  --rust-light: #a0441f;
  --gold: #C8973A;
  --gold-light: #e8b84a;
  --cream: #fdf8f0;
  --muted: #7a6a58;
  --border: #ddd4c2;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .875rem;
  text-decoration: none;
}

.logo-mark {
  width: 42px; height: 42px;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.2rem;
  border-radius: 2px;
  flex-shrink: 0;
  transition: .2s;
}
.site-logo:hover .logo-mark { background: var(--gold); color: var(--ink); }

.logo-text { color: #fff; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  display: block;
  letter-spacing: .02em;
}
.logo-tagline {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: .1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  padding: .5rem .875rem;
  color: #aaa;
  font-family: 'Lato', sans-serif;
  font-size: .825rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: .15s;
  border-radius: 2px;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  background: var(--ink);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(200,151,58,.04) 60px, rgba(200,151,58,.04) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(200,151,58,.04) 60px, rgba(200,151,58,.04) 61px);
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero p {
  color: #aaa;
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTION ===== */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--ink);
}

.view-all {
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: .15s;
}
.view-all:hover { color: var(--rust); }

/* ===== CARDS ===== */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.pub-card {
  background: var(--paper);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.pub-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }

.pub-card-cover {
  aspect-ratio: 3/4;
  max-height: 220px;
  overflow: hidden;
  background: var(--paper-dark);
  position: relative;
}
.pub-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: .4s;
}
.pub-card:hover .pub-card-cover img { transform: scale(1.04); }

.pub-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  opacity: .3;
  flex-direction: column;
  gap: .5rem;
  color: var(--muted);
}
.pub-card-cover-placeholder span {
  font-family: 'Playfair Display', serif;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .6;
  font-style: normal;
}

.pub-card-type {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--rust);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 2px;
}

.pub-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pub-meta {
  font-family: 'Lato', sans-serif;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.pub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .5rem;
  flex: 1;
}

.pub-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.pub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .875rem;
  border-top: 1px solid var(--border);
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  color: var(--muted);
}

.pub-badges { display: flex; gap: .3rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .65rem;
  padding: .2rem .5rem;
  border-radius: 20px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
}
.badge-pdf-pub { background: #dce8f5; color: #2C5F8A; }
.badge-text-pub { background: #e8f5e0; color: #3a7c59; }

/* ===== LIST VIEW ===== */
.pub-list-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.pub-list-item:last-child { border-bottom: none; }

.pub-list-cover {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
  background: var(--paper-dark);
  border-radius: 2px;
  overflow: hidden;
}
.pub-list-cover img { width: 100%; height: 100%; object-fit: cover; }

.pub-list-body { flex: 1; }

.pub-list-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: .3rem;
  transition: .15s;
}
.pub-list-item:hover .pub-list-title { color: var(--rust); }

/* ===== FILTERS ===== */
.filters-section {
  background: var(--paper-dark);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: 20px;
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: .15s;
}
.filter-btn:hover { border-color: var(--rust); color: var(--rust); }
.filter-btn.active { background: var(--rust); border-color: var(--rust); color: #fff; }

.filter-search {
  margin-left: auto;
  display: flex;
  gap: .5rem;
}
.filter-search input {
  padding: .4rem .875rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  outline: none;
  color: var(--ink);
  width: 200px;
  transition: .2s;
}
.filter-search input:focus { border-color: var(--gold); width: 240px; }

/* ===== DETAIL PAGE ===== */
.detail-hero {
  background: var(--ink);
  padding: 3rem 2rem;
}

.detail-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.detail-cover {
  width: 200px;
  flex-shrink: 0;
}
.detail-cover img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.detail-header-info { color: #fff; }

.detail-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: .5rem;
}

.detail-subtitle {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  color: #aaa;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  color: #888;
}
.detail-meta span { display: flex; align-items: center; gap: .35rem; }

.detail-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  background: var(--rust);
  color: #fff;
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  transition: .15s;
}
.btn-download:hover { background: var(--rust-light); }

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  transition: .15s;
}
.btn-read:hover { background: rgba(255,255,255,.18); }

.detail-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.detail-content {
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.detail-content h1, .detail-content h2, .detail-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  margin: 2rem 0 .75rem;
  line-height: 1.3;
}
.detail-content p { margin-bottom: 1.25rem; }
.detail-content blockquote {
  border-left: 3px solid var(--gold);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
  background: var(--paper-dark);
}

.pdf-viewer-wrap {
  background: #333;
  border-radius: 3px;
  overflow: hidden;
  margin: 2rem 0;
}
.pdf-viewer-wrap iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: #888;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo-name { font-size: 1.1rem; color: #fff; }
.footer-brand p { font-size: .85rem; margin-top: .75rem; line-height: 1.6; }

.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: .85rem; color: #888; transition: .15s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: .3rem;
  justify-content: center;
  margin-top: 3rem;
}
.page-link {
  display: inline-block;
  padding: .5rem .9rem;
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  color: var(--ink);
  transition: .15s;
}
.page-link:hover { border-color: var(--rust); color: var(--rust); }
.page-link.active { background: var(--rust); border-color: var(--rust); color: #fff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .detail-inner { flex-direction: column; gap: 1.5rem; }
  .detail-cover { width: 150px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .pub-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 1rem; height: 60px; }
  .logo-tagline { display: none; }
  .site-nav .nav-link { padding: .4rem .6rem; font-size: .75rem; }
  .hero { padding: 3rem 1rem; }
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .pub-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .filters-inner { flex-direction: column; align-items: flex-start; }
  .filter-search { margin-left: 0; width: 100%; }
  .filter-search input { width: 100%; }
}
