/* ============================================
   Mehmet Güneş Açıkgöz — Ana Stil
   Tema: Açık / Minimal, Klasik Tipografi
   ============================================ */

:root {
    --bg: #f9f7f4;
    --bg-light: #f2f0ec;
    --surface: #ffffff;
    --border: #e2ddd6;
    --text: #1a1714;
    --text-muted: #6b6560;
    --accent: #8b6e4e;
    --accent-light: #c4a882;
    --accent-dark: #5c4733;
    --navy: #2c3e50;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Karla', sans-serif;
    --radius: 4px;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
    --max-w: 1200px;
    --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;

}


/* --- SAYFA YUMUŞAK GEÇİŞ (SPA) EFEKTİ --- */
#sayfa-icerigi {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* JavaScript geçiş anında bu sınıfı ekleyip eski içeriği yumuşakça gizleyecek */
#sayfa-icerigi.sayfa-cikisi {
    opacity: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* ── TYPOGRAPHY ── */
.section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.section-header .section-title { margin-bottom: 0; }

/* ── HEADER / NAV ── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(249, 247, 244, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo { display: flex; flex-direction: column; gap: 1px; }
.logo-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.logo-title { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all var(--transition);
}

/* Sosyal Medya İkonları — Header */
.nav-social {
    display: flex;
    flex-direction: row; /* İkonları yan yana dizer */
    align-items: center; /* Dikeyde ortalar */
    gap: 15px; /* İkonlar arasına 15 piksel boşluk bırakır (isteğinize göre değiştirebilirsiniz) */
}

/* İkonların yapısını garanti altına almak için */
.nav-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease; /* Üzerine gelince hafif solma efekti için hazırlık */
}

.nav-social-icon img {
    width: 20px; /* Buradaki değeri isteğinize göre değiştirebilirsiniz (örn: 18px, 16px) */
    height: auto; /* Yüksekliğin genişlikle orantılı olarak otomatik küçülmesini sağlar */
}

.nav-social-icon:hover {
    opacity: 0.8; /* Fareyle üzerine gelince biraz şeffaflaşır */
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 120px 32px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(196, 168, 130, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(139, 110, 78, 0.08) 0%, transparent 60%);
}

.hero::before {
    content: '♩';
    position: absolute;
    top: 15%;
    right: 8%;
    font-size: 180px;
    color: var(--border);
    opacity: 0.5;
    pointer-events: none;
    font-family: serif;
    animation: floatNote 8s ease-in-out infinite;
}

@keyframes floatNote {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    max-width: 800px;
    animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    animation: fadeUp 1s 0.2s ease both;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    color: var(--text);
    animation: fadeUp 1s 0.3s ease both;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 40px;
    font-style: italic;
    font-family: var(--font-display);
    animation: fadeUp 1s 0.4s ease both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s 0.5s ease both;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    padding: 13px 32px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    transition: all var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-secondary {
    display: inline-block;
    padding: 13px 32px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-sm:hover { background: var(--accent); color: #fff; }

.link-arrow {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}
.link-arrow:hover { color: var(--accent-dark); }

/* ── ABOUT SECTION ── */
.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Eğitim Listesi */
.edu-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 2px;
}
.edu-item:last-child { border-bottom: none; }
.edu-degree {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.edu-item strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.edu-item span { font-size: 14px; color: var(--text-muted); }
.edu-konu { font-size: 13px; color: var(--text-muted); font-style: italic; margin-top: 4px; }

/* ── CARDS ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.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;
    font-size: 3rem;
    color: var(--accent-light);
}
.card-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.card-body { padding: 20px 24px 24px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.card-year { font-size: 12px; color: var(--accent); font-weight: 500; display: block; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--text-muted); }

/* ── EVENTS ── */
.event-list { display: flex; flex-direction: column; gap: 1px; }
.event-item {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow var(--transition);
}
.event-item:hover { box-shadow: var(--shadow); }

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    background: var(--accent);
    color: #fff;
    padding: 8px;
    border-radius: var(--radius);
    text-align: center;
}
.event-day { font-family: var(--font-display); font-size: 1.8rem; font-weight: 300; line-height: 1; }
.event-month { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.event-info { flex: 1; }
.event-info h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.event-info span { font-size: 13px; color: var(--text-muted); }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-body { padding: 24px; }
.news-date { font-size: 12px; color: var(--accent); font-weight: 500; display: block; margin-bottom: 8px; }
.news-body h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.news-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

/* ── FOOTER ── */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); margin-top: 0; }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    padding: 48px 32px;
}

.footer-brand .logo-name { color: #fff; font-size: 1.3rem; }
.footer-brand p { font-size: 12px; margin-top: 4px; }

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }

.footer-social { display: flex; gap: 16px; justify-content: flex-end; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-social a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 32px;
    text-align: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ── PAGE HEADER ── */
.page-hero {
    padding: 140px 32px 60px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 12px;
}
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); letter-spacing: 0.04em; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── GALERI ── */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.galeri-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
    cursor: pointer;
}
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.galeri-item:hover img { transform: scale(1.06); }
.galeri-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 23, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay span { color: #fff; font-size: 2rem; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 32px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none;
}

/* ── ALERT ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffeaea; color: #c62828; border: 1px solid #ffcdd2; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-nav { justify-content: center; }
}

@media (max-width: 768px) {
    body { padding-top: 0; }
    .container { padding: 0 20px; }
    .section { padding: 60px 0; }

    .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px; gap: 16px; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-social { display: none; }

    .hero { padding: 100px 20px 80px; }
    .hero::before { display: none; }

    .card-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }

    .event-item { flex-direction: column; align-items: flex-start; gap: 16px; }
}