/*
Theme Name: Karacaahmet Aygen SK
Theme URI: https://karacaahmetaygen.com
Author: WordPress Tasarım Uzmanı
Description: Karacaahmet Aygen Spor Kulübü için hızlı, erişilebilir ve mobil uyumlu özel tema.
Version: 1.2.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: kask
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #d50000;
  --red-dark: #930000;
  --ink: #050505;
  --charcoal: #151515;
  --paper: #f5f4f0;
  --white: #fff;
  --muted: #aaa9a6;
  --line: rgba(255, 255, 255, .14);
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #ffd43b; outline-offset: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 18px; background: #fff; color: #000; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.section-title { margin: 0; max-width: 800px; font-family: var(--display); font-size: clamp(2.9rem, 7vw, 6.6rem); font-weight: 900; letter-spacing: 0; line-height: .88; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; background: var(--red); color: #fff; font-size: .84rem; font-weight: 800; letter-spacing: .06em; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); background: #f12a38; }
.button--line { border-color: rgba(255,255,255,.48); background: transparent; }
.button--line:hover { background: #fff; color: #000; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid var(--line); color: #fff; }
.header-inner { width: var(--wrap); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; }
.official-logo { width: 66px; height: 66px; border: 3px solid #fff; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: 0 0 0 2px #000; }
.custom-logo-link { display: flex; }
.custom-logo { width: 66px; height: 66px; border: 3px solid #fff; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: 0 0 0 2px #000; }
.crest { width: 58px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 4px var(--ink); color: #fff; font-family: var(--display); font-size: 1.1rem; font-weight: 900; line-height: .8; text-align: center; }
.brand-name { display: grid; font-family: var(--display); font-size: 1.16rem; font-weight: 900; line-height: .9; }
.brand-name small { margin-top: 6px; font-family: var(--body); font-size: .55rem; font-weight: 700; letter-spacing: .16em; }
.nav-list { margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-list a { font-size: .76rem; font-weight: 700; letter-spacing: .07em; }
.nav-list a:hover { color: #ff5964; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; color: #fff; font-size: 1.5rem; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #111; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,.62) 36%, rgba(5,5,5,.12) 70%), linear-gradient(0deg, rgba(5,5,5,.85), transparent 45%); z-index: 1; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; transform: scale(1.04); animation: heroZoom 12s ease-out forwards; }
.hero-inner { position: relative; z-index: 2; width: var(--wrap); margin-inline: auto; padding: 160px 0 88px; }
.hero-crest { width: 108px; height: 108px; margin-bottom: 24px; border: 4px solid #fff; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: 0 12px 40px rgba(0,0,0,.35); animation: rise .65s ease both; }
.hero-kicker { margin: 0 0 20px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .18em; animation: rise .7s ease both; }
.hero-kicker::before { content: ""; width: 42px; height: 3px; background: var(--red); }
.hero h1 { margin: 0; max-width: 760px; font-family: var(--display); font-size: clamp(4.5rem, 10vw, 9.5rem); font-weight: 900; letter-spacing: 0; line-height: .76; animation: rise .85s .08s ease both; }
.hero h1 span { color: var(--red); }
.hero-copy { max-width: 500px; margin: 28px 0 34px; color: #e6e4e0; font-size: clamp(1rem, 1.5vw, 1.2rem); animation: rise .85s .16s ease both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .85s .24s ease both; }
.hero-tag { position: absolute; right: 0; bottom: 44px; z-index: 2; padding: 14px 24px; border-left: 4px solid var(--red); background: rgba(0,0,0,.72); font-family: var(--display); font-size: 1.35rem; font-weight: 800; }

.score-band { background: var(--red); color: #fff; }
.score-inner { width: var(--wrap); min-height: 126px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 28px; }
.score-label { font-size: .69rem; font-weight: 800; letter-spacing: .14em; opacity: .82; }
.team { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1; }
.team--away { justify-content: flex-end; text-align: right; }
.team-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; font-size: .65rem; }
.team-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.score { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(3.6rem, 6vw, 5.6rem); font-weight: 900; line-height: 1; }
.score small { font-family: var(--body); font-size: .8rem; font-weight: 600; opacity: .75; }
.match-meta { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.35); font-size: .78rem; line-height: 1.7; }

.story { padding: 140px 0; background: var(--paper); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 9vw; align-items: end; }
.story-copy { max-width: 540px; }
.story-copy p { margin: 0 0 20px; color: #444; font-size: 1.05rem; }
.story-copy strong { color: var(--ink); }
.year { font-family: var(--display); font-size: clamp(7rem, 16vw, 14rem); font-weight: 900; letter-spacing: 0; line-height: .64; color: transparent; -webkit-text-stroke: 2px var(--red); }
.year-caption { margin-top: 28px; padding-top: 20px; border-top: 1px solid #bbb6ae; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.identity-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-top: 52px; }
.story-logo { width: 154px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.identity-year { flex: 1; }
.club-facts { border-top: 1px solid #d0ccc5; border-bottom: 1px solid #d0ccc5; background: #fff; }
.club-facts-inner { width: var(--wrap); margin: auto; display: grid; grid-template-columns: 1.45fr .8fr .8fr .9fr; }
.club-fact { min-height: 124px; padding: 28px 34px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #d0ccc5; }
.club-fact:last-child { border-right: 1px solid #d0ccc5; }
.club-fact span { margin-bottom: 7px; color: #77736e; font-size: .67rem; font-weight: 800; letter-spacing: .12em; }
.club-fact strong { font-family: var(--display); font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1; }

.history { padding: 130px 0; background: #e9e5de; }
.history-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); gap: 9vw; align-items: start; }
.history-copy { position: sticky; top: 40px; }
.history-copy .section-title { margin-bottom: 36px; }
.history-copy > p:not(.eyebrow) { max-width: 620px; margin: 0 0 18px; color: #494641; }
.source-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding-bottom: 5px; border-bottom: 2px solid var(--red); font-size: .78rem; font-weight: 800; }
.history-timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid #bbb5ac; }
.history-timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid #bbb5ac; }
.history-timeline time { color: var(--red); font-family: var(--display); font-size: 2rem; font-weight: 900; line-height: 1; }
.history-timeline p { margin: 0; color: #34312d; }

.club-team { padding: 120px 0; background: var(--ink); color: #fff; }
.club-team-head { margin-bottom: 54px; }
.club-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leadership-group { min-width: 0; padding: 42px 46px 46px 0; }
.leadership-group + .leadership-group { padding-right: 0; padding-left: 46px; border-left: 1px solid var(--line); }
.leadership-group h3 { margin: 0 0 34px; color: #8d8d8d; font-size: .75rem; letter-spacing: .12em; }
.leader-primary { display: grid; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.leader-primary span, .leadership-list span { color: #aaa9a6; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.leader-primary strong { margin: 8px 0; font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 4.8rem); line-height: .9; }
.leadership-list { margin: 0; padding: 0; list-style: none; }
.leadership-list li { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(180px, 1fr); gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.leadership-list strong { font-family: var(--display); font-size: 1.55rem; line-height: 1; }

.fixtures { padding: 120px 0; background: var(--ink); color: #fff; }
.fixtures-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.match-list { border-top: 1px solid var(--line); }
.match-row { display: grid; grid-template-columns: 110px 1fr 130px; gap: 30px; align-items: center; min-height: 106px; border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.match-row:hover { padding-inline: 18px; background: #18181a; }
.match-date { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .05em; }
.match-teams { display: grid; grid-template-columns: 1fr 75px 1fr; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 800; }
.match-teams span:last-child { text-align: right; }
.match-result { color: var(--red); font-size: 2.4rem; text-align: center; }
.match-status { justify-self: end; padding: 7px 12px; border: 1px solid #3c3c3e; color: #c7c7c7; font-size: .65rem; font-weight: 800; letter-spacing: .08em; }

.academy { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 760px; background: #fff; }
.academy-media { position: relative; min-height: 640px; overflow: hidden; }
.academy-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.academy:hover .academy-media img { transform: scale(1.025); }
.academy-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 8vw, 120px); }
.academy-content .section-title { font-size: clamp(3.5rem, 7vw, 7rem); }
.academy-content > p { max-width: 530px; margin: 30px 0; color: #4c4c4c; }
.age-list { margin: 0 0 36px; padding: 24px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid #d6d2cb; border-bottom: 1px solid #d6d2cb; list-style: none; font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.age-list li:not(:last-child)::after { content: "/"; margin-left: 24px; color: var(--red); }

.gallery { padding: 120px 0; background: var(--paper); }
.gallery-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: end; gap: 10px 60px; margin-bottom: 48px; }
.gallery-head .eyebrow { grid-column: 1 / -1; }
.gallery-head > p:last-child { margin: 0 0 8px; color: #57544f; }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); align-items: start; gap: 28px; }
.gallery-featured { margin: 0; min-width: 0; }
.gallery-featured a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #171719; }
.gallery-featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-featured a:hover img { transform: scale(1.025); }
.gallery-featured figcaption { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid #cbc7bf; }
.gallery-featured figcaption strong { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.gallery-featured figcaption span { color: #6b6862; font-size: .75rem; text-align: right; }
.gallery-social { display: grid; gap: 24px; min-width: 0; }
.gallery-social .instagram-media { width: 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; }
.gallery-profile-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding-bottom: 5px; border-bottom: 2px solid var(--red); font-weight: 800; }

.cta { padding: 120px 0; background: var(--red); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.cta .section-title { max-width: 900px; }
.cta .button { background: #fff; color: var(--ink); }
.cta .button:hover { background: var(--ink); color: #fff; }

.site-footer { padding: 78px 0 28px; background: #080809; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; padding-bottom: 60px; }
.footer-brand p { max-width: 390px; color: #aeadab; }
.footer-brand .official-logo { width: 76px; height: 76px; }
.footer-title { margin: 0 0 18px; font-size: .72rem; letter-spacing: .12em; color: #777; }
.footer-list { margin: 0; padding: 0; list-style: none; color: #d2d1cf; }
.footer-list li + li { margin-top: 9px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #777; font-size: .72rem; }

.inner-page { padding: 160px 0 100px; min-height: 70svh; }
.entry-content { max-width: 780px; font-size: 1.05rem; }
.entry-content h1, .entry-title { font-family: var(--display); font-size: clamp(3rem, 8vw, 6rem); line-height: .9; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  :root { --wrap: min(100% - 28px, 720px); }
  .site-header { position: absolute; }
  .header-inner { min-height: 78px; }
  .crest { width: 48px; }
  .official-logo, .custom-logo { width: 52px; height: 52px; }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav { position: fixed; inset: 78px 0 0; padding: 40px 24px; background: rgba(8,8,9,.98); transform: translateX(100%); transition: transform .25s ease; }
  .menu-open .site-nav { transform: none; }
  .nav-list { align-items: stretch; flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 17px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.7rem; }
  .hero { min-height: 820px; }
  .hero-inner { padding: 140px 0 94px; }
  .hero h1 { font-size: clamp(4.1rem, 18vw, 7rem); }
  .hero-crest { width: 84px; height: 84px; }
  .hero-tag { right: 14px; bottom: 22px; font-size: 1rem; }
  .score-inner { padding: 28px 0; grid-template-columns: 1fr auto 1fr; }
  .score-label { grid-column: 1 / -1; }
  .match-meta { display: none; }
  .team { font-size: 1.25rem; }
  .team-mark { display: none; }
  .story { padding: 90px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 70px; }
  .identity-row { margin-top: 36px; }
  .club-facts-inner { grid-template-columns: 1fr 1fr; }
  .club-fact:nth-child(3) { border-top: 1px solid #d0ccc5; }
  .club-fact:nth-child(4) { border-top: 1px solid #d0ccc5; }
  .history { padding: 90px 0; }
  .history-layout { grid-template-columns: 1fr; gap: 70px; }
  .history-copy { position: static; }
  .club-team { padding: 90px 0; }
  .club-team-grid { grid-template-columns: 1fr; }
  .leadership-group, .leadership-group + .leadership-group { padding: 38px 0; }
  .leadership-group + .leadership-group { border-top: 1px solid var(--line); border-left: 0; }
  .fixtures { padding: 90px 0; }
  .match-row { grid-template-columns: 72px 1fr; gap: 16px; padding: 20px 0; }
  .match-teams { grid-template-columns: 1fr 52px 1fr; }
  .match-status { display: none; }
  .academy { grid-template-columns: 1fr; }
  .academy-media { min-height: 520px; }
  .academy-content { padding: 74px 24px; }
  .gallery { padding: 90px 0; }
  .gallery-head { grid-template-columns: 1fr; }
  .gallery-head .eyebrow { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 1rem; }
  .story-logo { width: 116px; }
  .club-facts-inner { grid-template-columns: 1fr; }
  .club-fact { min-height: 104px; padding: 24px 14px; border-right: 0; }
  .club-fact + .club-fact { border-top: 1px solid #d0ccc5; }
  .history-timeline li { grid-template-columns: 88px 1fr; gap: 14px; }
  .history-timeline time { font-size: 1.55rem; }
  .leadership-list li { grid-template-columns: 1fr; gap: 6px; }
  .hero { min-height: 760px; }
  .hero::before { background: linear-gradient(90deg, rgba(5,5,5,.88), rgba(5,5,5,.25)), linear-gradient(0deg, rgba(5,5,5,.92), transparent 65%); }
  .hero-media { object-position: 66% center; }
  .hero h1 { font-size: clamp(3.8rem, 19vw, 5.8rem); }
  .hero-actions .button { width: 100%; }
  .hero-tag { display: none; }
  .score-inner { gap: 12px; }
  .team { font-size: 1rem; }
  .score { gap: 6px; font-size: 3.4rem; }
  .score small { display: none; }
  .fixtures-head { align-items: start; flex-direction: column; }
  .match-row { grid-template-columns: 1fr; }
  .match-date { padding-top: 8px; }
  .match-teams { font-size: 1.1rem; }
  .academy-media { min-height: 410px; }
  .age-list li:not(:last-child)::after { display: none; }
  .gallery-social { grid-template-columns: 1fr; }
  .gallery-featured figcaption { align-items: start; flex-direction: column; gap: 8px; }
  .gallery-featured figcaption span { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
