/* Folktur Dernek Şablonu — Dreamweaver uyumlu (HTML/CSS/JS)
   Renkleri kolay değiştirmeniz için değişkenler kullanıldı. */

:root{
  --bg: #0b1220;
  --bg-2:#111827;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --primary:#ff0000; /* vurgu rengi */
  --primary-2:#ff3b3b;
  --border: rgba(255,255,255,0.10);
  --shadow: 0 12px 30px rgba(0,0,0,0.35);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(185,28,28,0.25), transparent 55%),
              radial-gradient(1000px 650px at 85% 15%, rgba(239,68,68,0.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; height:auto; display:block; }
.container{ width: min(100% - 32px, var(--max)); margin-inline:auto; }

.topbar{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,0.65);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand{
  display:flex; align-items:center; gap: 12px;
  font-weight: 800; letter-spacing: 0.5px;
}
.logo-wrap{
  width: 250px;
  height: 150px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  display:grid; place-items:center;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.logo-wrap img{
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.site-title small {
  font-size: 20px;   /* küçüldü */
  font-weight: 600;
  opacity: 0.7;      /* geri planda */
}


.menu{
  display:flex; gap: 18px; align-items:center;
}
.menu a{
  color: var(--text);
  font-weight: 600;
  opacity: 0.9;
}
.menu a:hover{ opacity: 1; }

.actions{ display:flex; gap: 10px; align-items:center; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
}
.btn:hover{ background: rgba(255,255,255,0.08); }
.btn.primary{
  border-color: rgba(185,28,28,0.45);
  background: linear-gradient(135deg, rgba(185,28,28,0.95), rgba(239,68,68,0.85));
  box-shadow: var(--shadow);
}
.btn.primary:hover{ filter: brightness(1.02); }

.hamburger{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.hamburger span{ display:block; width: 18px; height:2px; background: var(--text); margin: 4px auto; opacity:0.9; }

.hero{
  padding: 58px 0 28px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items:center;
}
.kicker{
  display:inline-flex; gap: 10px; align-items:center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 650;
}
.kicker b{ color: var(--text); }
h1{
  margin: 16px 0 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.6px;
}
.lead{
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.card{
  background: rgba(15,23,42,0.70);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card{
  overflow:hidden;
}
.hero-card .media{
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.hero-card .body{ padding: 16px; }
.meta{
  display:flex; flex-wrap:wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}
.meta span{
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.section{
  padding: 34px 0;
}
.section h2{
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.3px;
}
.section p{ margin: 0; color: var(--muted); line-height: 1.7; }
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items:start;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature{
  padding: 16px;
}
.feature h3{ margin: 10px 0 6px; }
.feature p{ margin:0; }
.icon{
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(185,28,28,0.18);
  border: 1px solid rgba(185,28,28,0.28);
  display:grid; place-items:center;
  font-weight: 900;
  color: #fecaca;
}

.events .event{
  padding: 16px;
  display:flex;
  gap: 14px;
}
.event .date{
  width: 86px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  text-align:center;
  padding: 10px 8px;
  flex: 0 0 auto;
}
.date b{ display:block; font-size: 22px; }
.date small{ color: var(--muted); font-weight: 700; }
.event .info h3{ margin: 0 0 6px; }
.event .info .line{ color: var(--muted); font-weight: 650; }

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.g1{ grid-column: span 7; }
.g2{ grid-column: span 5; }
.g3{ grid-column: span 5; }
.g4{ grid-column: span 7; }
.gallery .card{ overflow:hidden; }
.gallery .card .media{ aspect-ratio: 16/10; }

.team .member{
  padding: 16px;
}
.member .row{
  display:flex; gap: 24px; align-items:center;
}
.avatar{
  width: 150px; height: 150px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow:hidden;
  background: rgba(255,255,255,0.03);
}
.member h3{ margin: 0; }
.member small{ color: var(--muted); font-weight: 650; }

.contact .form{
  padding: 16px;
}
.field{
  display:flex; flex-direction:column;
  gap: 6px;
  margin-bottom: 12px;
}
label{ font-weight: 700; color: var(--text); }
input, textarea{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(239,68,68,0.55);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.10);
}
textarea{ min-height: 120px; resize: vertical; }

.footer{
  padding: 26px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer-grid{
  display:flex;
  gap: 14px;
  justify-content:space-between;
  flex-wrap: wrap;
}
.footer a{ text-decoration: underline; text-underline-offset: 3px; }

.notice{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(6, 1fr); }
  .g1,.g2,.g3,.g4{ grid-column: span 6; }
  .menu{ display:none; }
  .hamburger{ display:inline-grid; place-items:center; }
  .menu.open{
    display:flex;
    flex-direction:column;
    position:absolute;
    left: 0; right: 0;
    top: 64px;
    padding: 14px 16px;
    background: rgba(11,18,32,0.92);
    border-bottom: 1px solid var(--border);
  }
}


/* Projeler + Galeri (Final) */
.gallery2{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gallery2 a{
  grid-column: span 4;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.gallery2 img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
@media (max-width: 900px){
  .gallery2 a{ grid-column: span 6; }
  .gallery2 img{ height: 180px; }
}
@media (max-width: 520px){
  .gallery2 a{ grid-column: span 12; }
  .gallery2 img{ height: 200px; }
}
.social-links img {
  width: 55px;
  height: 55px;
  opacity: .75;
  transition: .3s;
}
.social-links img:hover {
  opacity: 1;
  transform: scale(1.1);
}
/* Menü tıklayınca sticky topbar'ın başlığı örtmemesi için */
html{
  scroll-padding-top: 180px;
  scroll-behavior: smooth;
}
/* =========================
   MOBILE IMPROVEMENTS
   ========================= */

/* 0) Genel: kutu taşmalarını engelle */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* 1) Topbar yüksekliği değiştiğinde anchor kaymasını düzelt */
:root { --topbar-h: 76px; } /* gerekirse 64/72/80 deneyebilirsin */
section, [id] { scroll-margin-top: calc(var(--topbar-h) + 14px); }

/* 2) Logo + yazıyı mobilde üst üste ve dengeli yap */
@media (max-width: 768px){
  .topbar { position: sticky; top: 0; z-index: 50; }
  .nav { padding: 10px 0; gap: 10px; }

  .brand{
    display:flex;
    align-items:center;
    gap: 10px;
    min-width: 0; /* taşmayı keser */
  }

  .brand .logo-wrap,
  .brand img{
    width: 44px; height: 44px; /* logo büyüklüğü */
    flex: 0 0 auto;
  }

  .brand span{
    display:block;
    min-width: 0;
  }

  .brand span strong,
  .brand-title,
  .brand .name{
    font-size: 32px;           /* FOLKTUR */
    line-height: 1.05;
  }

  .brand small{
    font-size: 13px;           /* küçük kalsın */
    opacity: .85;
    display:block;
    margin-top: 4px;
  }
}

/* 3) Menü: mobilde taşmasın (wrap + küçük boşluk) */
@media (max-width: 768px){
  .nav-links, .menu, nav ul{
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
  }
  .nav a, nav a{
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* 4) Grid/kartlar: 3 sütundan 1 sütuna düşür */
@media (max-width: 768px){
  .grid-3, .grid-4, .cards, .team-grid, .projects-grid, .gallery-grid{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* ekip kartı içindeki görseli büyütmek */
  .team-card img, .avatar img{
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
  }
}

/* 5) Hero / başlıklar mobilde daha okunur */
@media (max-width: 768px){
  .hero{
    padding-top: 26px;
    padding-bottom: 18px;
  }
  .hero h1, .title-xl{
    font-size: 34px;
    line-height: 1.15;
  }
  .hero p, .subtitle{
    font-size: 16px;
    line-height: 1.5;
  }
}

/* 6) Form alanları: tam genişlik */
@media (max-width: 768px){
  .form .field input,
  .form .field textarea,
  form input, form textarea{
    width: 100%;
  }
  textarea{ min-height: 120px; }
}
/* ============ MOBILE FIXES ============ */
@media (max-width: 768px){

  /* Genel taşmayı engelle */
  html, body { overflow-x: hidden; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* Topbar daha kompakt olsun */
  .topbar .nav { padding: 10px 0; gap: 10px; }

  /* Marka/Logo alanı: üst üste diz, ortala */
  .brand{
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Eğer brand içinde logo + yazı ayrıysa */
  .brand .logo-wrap,
  .brand .logo{
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
  }

  /* FOLKTUR yazısı ve alt yazı mobilde taşmasın */
  .brand .brand-text,
  .brand .title{
    min-width: 0; /* taşma kilidi */
  }

  .brand h1,
  .brand .brand-title{
    font-size: 34px;
    line-height: 1.05;
    margin: 0;
  }

  .brand small,
  .brand .subtitle{
    font-size: 14px;
    line-height: 1.2;
    opacity: .85;
  }

  /* HERO (üst giriş) grid ise tek kolona düşür */
  .hero,
  .hero-grid{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Sağdaki görsel kutusu mobilde taşmasın */
  .hero .media,
  .hero .right,
  .hero .hero-media{
    width: 100%;
  }

  .hero img{
    max-width: 100%;
    height: auto;
    display: block;
  }
}
/* === MOBİL HEADER DÜZENİ === */
@media (max-width: 768px){

  .brand{
    align-items: center;
    gap: 12px;
  }

  .brand-text{
    gap: 4px;
  }

  .brand-title{
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 1px;
  }

  .brand-subtitle{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
  }

  .brand-subtitle .line{
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.35);
    max-width: 28px;
  }
}
/* =========================
   MOBİL ÜST BAR TOPARLAMA
   (PC'yi bozmaz)
========================= */
@media (max-width: 640px){

  /* Üst bar biraz daha sıkı */
  .topbar .nav{
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }

  /* Logo + yazı aynı blokta, taşma yapmasın */
  .brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width: 0; /* çok önemli: yazı taşmasını toparlar */
    flex: 1;
  }

  /* Logo mobilde ideal boy */
  .logo-wrap{
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 14px;
  }
  .logo-wrap img{
    width:100%;
    height:100%;
    object-fit: contain;
    display:block;
  }

  /* FOLKTUR + alt yazı daha derli toplu */
  .site-title{
    margin:0;
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: .5px;
    white-space: nowrap;
  }

  .site-title small{
    display:block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
    opacity: .9;
    white-space: normal;
  }

  /* Hamburger sağda kalsın */
  .hamburger{
    margin-left: auto;
  }

  /* Katıl / Destek Ol butonları mobilde alt satıra, yan yana */
  .actions{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .actions .btn{
    width: 100%;
    justify-content: center;
    padding: 12px 10px;
  }

  /* Menü açıkken taşma olmasın */
  .menu{
    width: 100%;
  }
}
@media (max-width: 640px){
  .nav{ flex-wrap: wrap; }

  .brand{ flex:1; min-width:0; }

  .logo-wrap{ width:64px; height:64px; border-radius:16px; }
  .logo-wrap img{ width:130px; height:auto; }

  .site-title{ margin:0; font-size:26px; line-height:1.05; }
  .site-title small{ display:block; font-size:12px; line-height:1.2; opacity:.8; }

  .actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:10px;
  }
  .actions .btn{ width:100%; justify-content:center; }
}
/* Logo çerçevesi sabit */
.logo-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Kırmızı logo büyütme */
.logo-wrap img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: center;
}
/* Yönetim kurulu fotoğraf çerçevesi */
.team-card .avatar{
  width: 85px;          /* çerçeve aynı */
  height: 85px;
  border-radius: 16px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fotoğrafı büyüt */
.team-card .avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ASIL OLAY BU */
}
/* === YÖNETİM KURULU RESİMLERİ DÜZELTME === */

#team .avatar{
  width: 96px;          /* ÇERÇEVE BOYUTU */
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

#team .avatar img{
  width: 150%;
  height: 150%;
  object-fit: cover;    /* FOTOĞRAFI DOLDURUR */
  object-position: center;
  display: block;
}
/* ===== LIGHTBOX ===== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active{
  display: flex;
}

.lightbox-img{
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.lightbox-close{
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
/* Tıklayınca büyüyecek resim kapsayıcısı */
.img-zoom{
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

/* Resim normal hali */
.img-zoom img{
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .25s ease;
}

/* Hover'da sadece ikon görünsün (büyütme yok) */
.img-zoom::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  opacity:0;
  transition: opacity .2s ease;
  pointer-events:none;
}

.img-zoom::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:44px;
  height:44px;
  transform: translate(-50%,-50%) scale(.92);
  opacity:0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M16.5 16.5 21 21' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:44px 44px;
}

.img-zoom:hover::after{ opacity: 1; }
.img-zoom:hover::before{
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}

/* TIKLAYINCA büyüsün */
.img-zoom.is-zoomed{
  cursor: zoom-out;
}
.img-zoom.is-zoomed img{
  transform: scale(1.25); /* büyütme miktarı (1.12-1.25 arası oynayabilirsin) */
}
/* === TIKLA-BÜYÜT (INLINE ZOOM) === */
.img-zoom{
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

/* normal resim */
.img-zoom img{
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform .25s ease;
}

/* hover ikon + karartma */
.img-zoom::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  opacity:0;
  transition: opacity .2s ease;
  pointer-events:none;
}

.img-zoom::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:44px;
  height:44px;
  transform: translate(-50%,-50%) scale(.9);
  opacity:0;
  transition: all .2s ease;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M20 20L17 17' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:44px 44px;
}

.img-zoom:hover::after,
.img-zoom:hover::before{
  opacity:1;
}

/* ZOOM AÇIKKEN */
.img-zoom.is-open{
  cursor: zoom-out;
}
.img-zoom.is-open img{
  transform: scale(1.2);
}

/* X kapatma butonu */
.img-zoom .zoom-close{
  position:absolute;
  top:8px;
  right:8px;
  width:32px;
  height:32px;
  border-radius:50%;
  background: rgba(0,0,0,.7);
  color:#fff;
  font-size:22px;
  line-height:32px;
  text-align:center;
  cursor:pointer;
  display:none;
  z-index:5;
}

.img-zoom.is-open .zoom-close{
  display:block;
}
<link rel="stylesheet" href="css/test.css">
