/* Aşama 7: iki hazır temanın paylaştığı responsive ziyaretçi yapısı. */
:root {
    --site-bg: #e9eef3;
    --site-surface: #fff;
    --site-text: #222;
    --site-muted: #555;
    --site-link: #0b4f9e;
    --site-accent: #ff6600;
    --site-border: #b5c0cc;
    --site-radius: 8px;
}

.site-body {
    --site-font-family: Tahoma, Verdana, Arial, sans-serif;
    min-height: 100vh;
    color: var(--site-text);
    font-family: var(--site-font-family);
    font-size: 13px;
    line-height: 1.65;
    background: var(--site-bg);
}

.site-body button,
.site-body input,
.site-body select,
.site-body textarea,
.site-body code,
.site-body pre,
.site-body kbd,
.site-body samp { font-family: inherit; }

.site-body a { color: var(--site-link); }
.site-body :focus-visible { outline: 3px solid var(--site-accent); outline-offset: 3px; }

.site-skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: -999px;
    padding: 8px 12px;
    color: #111 !important;
    font-weight: 700;
    background: var(--site-accent);
    border-radius: 4px;
}

.site-skip-link:focus { left: 8px; }
.site-preview-notice { padding: 8px 16px; color: #fff; font-weight: 700; text-align: center; background: #18181b; }
.site-shell { width: min(100% - 20px, 960px); margin: 16px auto 24px; }

.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    padding: 22px 24px 18px;
    color: #fff;
    background: var(--site-link);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius) var(--site-radius) 0 0;
    box-shadow: 0 2px 4px rgb(0 0 0 / 25%);
}

.site-header__identity { position: relative; z-index: 1; }
.site-mobile-widgets,
.archive-mobile-categories { display: none; }
.site-logo { color: inherit !important; font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.site-header p { margin: 3px 0 0; opacity: 0.9; }

.site-header__blog,
.site-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 13px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    background: var(--site-accent);
    border: 1px solid rgb(0 0 0 / 28%);
    border-radius: var(--site-radius);
    box-shadow: inset 0 1px rgb(255 255 255 / 35%), 0 1px 2px rgb(0 0 0 / 25%);
}

.site-navigation {
    position: relative;
    z-index: 30;
    margin-bottom: 14px;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-top: 0;
    border-radius: 0 0 var(--site-radius) var(--site-radius);
}

.site-navigation ul,
.site-footer ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-navigation li { position: relative; }
.site-navigation a { display: block; min-height: 44px; padding: 11px 15px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-navigation a,
.site-widget a,
.site-footer a,
.site-navigation a:hover,
.site-widget a:hover,
.site-footer a:hover { text-decoration: none; }
.site-navigation a[aria-current="page"] { color: #fff; background: var(--site-accent); text-decoration: none; }

.site-widget-list li.is-active {
    color: var(--site-accent);
    font-weight: 700;
}

.site-widget-list a[aria-current="page"] {
    color: inherit;
    text-decoration: none;
}
.site-navigation li ul { position: absolute; z-index: 10; top: 100%; left: 0; display: none; min-width: 210px; background: var(--site-surface); border: 1px solid var(--site-border); box-shadow: 0 5px 12px rgb(0 0 0 / 18%); }
.site-navigation li:hover > ul,
.site-navigation li:focus-within > ul { display: block; }
.site-navigation li ul a { font-weight: 500; }

.site-content-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr); align-items: start; gap: 14px; }
.site-main { display: grid; min-width: 0; gap: 14px; }
.site-sidebar { display: grid; min-width: 0; gap: 14px; }

.site-section,
.public-content,
.site-widget { overflow: hidden; padding: 0; background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); box-shadow: 0 1px 3px rgb(0 0 0 / 16%); }
.site-section > header,
.site-widget > h2 { margin: 0; padding: 9px 14px; color: #fff; background: var(--site-link); }
.site-section > header h1,
.site-section > header h2,
.site-widget > h2 { margin: 0; color: inherit; font-size: 1.08rem; line-height: 1.35; }
.site-section__eyebrow { margin: 0 0 2px; color: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; opacity: 0.82; text-transform: uppercase; }
.site-section__intro,
.site-author,
.site-social,
.site-post-grid { margin: 0; padding: 16px; }
.site-section--hero .site-section__intro { max-width: 70ch; font-size: 1.05rem; }

.site-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.site-post-card { overflow: hidden; background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.site-post-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.site-post-card > div { padding: 12px; }
.site-post-card h2,
.site-post-card p { margin: 0; }
.site-post-card h2 { margin-bottom: 6px; font-size: 1rem; }
.site-author { display: flex; align-items: flex-start; gap: 14px; }
.site-author img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--site-radius); }
.site-author p { margin: 5px 0 0; color: var(--site-muted); }

