/*
Theme Name: Fatih Kallem Vibe
Theme URI: https://fatihkallem.com
Author: Fatih Kallem
Author URI: https://fatihkallem.com
Description: Vibe coding projeleri ve blog yazıları için Notion tarzı kişisel WordPress teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fatihkallem-vibe
Tags: blog, portfolio, custom-colors, custom-menu, one-column
*/

:root {
  --bg: #fbfbfa;
  --paper: #ffffff;
  --ink: #151515;
  --muted: #687077;
  --line: #e2ded6;
  --line-strong: #d5d0c8;
  --teal: #1f7a76;
  --coral: #ef644f;
  --soft-teal: #e2f2ef;
  --soft-coral: #fde6df;
  --soft-lilac: #f1edf9;
  --soft-gold: #fbf1d8;
  --surface-tint: rgba(255, 255, 255, 0.82);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(226, 222, 214, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 222, 214, 0.46) 1px, transparent 1px),
    var(--bg);
  background-size: 54px 54px;
  color: var(--ink);
  font-size: 16px;
}

body.admin-bar .site-nav {
  top: 32px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #64aaa4;
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.nav-icons {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 780;
}

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(145deg, #111, #242424);
  color: #37d6c9;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(31, 122, 118, 0.12);
}

.nav-links {
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 680;
}

.nav-links a:hover,
.icon-button:hover {
  color: var(--teal);
}

.nav-icons {
  gap: 12px;
  color: var(--muted);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  transition: background-color 160ms ease, color 160ms ease;
}

.icon-button:hover {
  background: var(--soft-teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 46px;
  align-items: center;
  min-height: 390px;
  padding: 70px 0 52px;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 24px);
  width: fit-content;
  max-width: 100%;
}

.hero-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(94px, 9vw, 118px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid #d1e3de;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(226, 242, 239, 0.9), rgba(241, 237, 249, 0.72)),
    var(--paper);
  box-shadow:
    0 18px 48px rgba(28, 27, 24, 0.08),
    0 0 0 8px rgba(255, 255, 255, 0.44);
  overflow: hidden;
}

.hero-avatar::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  pointer-events: none;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-identity h1 {
  font-size: clamp(60px, 7vw, 94px);
}

.hero p {
  max-width: 520px;
  margin: 28px 0 20px;
  color: #3f4549;
  font-size: 17px;
  line-height: 1.7;
}

.text-link,
.see-all {
  color: var(--teal);
  font-weight: 760;
}

.text-link {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.code-note {
  padding: 22px;
  border: 1px solid #d3e4df;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(226, 242, 239, 0.5), rgba(255, 255, 255, 0.72)),
    var(--paper);
  color: #7d858b;
  font-size: 16px;
  line-height: 1.7;
  box-shadow: 0 18px 50px rgba(28, 27, 24, 0.055);
  overflow-x: auto;
}

.code-note .line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
}

.code-note .no {
  color: var(--teal);
  text-align: right;
}

.code-note .kw {
  color: var(--teal);
  font-weight: 760;
}

.code-note .str {
  color: var(--coral);
}

.panel {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-tint);
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(28, 27, 24, 0.045);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(226, 242, 239, 0.5), rgba(241, 237, 249, 0.36) 45%, rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.46);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 820;
}

.panel-title svg,
.mini-title svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.see-all {
  font-size: 13px;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: #8a9197;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table tbody tr,
.blog-row {
  transition: background-color 160ms ease;
}

.table tbody tr:hover,
.blog-row:hover {
  background: rgba(226, 242, 239, 0.32);
}

.table tr:last-child td {
  border-bottom: 0;
}

.project-name {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 780;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #111;
  color: #39d7c9;
}

.app-icon.coral {
  background: var(--soft-coral);
  color: var(--coral);
}

.app-icon.teal {
  background: var(--soft-teal);
  color: var(--teal);
}

.muted {
  color: var(--muted);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(31, 122, 118, 0.16);
  border-radius: 999px;
  background: rgba(226, 242, 239, 0.58);
  color: var(--teal);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.blog-row,
.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.blog-row:last-child,
.list-row:last-child {
  border-bottom: 0;
}

.blog-row strong,
.list-row strong {
  display: block;
  margin-bottom: 3px;
}

.blog-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.list-row {
  grid-template-columns: minmax(0, 1fr) 120px;
  min-height: 46px;
  font-size: 14px;
}

.row-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding: 0 18px 18px;
}

.week-card {
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.week-card:first-child {
  border-top: 4px solid var(--teal);
}

.week-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.week-card .date {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #34393d;
  font-size: 13px;
  line-height: 1.55;
}

.footer-panel {
  margin: 12px 0 26px;
  padding: 24px 34px;
  border: 1px solid #d1e3de;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(226, 242, 239, 0.58), rgba(251, 241, 216, 0.42)),
    rgba(255, 255, 255, 0.78);
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(28, 27, 24, 0.045);
}

.contact {
  padding: 0;
}

.mini-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 820;
}

input,
button,
.button {
  min-height: 44px;
  border-radius: 7px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: var(--paper);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #fff;
  font-weight: 760;
  cursor: pointer;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  color: var(--teal);
  font-size: 14px;
}

.contact-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-list span,
.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(31, 122, 118, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.48);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.contact-list a:hover {
  border-color: rgba(31, 122, 118, 0.32);
  background: rgba(255, 255, 255, 0.82);
}

.copyright {
  padding: 0 0 28px;
  color: #868d93;
  text-align: center;
  font-size: 12px;
}

.content-panel {
  padding: 38px;
}

.single-entry-panel {
  width: min(840px, 100%);
  margin: 24px auto 18px;
}

.single-entry-head {
  padding: 34px 48px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(226, 242, 239, 0.52), rgba(241, 237, 249, 0.28) 52%, rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.56);
}

