/*
Theme Name: Aksiyom Sade
Theme URI: https://aksiyom.com/
Author: Aksiyom
Author URI: https://aksiyom.com/
Description: Eğitim kaynakları, çalışma kağıtları ve PDF arşivleri için premium görünümlü, hızlı, reklama uygun ve mobil uyumlu WordPress teması.
Version: 0.5.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aksiyom-sade
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --aks-bg: #f5f7fb;
  --aks-surface: #ffffff;
  --aks-surface-soft: #f8faff;
  --aks-text: #172033;
  --aks-heading: #101828;
  --aks-muted: #667085;
  --aks-border: #e4e8f0;
  --aks-border-strong: #d7ddea;
  --aks-accent: #4f46c8;
  --aks-accent-dark: #3730a3;
  --aks-accent-soft: #eeedff;
  --aks-premium: #c69a3a;
  --aks-header: #111c31;
  --aks-header-2: #192a49;
  --aks-header-bg: linear-gradient(135deg, #111c31, #192a49);
  --aks-header-text: #ffffff;
  --aks-header-muted: #d9e1ef;
  --aks-header-border: rgba(255,255,255,.08);
  --aks-radius-sm: 10px;
  --aks-radius: 16px;
  --aks-radius-lg: 22px;
  --aks-shadow-sm: 0 5px 16px rgba(16, 24, 40, .045);
  --aks-shadow: 0 16px 42px rgba(16, 24, 40, .075);
  --aks-container: 1180px;
  --aks-reading: 830px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--aks-text);
  background:
    radial-gradient(circle at 10% -10%, rgba(79,70,200,.08), transparent 28rem),
    var(--aks-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--aks-accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--aks-accent-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(79,70,200,.28);
  outline-offset: 3px;
}
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; top: 8px; left: 8px; z-index: 99999;
  width: auto; height: auto; padding: 10px 14px; margin: 0;
  clip: auto; background: #fff; color: #111; border-radius: 8px; box-shadow: var(--aks-shadow);
}

.aks-container { width: min(calc(100% - 36px), var(--aks-container)); margin-inline: auto; }

.site-header {
  position: relative;
  color: var(--aks-header-text);
  background: var(--aks-header-bg);
  border-bottom: 1px solid var(--aks-header-border);
}
.site-header::after {
  content: "";
  position: absolute; inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aks-header), var(--aks-header-2), var(--aks-premium));
}
.site-header__top { min-height: 92px; display: flex; align-items: center; gap: 24px; padding: 16px 0 18px; }
.site-branding { min-width: 0; display: flex; align-items: center; gap: 14px; }
.custom-logo-link { flex: 0 0 auto; }
.custom-logo { display: block; max-height: 58px; width: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.16)); }
.site-title { margin: 0; font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.site-title a { color: var(--aks-header-text); text-decoration: none; }
.site-description { margin: 6px 0 0; color: var(--aks-header-muted); font-size: .93rem; }
.header-widget { margin-left: auto; min-width: 250px; text-align: right; }
.header-widget:empty { display: none; }

.main-navigation {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(215,221,234,.9);
  box-shadow: 0 7px 24px rgba(16,24,40,.055);
  backdrop-filter: blur(12px);
}
.nav-row { min-height: 58px; display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; margin: 9px 0; padding: 9px 12px;
  border: 1px solid var(--aks-border-strong); border-radius: 10px;
  background: #fff; color: var(--aks-heading); cursor: pointer; font-weight: 750;
}
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
  width: 18px; height: 2px; display: block; background: currentColor; border-radius: 2px;
}
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-home {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 9px 12px; color: #26344d; background: #f6f8fc;
  border: 1px solid var(--aks-border); border-radius: 10px;
  font-size: .92rem; line-height: 1; font-weight: 800; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-home:hover, .nav-home:focus, .nav-home.is-current {
  color: var(--aks-accent-dark); background: var(--aks-accent-soft);
  border-color: #d8d3ff; text-decoration: none; transform: translateY(-1px);
}
.nav-home__icon { width: 17px; height: 17px; fill: currentColor; }

.primary-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.primary-menu > li { position: relative; }
.primary-menu a {
  display: block; padding: 10px 12px; color: #2b3850; font-weight: 700; font-size: .95rem;
  text-decoration: none; border-radius: 10px; transition: background .18s ease, color .18s ease;
}
.primary-menu a:hover, .primary-menu a:focus, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a {
  background: var(--aks-accent-soft); color: var(--aks-accent-dark); text-decoration: none;
}
.primary-menu .sub-menu {
  display: none; position: absolute; z-index: 90; top: calc(100% + 3px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--aks-border); border-radius: 14px; box-shadow: var(--aks-shadow); padding: 7px;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { padding: 10px 11px; font-weight: 600; }
.nav-search { margin-left: auto; width: min(260px, 28vw); }
.nav-search .search-form { position: relative; }
.nav-search .search-field { padding-right: 76px; background: #f8f9fc; }
.nav-search .search-submit { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; }

.aks-ad-wrap { padding-top: 18px; }
.ad-slot {
  width: 100%; overflow: hidden; text-align: center;
  color: #8992a3; font-size: .72rem; line-height: 1.2;
}
.ad-slot__label { display: block; margin-bottom: 7px; letter-spacing: .08em; text-transform: uppercase; }
.ad-slot__content {
  min-height: 90px; display: grid; place-items: center;
  background: rgba(255,255,255,.72); border: 1px dashed #d9deea; border-radius: 12px;
}
.ad-slot--sidebar .ad-slot__content { min-height: 250px; }
.ad-slot--content { margin: 24px 0; }
.ad-slot--feed { grid-column: 1 / -1; margin: 2px 0; }
.ad-slot ins.adsbygoogle { display: block !important; width: 100%; max-width: 100%; }

.site-main-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 28px; padding: 28px 0 52px; align-items: start; }
body.aks-sidebar-left .site-main-wrap { grid-template-columns: 306px minmax(0, 1fr); }
body.aks-sidebar-left .content-area { order: 2; }
body.aks-sidebar-left .widget-area { order: 1; }
body.aks-no-sidebar .site-main-wrap { grid-template-columns: minmax(0, 1fr); }
body.aks-no-sidebar .widget-area { display: none; }
.content-area { min-width: 0; }

.page-header, .entry-card, .singular-entry, .comments-area {
  background: var(--aks-surface); border: 1px solid var(--aks-border); border-radius: var(--aks-radius-lg); box-shadow: var(--aks-shadow-sm);
}
.page-header { position: relative; overflow: hidden; padding: 24px 26px; margin-bottom: 21px; }
.page-header--bar { padding: 18px 22px; border-radius: 16px; }
.page-header::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, var(--aks-accent), #897eff);
}
.page-header--bar::before {
  inset: 0 0 auto 0; width: auto; height: 4px;
  background: linear-gradient(90deg, var(--aks-accent), #897eff);
}
.archive-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.archive-context {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px;
  background: var(--aks-accent-soft); color: var(--aks-accent-dark); font-size: .74rem;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.page-header--bar .page-title { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.page-header--bar .archive-description { margin-top: 10px; }
.page-title { margin: 0; color: var(--aks-heading); font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; }
.archive-description { margin-top: 8px; color: var(--aks-muted); }

.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.entry-card {
  position: relative; overflow: hidden; min-height: 230px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--aks-shadow); border-color: #d9ddef; }
.entry-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--aks-accent), #8a7fff); opacity: 0; transition: opacity .2s ease;
}
.entry-card:hover::after { opacity: 1; }
.entry-card__body { height: 100%; display: flex; flex-direction: column; padding: 22px 22px 20px; }
.entry-card__kicker { margin-bottom: 12px; }
.entry-card__kicker a {
  display: inline-flex; padding: 5px 9px; color: var(--aks-accent-dark); background: var(--aks-accent-soft);
  border-radius: 999px; font-size: .76rem; line-height: 1.2; font-weight: 800; text-decoration: none;
}
.entry-card__title { margin: 0 0 12px; color: var(--aks-heading); font-size: 1.28rem; line-height: 1.28; letter-spacing: -.012em; }
.entry-card__title a { color: inherit; text-decoration: none; }
.entry-card__title a:hover { color: var(--aks-accent); }
.entry-card__meta, .entry-meta { color: var(--aks-muted); font-size: .84rem; }
.entry-card__excerpt { margin: 0 0 14px; color: #536176; }
.entry-card .category, .entry-card__kicker { display:none !important; }
.entry-card__excerpt p { margin: 0; }

/* Compact archive/category list */
.posts-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.entry-strip {
  position: relative;
  overflow: hidden;
  background: var(--aks-surface);
  border: 1px solid var(--aks-border);
  border-radius: 13px;
  box-shadow: 0 4px 13px rgba(16, 24, 40, .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.entry-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--aks-accent), #897eff);
}
.entry-strip:hover {
  transform: translateX(3px);
  border-color: #d3d8e7;
  box-shadow: 0 9px 24px rgba(16, 24, 40, .065);
}
.entry-strip__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 14px 15px 14px 20px;
  color: var(--aks-heading);
  text-decoration: none;
}
.entry-strip__link:hover { color: var(--aks-accent-dark); text-decoration: none; }
.entry-strip__title {
  margin: 0;
  color: inherit;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.38;
  letter-spacing: -.01em;
}
.entry-strip__arrow {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--aks-accent-dark);
  background: var(--aks-accent-soft);
  font-size: 1.08rem;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.entry-strip:hover .entry-strip__arrow {
  transform: translateX(2px);
  color: #fff;
  background: var(--aks-accent);
}
.posts-list .ad-slot--feed { margin: 4px 0; }

