/* =========================================================
   SABIT SAYFALAR (Hakkimizda, Iletisim, yasal metinler) - Tasarim
   WooCommerce sayfalari haric sabit sayfalarda yuklenir (bkz. functions.php).
   Atölye dili: ortali Cormorant baslik, beyaz icerik karti, ince cizgiler.
   ========================================================= */

/* ---------- Baslik ---------- */
.desen-page__eyebrow {
    margin: 0 0 10px; text-align: center;
    font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary);
}
.desen-page > h1 {
    font-family: 'Cormorant', serif; font-weight: 400; font-size: 44px; text-align: center; color: var(--color-accent); margin: 0 0 30px; text-wrap: balance;
}

/* ---------- Icerik karti (varsayilan: uzun metin) ---------- */
.desen-page .entry-content {
    max-width: 820px; margin: 0 auto; padding: 44px 56px;
    background: var(--color-white); border: 1px solid var(--color-border);
    font-size: 15px; line-height: 1.8; color: var(--color-text-dark);
}
/* Icerikte tekrar eden sayfa basligi (yasal metinlerde) gizlenir */
.desen-page .entry-content > h1:first-child { display: none; }
.desen-page .entry-content > h1 { font-family: 'Cormorant', serif; font-weight: 400; font-size: 32px; color: var(--color-accent); margin: 0 0 16px; }
.desen-page .entry-content h2 {
    font-family: 'Cormorant', serif; font-weight: 400; font-size: 26px; color: var(--color-accent);
    margin: 36px 0 12px; padding-top: 22px; border-top: 1px solid var(--color-border); line-height: 1.25;
}
.desen-page .entry-content > h1:first-child + p + h2,
.desen-page .entry-content > h2:first-child,
.desen-page .entry-content > h1:first-child + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.desen-page .entry-content h3 { font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-dark); margin: 24px 0 8px; }
.desen-page .entry-content p { margin: 0 0 14px; }
.desen-page .entry-content p:last-child { margin-bottom: 0; }
.desen-page .entry-content strong { font-weight: 600; color: var(--color-accent); }
.desen-page .entry-content a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
.desen-page .entry-content a:hover { color: var(--color-accent); }
.desen-page .entry-content ul,
.desen-page .entry-content ol { margin: 0 0 16px; padding-left: 0; list-style: none; }
.desen-page .entry-content ul li,
.desen-page .entry-content ol li { position: relative; padding-left: 22px; margin: 0 0 8px; }
.desen-page .entry-content ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-secondary); }
.desen-page .entry-content ol { counter-reset: desen-ol; }
.desen-page .entry-content ol li { counter-increment: desen-ol; padding-left: 28px; }
.desen-page .entry-content ol li::before { content: counter(desen-ol) '.'; position: absolute; left: 0; top: 0; font-family: 'Cormorant', serif; font-size: 18px; color: var(--color-secondary); line-height: 1.5; }
.desen-page .entry-content hr { border: 0; border-top: 1px solid var(--color-border); margin: 28px 0; }
.desen-page .entry-content em { color: var(--color-text-muted); }
/* "Son guncelleme tarihi" gibi ilk kisa satir */
.desen-page .entry-content > h1:first-child + p { font-size: 12px; color: var(--color-text-muted); letter-spacing: 0.02em; margin-bottom: 22px; }
.desen-page .entry-content > h1:first-child + p strong { color: var(--color-text-muted); font-weight: 600; }
/* Tablolar (satici bilgileri vb.) */
.desen-page .entry-content figure.wp-block-table { margin: 0 0 20px; overflow-x: auto; }
.desen-page .entry-content table { width: 100%; border-collapse: collapse; border: 1px solid var(--color-border); font-size: 13px; }
.desen-page .entry-content table thead:has(th:empty) { display: none; }
.desen-page .entry-content table th,
.desen-page .entry-content table td { padding: 10px 14px; border: 0; border-top: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.desen-page .entry-content table tr:first-child td { border-top: 0; }
.desen-page .entry-content table td:first-child { width: 34%; background: var(--color-primary-bg); font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.desen-page .entry-content table th { background: var(--color-primary-bg); font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.desen-page .entry-content img { margin: 0 auto 16px; }
.desen-page .entry-content blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--color-secondary); font-family: 'Cormorant', serif; font-size: 20px; color: var(--color-accent); }

/* ---------- Hakkimizda: kisa metin, buyuk serif ---------- */
.desen-page--hakkimizda .entry-content { max-width: 860px; padding: 56px 64px; text-align: center; }
.desen-page--hakkimizda .entry-content > p:first-child {
    font-family: 'Cormorant', serif; font-size: 28px; line-height: 1.45; color: var(--color-accent); text-wrap: balance; margin: 0 0 24px;
}
.desen-page--hakkimizda .entry-content > p:first-child:last-child { margin-bottom: 0; }
.desen-page--hakkimizda .entry-content > p:first-child::before {
    content: '1997'; display: block; margin: 0 auto 18px; font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--color-secondary);
}
.desen-page--hakkimizda .entry-content > p:first-child::after {
    content: ''; display: block; width: 48px; height: 1px; background: var(--color-secondary); margin: 26px auto 0;
}
.desen-page--hakkimizda .entry-content > p:not(:first-child) { max-width: 62ch; margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- Iletisim: uc kart (Adres / Telefon / Mail) ---------- */
.desen-page--iletisim .entry-content {
    max-width: 1000px; padding: 0; background: transparent; border: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; grid-auto-flow: column; gap: 0 20px;
}
.desen-page--iletisim .entry-content h2 {
    grid-row: 1; margin: 0; padding: 26px 26px 6px; border: 1px solid var(--color-border); border-bottom: 0; background: var(--color-white);
    font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary);
}
.desen-page--iletisim .entry-content > h2:first-child { padding-top: 26px; margin-top: 0; border-top: 1px solid var(--color-border); }
.desen-page--iletisim .entry-content h2 strong { color: inherit; font-weight: inherit; }
.desen-page--iletisim .entry-content h2::before {
    content: ''; display: block; width: 36px; height: 36px; margin-bottom: 16px; border: 1.5px solid var(--color-secondary); border-radius: 50%;
    background-repeat: no-repeat; background-position: center; background-size: 16px 16px;
}
.desen-page--iletisim .entry-content h2:nth-of-type(1)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A58F7A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12z'/><circle cx='12' cy='9' r='2.5'/></svg>"); }
.desen-page--iletisim .entry-content h2:nth-of-type(2)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A58F7A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/></svg>"); }
.desen-page--iletisim .entry-content h2:nth-of-type(3)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A58F7A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='1'/><path d='M3 7l9 6 9-6'/></svg>"); }
.desen-page--iletisim .entry-content p,
.desen-page--iletisim .entry-content ul {
    grid-row: 2; margin: 0; padding: 6px 26px 28px; border: 1px solid var(--color-border); border-top: 0; background: var(--color-white);
    font-family: 'Cormorant', serif; font-size: 22px; line-height: 1.4; color: var(--color-accent);
}
.desen-page--iletisim .entry-content ul li { padding: 0; margin: 0 0 4px; overflow-wrap: anywhere; font-size: 19px; }
.desen-page--iletisim .entry-content ul li::before { display: none; }
.desen-page--iletisim .entry-content a { color: inherit; text-decoration: none; }