.single-entry-kicker {
  width: fit-content;
  margin-bottom: 13px;
  padding: 5px 9px;
  border: 1px solid rgba(31, 122, 118, 0.18);
  border-radius: 999px;
  background: rgba(226, 242, 239, 0.68);
  color: var(--teal);
  font-size: 12px;
  font-weight: 780;
}

.single-entry-title {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.single-entry-date {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.single-entry-panel .content-panel {
  padding: 42px 48px 50px;
}

.page-entry-panel .single-entry-head {
  padding-bottom: 28px;
}

.entry-content {
  color: #272c30;
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.82;
  letter-spacing: 0;
}

.single-entry-panel .entry-content {
  max-width: 100%;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.entry-content blockquote {
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--teal);
  color: #42484d;
  background: linear-gradient(90deg, rgba(226, 242, 239, 0.35), transparent);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.entry-content li + li {
  margin-top: 0.45em;
}

.entry-content a {
  color: var(--teal);
  font-weight: 700;
}

.entry-content h2,
.entry-content h3 {
  color: var(--ink);
  line-height: 1.15;
  margin-top: 1.9em;
  margin-bottom: 0.75em;
}

.archive-list {
  margin-bottom: 32px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  body.admin-bar .site-nav {
    top: 46px;
  }

  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .site-nav {
    height: auto;
    min-height: 70px;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
  }

  .log-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .table {
    min-width: 760px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 30px, 980px);
  }

  .site-nav {
    gap: 14px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-identity {
    align-items: center;
  }

  .hero p {
    max-width: none;
  }

  .panel-head {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .site-nav {
    top: 0;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 980px);
  }

  .site-nav {
    height: auto;
    min-height: 62px;
  }

  .brand span:last-child {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-icons {
    display: none;
  }

  .hero {
    gap: 28px;
    padding: 34px 0 30px;
    text-align: center;
  }

  .hero h1,
  .page-title {
    font-size: clamp(42px, 15vw, 64px);
  }

  .hero-identity {
    display: grid;
    justify-items: center;
    width: 100%;
    gap: 16px;
  }

  .hero-avatar {
    width: clamp(78px, 24vw, 96px);
    border-radius: 18px;
  }

  .hero-avatar::after {
    inset: 5px;
    border-radius: 11px;
  }

  .hero-identity h1 {
    font-size: clamp(44px, 16vw, 68px);
    line-height: 0.94;
    text-align: center;
  }

  .hero p {
    max-width: 34rem;
    margin: 22px auto 16px;
    font-size: 16px;
    line-height: 1.65;
  }

  .text-link {
    justify-content: center;
  }

  .code-note {
    padding: 16px;
    font-size: 12px;
    text-align: left;
    width: 100%;
  }

  .code-note .line {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .blog-row,
  .list-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 14px;
  }

  .table-scroll {
    overflow: visible;
  }

  .table {
    min-width: 0;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .table tr:last-child {
    border-bottom: 0;
  }

  .table td {
    display: block;
    padding: 7px 0;
    border-bottom: 0;
  }

  .table td::before {
    display: block;
    margin-bottom: 4px;
    content: attr(data-label);
    color: #8a9197;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .table td[colspan] {
    display: block;
  }

  .table td[colspan]::before {
    content: none;
  }

  .log-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .footer-panel,
  .content-panel {
    padding: 20px 16px;
  }

  .single-entry-panel {
    width: 100%;
    margin-top: 16px;
  }

  .single-entry-head {
    padding: 24px 18px 20px;
  }

  .single-entry-title {
    max-width: none;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .single-entry-date {
    margin-top: 12px;
    font-size: 13px;
  }

  .single-entry-panel .content-panel {
    padding: 26px 18px 32px;
  }

  .entry-content {
    font-size: 16px;
    line-height: 1.76;
  }

  .contact-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-list a {
    min-height: 42px;
  }
}

@media (max-width: 380px) {
  .hero-identity {
    display: grid;
    gap: 14px;
  }

  .hero-avatar {
    width: 74px;
  }

  .hero-identity h1 {
    font-size: clamp(40px, 15vw, 56px);
  }
}