.read-more {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: auto;
  color: var(--aks-accent-dark); font-weight: 800; text-decoration: none;
}
.read-more::after { content: "→"; transition: transform .18s ease; }
.read-more:hover::after { transform: translateX(3px); }

.singular-entry { padding: clamp(22px, 4vw, 42px); }
.entry-header { position: relative; margin-bottom: 23px; padding-bottom: 18px; border-bottom: 1px solid var(--aks-border); }
.entry-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--aks-accent), #8b80ff);
}
.entry-title { margin: 0; color: var(--aks-heading); font-size: clamp(1.85rem, 4vw, 2.85rem); line-height: 1.12; letter-spacing: -.035em; }
.entry-meta { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 9px 15px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 1.8em 0 .62em; color: var(--aks-heading); font-size: clamp(1.42rem, 3vw, 1.7rem); line-height: 1.25; letter-spacing: -.018em; }
.entry-content h3 { margin: 1.55em 0 .52em; color: var(--aks-heading); font-size: 1.28rem; line-height: 1.3; }
.entry-content p { margin: 0 0 1em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li + li { margin-top: .35em; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; border-radius: 10px; }
.entry-content th, .entry-content td { border: 1px solid var(--aks-border); padding: 10px 11px; text-align: left; }
.entry-content th { background: #f6f7fb; }
.entry-content blockquote { margin: 1.45em 0; padding: 16px 19px; border-left: 4px solid var(--aks-accent); background: var(--aks-accent-soft); border-radius: 0 10px 10px 0; }
.entry-content .wp-block-button__link, .entry-content a[class*="button"], .aks-button {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px;
  border-radius: 10px; background: linear-gradient(135deg, var(--aks-accent), #655cd9); color: #fff;
  font-weight: 800; text-decoration: none; box-shadow: 0 8px 18px rgba(79,70,200,.18);
}
.entry-content .wp-block-button__link:hover, .entry-content a[class*="button"]:hover, .aks-button:hover {
  background: linear-gradient(135deg, var(--aks-accent-dark), var(--aks-accent)); color: #fff; text-decoration: none;
}
.entry-content details { margin: 13px 0; border: 1px solid var(--aks-border); border-radius: 12px; background: #fff; overflow: hidden; }
.entry-content summary { cursor: pointer; padding: 14px 16px; font-weight: 800; background: #f8f9fc; }
.entry-content details[open] summary { border-bottom: 1px solid var(--aks-border); }
.entry-content details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-file { padding: 12px; border: 1px solid var(--aks-border); border-radius: 10px; background: #fafbff; }

.entry-footer { margin-top: 29px; padding-top: 18px; border-top: 1px solid var(--aks-border); color: var(--aks-muted); font-size: .9rem; }
.post-navigation { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a { display: block; height: 100%; padding: 15px; background: #fff; border: 1px solid var(--aks-border); border-radius: 12px; box-shadow: var(--aks-shadow-sm); }

.widget-area { min-width: 0; }
.widget {
  margin-bottom: 19px; padding: 19px; background: rgba(255,255,255,.92);
  border: 1px solid var(--aks-border); border-radius: var(--aks-radius); box-shadow: var(--aks-shadow-sm);
}
.widget-title { position: relative; margin: 0 0 14px; padding-bottom: 10px; color: var(--aks-heading); font-size: 1.05rem; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--aks-accent); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid #eef1f6; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: #344054; }
.widget a:hover { color: var(--aks-accent); }
.widget_search .search-form, .search-form { display: flex; gap: 8px; }
.search-field { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #cfd6e2; border-radius: 9px; background: #fff; color: var(--aks-text); }
.search-submit { padding: 10px 13px; border: 0; border-radius: 9px; background: var(--aks-accent); color: #fff; font-weight: 800; cursor: pointer; }
.search-submit:hover { background: var(--aks-accent-dark); }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.page-numbers { min-width: 40px; padding: 8px 11px; text-align: center; background: #fff; border: 1px solid var(--aks-border); border-radius: 9px; }
.page-numbers.current { background: var(--aks-accent); color: #fff; border-color: var(--aks-accent); }

.comments-area { margin-top: 24px; padding: clamp(20px, 3vw, 30px); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--aks-border); }
.comment-form label { display: block; font-weight: 700; margin-bottom: 5px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #cfd6e2; border-radius: 9px; }
.form-submit input { border: 0; border-radius: 9px; padding: 10px 16px; background: var(--aks-accent); color: #fff; font-weight: 800; cursor: pointer; }

.site-footer { margin-top: 10px; color: #d7deea; background: linear-gradient(145deg, #101a2c, #172640); border-top: 3px solid var(--aks-accent); }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 38px 0 24px; }
.site-footer .widget { background: transparent; color: #d7deea; border: 0; box-shadow: none; padding: 0; }
.site-footer .widget-title { color: #fff; }
.site-footer .widget-title::after { background: var(--aks-premium); }
.site-footer a { color: #fff; }
.site-info { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: .9rem; }
.footer-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 8px; padding: 0; }

@media (max-width: 960px) {
  .site-main-wrap, body.aks-sidebar-left .site-main-wrap { grid-template-columns: minmax(0, 1fr); }
  body.aks-sidebar-left .content-area, body.aks-sidebar-left .widget-area { order: initial; }
  .widget-area { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .widget, .ad-slot--sidebar { margin-bottom: 0; }
  .header-widget { display: none; }
  .nav-search { width: 220px; }
}

@media (max-width: 760px) {
  .aks-container { width: min(calc(100% - 22px), var(--aks-container)); }
  .site-header__top { min-height: 76px; }
  .nav-home { padding: 9px 11px; }
  .nav-home span { display: inline; }
  .custom-logo { max-height: 50px; }
  .site-description { display: none; }
  .main-navigation { position: relative; }
  .menu-toggle { display: inline-flex; }
  .nav-row { display: block; }
  .nav-search { width: 100%; padding-bottom: 10px; }
  .primary-menu { display: none; padding-bottom: 8px; }
  .primary-menu.is-open { display: block; }
  .primary-menu a { padding: 11px 10px; }
  .primary-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .posts-grid { grid-template-columns: 1fr; }
  .entry-card { min-height: 0; }
  .posts-list { gap: 8px; }
  .entry-strip__link { min-height: 60px; padding: 12px 12px 12px 17px; gap: 12px; }
  .entry-strip__title { font-size: 1rem; }
  .entry-strip__arrow { width: 31px; height: 31px; }
  .site-main-wrap { padding-top: 18px; gap: 20px; }
  .widget-area { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .ad-slot__content { min-height: 100px; }
  .ad-slot--sidebar .ad-slot__content { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .main-navigation, .widget-area, .site-footer, .comments-area, .post-navigation, .aks-ad-wrap, .ad-slot { display: none !important; }
  body { background: #fff; color: #000; }
  .aks-container, .site-main-wrap { width: 100%; display: block; padding: 0; }
  .singular-entry { border: 0; box-shadow: none; padding: 0; }
  a { color: #000; text-decoration: none; }
}

@media (max-width: 782px) {
  .page-header--bar { padding: 16px 18px; }
  .archive-bar { gap: 9px; }
  .archive-context { font-size: .7rem; padding: 5px 9px; }
}