.site-education { margin: 0; padding: 6px 16px 10px; list-style: none; }
.site-education li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 12px 0; border-bottom: 1px dotted var(--site-border); }
.site-education li:last-child { border-bottom: 0; }
.site-education__badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #fff; font-weight: 700; background: var(--site-link); border-radius: max(3px, calc(var(--site-radius) / 2)); box-shadow: inset 0 1px rgb(255 255 255 / 35%); }
.site-education__badge--current { background: var(--site-accent); }
.site-education strong,
.site-education small { display: block; }
.site-education small { margin-top: 2px; color: var(--site-muted); font-size: 0.82rem; line-height: 1.55; }

.site-widget ul { margin: 0; padding: 6px 12px; list-style: none; }
.site-widget li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--site-border); }
.site-widget li:last-child { border-bottom: 0; }
.site-widget li a { min-width: 0; overflow-wrap: anywhere; }
.site-widget time,
.site-widget li span { flex: 0 0 auto; color: var(--site-muted); font-size: 0.76rem; }
.site-widget--author > div { display: flex; align-items: flex-start; gap: 10px; padding: 12px; }
.site-widget--author img { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--site-surface); border-radius: var(--site-radius); box-shadow: 0 0 0 1px var(--site-border); }
.site-widget--author p { margin: 0; }
.site-widget__title--highlighted { background: var(--site-accent) !important; }
.site-widget-search,
.site-widget__content { padding: 12px; }
.site-widget-search label { display: block; margin-bottom: 4px; font-weight: 700; }
.site-widget-search > div { display: flex; gap: 6px; }
.site-widget-search input { min-width: 0; flex: 1; padding: 7px 9px; border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.site-widget-search .site-button { flex: 0 0 auto; min-height: 36px; }
.site-widget-profile { display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 4px; }
.site-widget-profile img,
.site-widget-profile__avatar { width: 72px; height: 72px; flex: 0 0 72px; border-radius: var(--site-radius); }
.site-widget-profile__avatar { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; color: var(--site-link); font-weight: 700; background: radial-gradient(circle at 50% 30%, #fff 0, #fff 22%, #d9cdb8 23%, #d9cdb8 45%, #fff 46%, #fff 100%); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--site-border), 0 1px 3px rgb(0 0 0 / 18%); }
.site-widget-profile p { margin: 3px 0 0; color: var(--site-muted); font-size: 0.78rem; }
.site-profile-education { padding-top: 4px !important; }
.site-profile-education li { display: grid; grid-template-columns: 28px minmax(0, 1fr); justify-content: initial; }
.site-profile-education li > span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: #fff; font-size: 0.68rem; font-weight: 700; background: var(--site-link); border-radius: max(3px, calc(var(--site-radius) / 2)); }
.site-profile-education li > span.is-current { background: var(--site-accent); }
.site-profile-education strong,
.site-profile-education small { display: block; }
.site-profile-education small { color: var(--site-muted); font-size: 0.7rem; line-height: 1.4; }

.archive-list { display: grid; }
.archive-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); padding: 14px; border-bottom: 1px dotted var(--site-border); }
.archive-card--without-media { grid-template-columns: minmax(0, 1fr); }
.archive-card:last-child { border-bottom: 0; }
.archive-card__media { display: block; align-self: start; margin-right: 14px; }
.archive-card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.archive-card__meta { margin: 0 0 3px; color: var(--site-muted); font-size: 0.78rem; }
.archive-card h2 { margin: 0 0 5px; font-size: 1.22rem; line-height: 1.3; }
.archive-card h2 a { text-decoration: none; }
.archive-card h2 a:hover { text-decoration: underline; }
.archive-card__body > p:not(.archive-card__meta) { margin: 0 0 7px; }
.site-read-more { font-weight: 700; text-decoration: none; }
.site-empty-state { padding: 28px 20px; text-align: center; }
.site-empty-state p { margin: 4px 0 0; color: var(--site-muted); }
.site-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 13px 16px; background: color-mix(in srgb, var(--site-surface) 80%, var(--site-bg)); border-top: 1px solid var(--site-border); }
.site-pagination a { font-weight: 700; }
.site-pagination a:last-child { justify-self: end; }
.site-pagination span { color: var(--site-muted); }

