/* ═══════════════════════════════════════════════════════════════
   YYBD — main.css  |  besiktas.lacivertmedya.com
═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --black:   #080808;
  --white:   #f4f4f2;
  --grey-1:  #141414;
  --grey-2:  #222;
  --grey-3:  #555;
  --grey-4:  #888;
  --grey-5:  #e8e8e6;
  --accent:  #e8002d;
  --font-display: 'Bebas Neue', cursive;
  --font-body:    'Inter', sans-serif;
  --radius:  5px;
  --tr:      .25s ease;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --container: 1180px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--black); overflow-x: hidden; line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Container ───────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; font-family: var(--font-body); font-size: 14px;
  font-weight: 600; letter-spacing: .04em; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; transition: var(--tr);
  white-space: nowrap;
}
.btn-primary     { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #c0001f; border-color: #c0001f; transform: translateY(-1px); }
.btn-dark        { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover  { background: var(--accent); border-color: var(--accent); }
.btn-outline     { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-outline-hero { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-hero:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 36px; font-size: 15px; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black); border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  display: flex; align-items: center; height: 70px; gap: 36px;
}

/* LOGO — kare logo için yükseklik 150px, header'a sığsın diye max 60px */
.logo        { display: flex; align-items: center; flex-shrink: 0; }
.logo-img    { max-height: 58px; max-width: 220px; width: auto; object-fit: contain; }
.logo-text   { font-family: var(--font-display); font-size: 22px; color: #fff; letter-spacing: .08em; }

.nav-main { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-main a {
  font-size: 13px; font-weight: 500; color: #888;
  transition: color var(--tr); letter-spacing: .02em;
}
.nav-main a:hover, .nav-main a.active { color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; transition: var(--tr); }

/* ── Flash messages ──────────────────────────────────────────── */
.flash-container { position: fixed; top: 80px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; border-radius: var(--radius); font-size: 14px; min-width: 300px;
  box-shadow: var(--shadow);
}
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-error   { background: #f8d7da; color: #721c24; border-left: 4px solid var(--accent); }
.flash-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.flash button  { background: none; border: none; font-size: 18px; cursor: pointer; opacity: .6; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--black);
  /* background-image eklenmişse CSS'teki renk gizlenir */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Görsel olmadığında gradient arka plan */
.hero:not(.hero-has-bg) {
  background: radial-gradient(ellipse 80% 60% at 15% 60%, rgba(232,0,45,.12) 0%, transparent 55%),
              radial-gradient(ellipse 60% 80% at 85% 20%, rgba(200,160,70,.06) 0%, transparent 50%),
              linear-gradient(160deg, #0d0d0d 0%, #080808 60%, #0a0005 100%);
}
/* Görsel varken karartma overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .60);
  z-index: 1;
}
/* Görsel yoksa overlay şeffaf */
.hero:not(.hero-has-bg) .hero-overlay {
  background: transparent;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,0,45,.15); border: 1px solid rgba(232,0,45,.3);
  color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; padding: 7px 16px; border-radius: 20px; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 110px);
  line-height: .92; color: #fff; margin-bottom: 20px;
}
.hero-sub   { font-size: clamp(15px, 2vw, 18px); color: #aaa; max-width: 520px; line-height: 1.7; margin-bottom: 40px; }
.hero-cta   { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Sections ─────────────────────────────────────────────────── */
.section      { padding: 88px 0; }
.section-dark { background: var(--black); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-link  { color: #444; }
.section-dark .section-link:hover { color: var(--accent); }

.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 44px; flex-wrap: wrap; gap: 10px; }
.section-title  { font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); line-height: .95; }
.section-link   { font-size: 13px; font-weight: 600; color: var(--grey-3); transition: color var(--tr); }
.section-link:hover { color: var(--accent); }

/* ── Cards ────────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--grey-5); border-radius: 8px;
  overflow: hidden; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.09); border-color: #d5d5d3; }
.card-img {
  aspect-ratio: 16/9; overflow: hidden; background: var(--grey-5);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--grey-5); font-size: 40px; }
.card-body  { padding: 22px; }
.card-date  { font-size: 11px; color: var(--grey-3); text-transform: uppercase; letter-spacing: .1em; }
.card-title { font-family: var(--font-display); font-size: 22px; line-height: 1.1; margin: 8px 0 14px; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 14px; color: var(--grey-3); line-height: 1.6; margin-bottom: 14px; }
.card-link  { font-size: 12px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.card-link::after { content: '→'; transition: transform var(--tr); }
.card:hover .card-link::after { transform: translateX(4px); }

/* ── Yönetim Kurulu ─────────────────────────────────────────── */
.board-president-wrap  { display: flex; justify-content: center; margin-bottom: 48px; }
.board-card-president  { max-width: 400px; width: 100%; flex-direction: row; gap: 24px; align-items: center; padding: 28px; }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.board-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 20px; border: 1px solid var(--grey-5); border-radius: 8px;
  background: var(--white); transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.board-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.09); border-color: #d5d5d3; }
.board-photo {
  position: relative; width: 130px; height: 130px; border-radius: 50%;
  overflow: hidden; background: var(--grey-5); flex-shrink: 0; margin-bottom: 16px;
}
.board-card-president .board-photo { width: 100px; height: 100px; margin-bottom: 0; }
.board-photo img { width: 100%; height: 100%; object-fit: cover; }
.board-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 48px; background: var(--grey-5);
}
.board-president-badge {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px;
  border-radius: 0 0 4px 4px; white-space: nowrap;
}
.board-info  { display: flex; flex-direction: column; gap: 6px; }
.board-name  { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.board-title { font-size: 13px; color: var(--grey-3); }
.board-link  { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.board-divider { text-align: center; margin-bottom: 40px; position: relative; }
.board-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--grey-5); }
.board-divider span {
  position: relative; background: var(--white); padding: 0 20px;
  font-size: 12px; color: var(--grey-3); text-transform: uppercase;
  letter-spacing: .1em; font-weight: 600;
}
.board-detail { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.board-detail-photo img { width: 300px; height: 340px; object-fit: cover; border-radius: 8px; border: 1px solid var(--grey-5); }

/* Home Yönetim Kurulu önizleme */
.home-board { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.home-board-pres {
  display: flex; align-items: center; gap: 16px;
  background: var(--grey-1); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 16px 24px; transition: border-color var(--tr);
}
.home-board-pres:hover { border-color: rgba(232,0,45,.4); }
.home-board-pres img  { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.board-ph             { width: 72px; height: 72px; border-radius: 50%; background: var(--grey-2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.home-board-pres-info { display: flex; flex-direction: column; gap: 3px; }
.home-board-pres-info strong { color: #fff; font-size: 15px; }
.bp-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }
.bp-sub   { font-size: 13px; color: #555; }
.home-board-member {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; transition: var(--tr);
}
.home-board-member img  { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.board-ph-sm { width: 60px; height: 60px; border-radius: 50%; background: var(--grey-2); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.home-board-member strong { color: #ccc; font-size: 13px; }
.home-board-member span   { color: #555; font-size: 12px; }

/* ── Anlaşmalı Kurumlar ─────────────────────────────────────── */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.partner-card  {
  border: 1px solid var(--grey-5); border-radius: 8px; overflow: hidden; background: #fff;
  transition: box-shadow var(--tr), transform var(--tr);
}
.partner-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.partner-logo-wrap  { padding: 28px; display: flex; align-items: center; justify-content: center; background: var(--grey-5); min-height: 130px; }
.partner-logo       { max-height: 90px; max-width: 200px; object-fit: contain; }
.partner-logo-placeholder { font-family: var(--font-display); font-size: 32px; color: var(--grey-3); text-align: center; }
.partner-body       { padding: 20px; }
.partner-name       { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.partner-desc       { font-size: 14px; color: var(--grey-3); line-height: 1.6; margin-bottom: 12px; }
.partner-link       { font-size: 13px; font-weight: 600; color: var(--accent); }

.partners-home { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.partner-home-item {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 24px; border: 1px solid var(--grey-5); border-radius: 6px;
  min-width: 140px; min-height: 76px; transition: var(--tr);
}
.partner-home-item:hover { border-color: var(--black); }
.partner-home-item img  { max-height: 50px; max-width: 160px; object-fit: contain; filter: grayscale(30%); transition: filter var(--tr); }
.partner-home-item:hover img { filter: none; }
.partner-home-item span { font-size: 14px; font-weight: 600; color: var(--grey-3); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer { background: #050505; color: #444; padding: 64px 0 0; border-top: 1px solid rgba(255,255,255,.04); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; margin-bottom: 48px; }

/* Footer logo — kare logo için yükseklik */
.footer-logo-img { max-height: 150px; max-width: 200px; width: auto; object-fit: contain; margin-bottom: 12px; filter: brightness(0) invert(.8); }
.footer-tagline  { font-family: var(--font-display); font-size: 18px; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.footer-sub      { font-size: 13px; color: #333; line-height: 1.6; }
.footer-links h4 { font-family: var(--font-display); font-size: 17px; color: #fff; margin-bottom: 16px; }
.footer-links a  { display: block; font-size: 13px; margin-bottom: 9px; color: #444; transition: color var(--tr); }
.footer-links a:hover { color: #fff; }
.footer-social h4 { font-family: var(--font-display); font-size: 17px; color: #fff; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.07); border-radius: 50%; font-size: 11px;
  font-weight: 700; color: #555; transition: var(--tr);
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #222; flex-wrap: wrap; gap: 8px; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--grey-3); }
.form-input  { width: 100%; padding: 11px 14px; font-family: var(--font-body); font-size: 14px; background: #fff; border: 1.5px solid var(--grey-5); border-radius: var(--radius); outline: none; transition: border-color var(--tr); }
.form-input:focus { border-color: var(--black); }
.form-input::placeholder { color: var(--grey-4); }
textarea.form-input { resize: vertical; min-height: 120px; }
.errors-list { background: #fff0f0; border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.errors-list li { font-size: 14px; color: #721c24; list-style: none; }

/* ── Page header ─────────────────────────────────────────────── */
.page-header { background: var(--black); color: #fff; padding: 56px 0; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 72px); }
.breadcrumb  { font-size: 13px; color: #444; margin-bottom: 10px; }
.breadcrumb a { color: #444; transition: color var(--tr); }
.breadcrumb a:hover { color: #fff; }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--grey-5); border-radius: var(--radius); font-size: 14px;
  font-weight: 500; transition: var(--tr);
}
.page-btn:hover, .page-btn.active { background: var(--black); color: #fff; border-color: var(--black); }

/* ── Auth pages ───────────────────────────────────────────────── */
.auth-page  { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card  { background: #fff; border: 1px solid var(--grey-5); border-radius: 8px; padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.auth-title { font-family: var(--font-display); font-size: 36px; margin-bottom: 8px; }
.auth-sub   { font-size: 14px; color: var(--grey-3); margin-bottom: 32px; }

/* ── Utility ─────────────────────────────────────────────────── */
.prose      { line-height: 1.85; font-size: 16px; }
.prose p    { margin-bottom: 16px; }
.empty-text { color: var(--grey-4); font-style: italic; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .board-grid    { grid-template-columns: 1fr 1fr; }
  .board-detail  { grid-template-columns: 1fr; gap: 28px; }
  .board-detail-photo img { width: 100%; height: 240px; }
  .board-card-president   { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .nav-main { display: none; }
  .nav-main.nav-open {
    display: flex; flex-direction: column; position: fixed;
    inset: 70px 0 0; background: rgba(8,8,8,.98); z-index: 99;
    justify-content: center; align-items: center; gap: 32px;
  }
  .nav-main.nav-open a { font-size: 20px; color: #fff; }
  .burger { display: flex; margin-left: auto; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .board-grid  { grid-template-columns: 1fr; }
  .section     { padding: 60px 0; }
  .hero-inner  { padding: 80px 0; }
}