/* ---------- 404 ve Arama: ortak parcalar ---------- */
.desen-page--404 > h1,
.desen-page--search > h1 { margin-bottom: 26px; }
.desen-search-form {
    display: flex; gap: 8px; max-width: 560px; margin: 0 auto 22px;
}
.desen-search-form input[type="search"] {
    flex: 1; min-width: 0; height: 46px; padding: 0 16px; font-family: var(--font-body); font-size: 14px; color: var(--color-text-dark);
    background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); -webkit-appearance: none; appearance: none;
}
.desen-search-form input[type="search"]:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(165,143,122,.18); }
.desen-search-form .btn { height: 46px; padding: 0 24px; border-radius: var(--radius-sm); }
.desen-search-form--top { margin-bottom: 32px; }
.desen-empty {
    max-width: 640px; margin: 0 auto; padding: 44px 40px; text-align: center;
    background: var(--color-white); border: 1px solid var(--color-border);
}
.desen-empty__text { color: var(--color-text-muted); font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.desen-empty__label { margin: 24px 0 10px; font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary); }
.desen-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.desen-chips a {
    display: inline-block; padding: 9px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent);
    transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.desen-chips a:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text-light); }
.desen-empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.desen-empty__actions .btn { border-radius: var(--radius-sm); }

/* ---------- Arama sonuclari ---------- */
.desen-search__count { text-align: center; margin: -14px 0 28px; font-size: 12px; color: var(--color-text-muted); letter-spacing: 0.04em; }
.desen-search__section { margin-bottom: 40px; }
.desen-search__section > h2 {
    display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border);
    font-family: 'Cormorant', serif; font-weight: 400; font-size: 26px; color: var(--color-accent);
}
.desen-search__section > h2 small { font-family: var(--font-heading); font-size: 12px; color: var(--color-text-muted); }
.desen-search__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.desen-search__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.desen-search__list a {
    display: grid; gap: 4px; padding: 18px 22px; background: var(--color-white); border: 1px solid var(--color-border);
    transition: border-color var(--transition-fast);
}
.desen-search__list a:hover { border-color: var(--color-secondary); }
.desen-search__type { font-family: var(--font-heading); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary); }
.desen-search__list strong { font-family: 'Cormorant', serif; font-weight: 400; font-size: 22px; color: var(--color-accent); line-height: 1.2; }
.desen-search__excerpt { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }
.desen-pagination { margin-top: 12px; }
.desen-pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.desen-pagination .page-numbers {
    min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-border); background: var(--color-white); font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: var(--color-text-dark);
}
.desen-pagination .page-numbers.current { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text-light); }
.desen-pagination .page-numbers.dots { border: 0; background: transparent; }
.desen-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .desen-page > h1 { font-size: 34px; }
    .desen-page .entry-content { padding: 28px 22px; font-size: 14px; }
    .desen-page--hakkimizda .entry-content { padding: 36px 24px; }
    .desen-page--hakkimizda .entry-content > p:first-child { font-size: 23px; }
    .desen-page--iletisim .entry-content { grid-template-columns: 1fr; grid-auto-flow: row; gap: 16px 0; }
    .desen-page--iletisim .entry-content h2 { grid-row: auto; }
    .desen-page--iletisim .entry-content p,
    .desen-page--iletisim .entry-content ul { grid-row: auto; margin-top: -16px; }
    .desen-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .desen-empty { padding: 30px 20px; }
}