.site-main .public-content { width: 100%; margin: 0; padding: 24px; }
.public-content__header > p:first-child,
.public-content__taxonomy { color: var(--site-muted); font-size: 0.82rem; }
.public-content__header h1 { margin: 5px 0 12px; color: var(--site-text); font-size: 1.8rem; line-height: 1.16; }
.public-content__excerpt { color: var(--site-muted); font-size: 1.12rem; line-height: 1.55; }
.public-content__cover { display: block; width: 100%; height: auto; margin: 20px 0 26px; object-fit: cover; border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.site-body .prose { color: var(--site-text); line-height: 1.78; }
.site-body .prose img { display: block; max-width: 100%; height: auto; border-radius: var(--site-radius); }
.site-body .prose blockquote { margin-left: 0; padding: 10px 14px; color: var(--site-muted); background: color-mix(in srgb, var(--site-accent) 8%, var(--site-surface)); border-left: 4px solid var(--site-accent); }
.site-body .prose pre { max-width: 100%; overflow: auto; padding: 14px; color: #e8edf2; background: #1e1e1e; border-radius: var(--site-radius); }
.site-body .prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.site-body .prose th,
.site-body .prose td { padding: 7px 9px; text-align: left; border: 1px solid var(--site-border); }
.public-content__taxonomy { display: grid; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--site-border); }
.public-content__taxonomy-group { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.public-content__taxonomy-group > strong { min-width: 72px; color: var(--site-text); }
.public-content__taxonomy-group nav { display: flex; flex-wrap: wrap; gap: 7px; }
.public-content__taxonomy a { padding: 2px 8px; text-decoration: none; background: color-mix(in srgb, var(--site-link) 9%, var(--site-surface)); border: 1px solid var(--site-border); border-radius: 5px; }

.post-share-panel { display: grid; gap: 12px; margin-top: 30px; padding: 14px; background: color-mix(in srgb, var(--site-surface) 82%, var(--site-bg)); border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.post-share-panel strong,
.post-share-panel small { display: block; }
.post-share-panel small { margin-top: 2px; color: var(--site-muted); }
.post-share-links { display: flex; flex-wrap: wrap; gap: 7px; }
.post-share-link { display: inline-flex; align-items: center; min-height: 34px; gap: 6px; padding: 5px 10px; color: #fff !important; font-size: 0.78rem; font-weight: 700; text-decoration: none; background: #2d3748; border: 1px solid #1f2733; border-radius: max(3px, calc(var(--site-radius) / 2)); box-shadow: inset 0 1px rgb(255 255 255 / 35%), 0 1px 2px rgb(0 0 0 / 20%); }
.post-share-link span { display: inline-grid; width: 18px; height: 18px; place-items: center; color: inherit; font-size: 10px; background: rgb(255 255 255 / 16%); border: 1px solid rgb(255 255 255 / 38%); border-radius: 3px; }
.post-share-link:hover { filter: brightness(1.12); }
.post-share-link--whatsapp { background-color: #287d32; border-color: #14511b; }
.post-share-link--x { background-color: #263244; border-color: #111827; }
.post-share-link--facebook { background-color: #365899; border-color: #243f75; }
.post-share-link--linkedin { background-color: #28709b; border-color: #185273; }
.post-share-link--email { background-color: #795b35; border-color: #523c22; }

.site-visitor-counter { padding: 12px; text-align: center; }
.site-visitor-counter__active { display: inline-block; padding: 2px 10px; color: #1f5b10; font-size: 0.7rem; font-weight: 700; background: #e6f7e1; border: 1px solid #9ccb87; border-radius: 999px; }
.site-visitor-counter__active::before { margin-right: 4px; color: #2e9e2e; content: "●"; }
.site-visitor-counter__digits { display: flex; justify-content: center; gap: 3px; margin-bottom: 7px; }
.site-visitor-counter__digits span { display: inline-grid; width: 22px; height: 30px; place-items: center; color: #7cff7c; font-family: "Courier New", monospace; font-size: 16px; font-weight: 700; line-height: 1; background: linear-gradient(#333, #111); border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 1px rgb(255 255 255 / 20%); }
.site-visitor-counter > p { margin: 3px 0 0; color: var(--site-muted); font-size: 0.72rem; }

.contact-page__body,
.error-page__body { padding: 18px; }
.contact-page__body > p:first-child,
.error-page__body > p:first-child { margin-top: 0; }
.contact-page__body > p:first-child { color: var(--site-muted); }
.contact-form { display: grid; max-width: 680px; gap: 16px; }
.contact-form > ul,
.site-field ul { margin: 0; padding-left: 18px; color: #b42318; }
.site-field { display: grid; gap: 7px; }
.site-field label { color: var(--site-text); font-size: 0.9rem; font-weight: 700; }
.site-field input,
.site-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--site-text); background: var(--site-bg); border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.site-field textarea { resize: vertical; }
.site-field input:focus-visible,
.site-field textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--site-accent) 45%, transparent); outline-offset: 2px; }
.site-submit { min-height: 44px; padding: 10px 18px; color: #fff; font-weight: 750; cursor: pointer; background: var(--site-link); border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.site-submit:disabled { cursor: wait; opacity: 0.65; }
.site-notice { margin: 0 0 16px; padding: 11px 13px; color: #176b3a; background: #e9f9ef; border: 1px solid #9bd7b3; border-radius: var(--site-radius); }
.site-notice--error { color: #9b1c1c; background: #fff0f0; border-color: #f0aaaa; }
.error-page__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.site-social { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 14px 18px; color: var(--site-muted); background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.site-footer ul { gap: 12px; }
.site-footer p { margin: 0; }
.site-footer__content { display: grid; gap: 4px; }
.site-footer__content .site-social { padding: 0; }
.site-standards { display: flex; flex-wrap: wrap; gap: 6px; }
.site-standard { display: inline-flex; width: 80px; height: 17px; overflow: hidden; color: #fff; font-family: inherit; font-size: 9px; font-weight: 700; line-height: 15px; border: 1px solid #444; border-radius: 2px; }
.site-standard b { padding: 0 4px; background: #444; }
.site-standard em { flex: 1; font-style: normal; text-align: center; }
.site-standard--html em { background: #e44d26; }
.site-standard--css em { background: #1572b6; }
.site-standard--a11y em { background: #2e7d32; }

@media (max-width: 720px) {
    .site-body { padding-bottom: 66px; }
    .site-shell { width: 100%; margin: 0; }
    .site-header { padding: 14px 16px; border-width: 0 0 1px; border-radius: 0; }
    .site-header p { max-width: 38ch; font-size: 0.78rem; line-height: 1.35; }
    .site-header__blog { min-height: 36px; padding: 6px 9px; font-size: 0.78rem; white-space: nowrap; }
    .site-content-layout { grid-template-columns: 1fr; padding: 10px; }
    .site-sidebar { grid-template-columns: 1fr; }
    .site-main .public-content { padding: 20px 16px; }
    .site-navigation { position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; margin: 0; border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -2px 10px rgb(0 0 0 / 18%); }
    .site-navigation > ul { display: flex; flex-wrap: nowrap; justify-content: space-around; overflow-x: auto; }
    .site-navigation > ul > li { flex: 1 0 auto; text-align: center; }
    .site-navigation > ul > li > a { min-height: 56px; padding: 17px 12px; white-space: nowrap; }
    .site-navigation li ul { top: auto; bottom: 100%; min-width: 200px; text-align: left; }
    .site-footer { align-items: flex-start; flex-direction: column; margin: 0 10px 10px; }
    .site-author { align-items: flex-start; flex-direction: column; }
    .archive-card { grid-template-columns: 112px minmax(0, 1fr); padding: 12px; }
    .archive-card--without-media { grid-template-columns: minmax(0, 1fr); }
    .archive-card__media { margin-right: 11px; }
    .archive-card h2 { font-size: 1.04rem; }
    .archive-card__body > p:not(.archive-card__meta) { display: none; }
}

@media (max-width: 430px) {
    .site-logo { font-size: 1.5rem; }
    .site-header p { display: none; }
    .archive-card { grid-template-columns: 1fr; }
    .archive-card__media { margin: 0 0 10px; }
    .site-pagination { grid-template-columns: 1fr 1fr; }
    .site-pagination span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .site-body *,
    .site-body *::before,
    .site-body *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
