/* =============================================
   Attaleia Arşiv — Stil Dosyası (Güncellenmiş)
   ============================================= */

/* --- 0. RENK DEĞİŞKENLERİ (TEMA) --- */
:root {
    /* Varsayılan Tema: GECE MODU */
    --bg-main: #1a1a1a;
    --bg-secondary: #222222;
    --text-main: #F5F5F5;
    --text-secondary: #AAAAAA;
    --border-main: #333333;
    --bg-dropdown: #2a2a2a;
    --border-dropdown: #444444;
    --text-dropdown: #DDDDDD;
    --hover-dropdown: #3a3a3a;
    --text-hover-dropdown: #FFFFFF;
    --shadow-main: rgba(0, 0, 0, 0.5);
    --shadow-light: rgba(0, 0, 0, 0.2);
    --icon-filter: invert(1);
    --bg-input: #2a2a2a;
    --border-input: #444;
    --btn-bg: #F5F5F5;
    --btn-text: #1a1a1a;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --hero-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

html.light-mode {
    /* Gündüz Modu */
    --bg-main: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --text-main: #1a1a1a;
    --text-secondary: #666666;
    --border-main: #E5E5E5;
    --bg-dropdown: #FFFFFF;
    --border-dropdown: #EEEEEE;
    --text-dropdown: #333333;
    --hover-dropdown: #F5F5F5;
    --text-hover-dropdown: #000000;
    --shadow-main: rgba(0, 0, 0, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --icon-filter: none;
    --bg-input: #FFFFFF;
    --border-input: #DDDDDD;
    --btn-bg: #1a1a1a;
    --btn-text: #F5F5F5;
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --hero-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* --- 0. GENEL SIFIRLAMA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

/* --- 1. HEADER --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-main);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    transition: all 0.4s ease;
}

/* Header scroll efekti */
.site-header.header-scrolled {
    padding: 15px 40px;
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 20px var(--shadow-main);
    backdrop-filter: blur(10px);
}

.header-sol {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo a {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
}

.logo a:hover {
    opacity: 0.7;
}

.kategoriler>ul {
    display: flex;
    gap: 25px;
}

.kategoriler ul li a {
    font-weight: 300;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 3px;
}

.kategoriler ul li a:hover {
    color: var(--text-main);
}

.kategoriler ul li a.aktif-sayfa {
    color: var(--text-main);
    position: relative;
}

.kategoriler ul li a.aktif-sayfa::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--text-main);
    bottom: -3px;
    left: 0;
    transition: width 0.3s ease;
}

/* Header Sağ Grup */
.header-sag-grup {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-ikonlar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-ikonlar a {
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.social-ikonlar a .social-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-ikonlar a:hover {
    transform: scale(1.1);
}

.social-ikonlar a:hover .social-icon {
    color: var(--text-main);
}

/* Tema Toggle */
.theme-toggle {
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    font-size: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-icon,
.moon-icon {
    width: 22px;
    height: 22px;
    position: absolute;
    background-color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M12 18a6 6 0 100-12 6 6 0 000 12z" /></svg>') no-repeat center;
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

.moon-icon {
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" /></svg>') no-repeat center;
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

html.light-mode .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

html.light-mode .moon-icon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

/* Dropdown Menü */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-dropdown);
    border: 1px solid var(--border-dropdown);
    min-width: 180px;
    z-index: 10;
    visibility: visible;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px var(--shadow-main);
    border-radius: 8px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    max-height: 200px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    font-weight: 300;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-dropdown);
    padding: 10px 18px;
    display: block;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0 4px;
}

.dropdown-menu li a:hover {
    background-color: var(--hover-dropdown);
    color: var(--text-hover-dropdown);
}

/* --- BURGER MENÜ --- */
.burger-menu-toggle {
    display: none;
    width: 25px;
    height: 19px;
    position: fixed;
    top: 28px;
    right: 25px;
    z-index: 10001;
    min-width: 44px;
    min-height: 44px;
}

.burger-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    margin-left: -12.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu-toggle span:nth-child(1) {
    top: 50%;
    margin-top: -8px;
}

.burger-menu-toggle span:nth-child(2) {
    top: 50%;
    margin-top: -1px;
}

.burger-menu-toggle span:nth-child(3) {
    top: 50%;
    margin-top: 6px;
}

.burger-menu-toggle.menu-acik span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
    margin-top: -1px;
}

.burger-menu-toggle.menu-acik span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-menu-toggle.menu-acik span:nth-child(3) {
    transform: rotate(-45deg);
    top: 50%;
    margin-top: -1px;
}

/* --- MOBİL MENÜ --- */
.mobil-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mobil-menu-container.menu-acik {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobil-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    padding-top: 100px;
}

.mobil-menu-panel-main {
    transform: translateX(0);
}

.mobil-menu-panel-submenu {
    transform: translateX(100%);
}

.mobil-menu-container.menu-kaydir .mobil-menu-panel-main {
    transform: translateX(-100%);
}

.mobil-menu-container.menu-kaydir .mobil-menu-panel.panel-acik {
    transform: translateX(0);
}

.mobil-menu-back-btn {
    position: absolute;
    top: 30px;
    left: 20px;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
}

.mobil-menu-back-btn span {
    font-size: 1.5rem;
    margin-right: 5px;
}

.mobil-menu-back-btn:hover {
    color: var(--text-main);
}

.mobil-nav {
    text-align: center;
    width: 100%;
}

.mobil-nav ul li {
    margin-bottom: 20px;
}

.mobil-nav ul li a,
.mobil-nav ul li button.mobil-menu-trigger {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.mobil-nav ul li a:hover,
.mobil-nav ul li button.mobil-menu-trigger:hover {
    color: var(--text-secondary);
}

.mobil-menu-panel-submenu .mobil-nav ul li a {
    font-size: 1.6rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text-main);
}

.mobil-menu-panel-submenu .mobil-nav ul li a:hover {
    color: var(--text-secondary);
}

.mobil-menu-alt-grup {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobil-social-ikonlar {
    display: flex;
    gap: 25px;
    position: static;
    margin-top: 0;
}

.mobil-social-ikonlar a {
    transition: opacity 0.2s ease, transform 0.2s ease;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobil-social-ikonlar a:hover {
    transform: scale(1.1);
}

.mobil-social-ikonlar a .social-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.mobil-social-ikonlar a:hover .social-icon {
    color: var(--text-main);
}

/* --- SAYFA BAŞLIK --- */
.sayfa-baslik {
    text-align: center;
    padding: 50px 40px 10px;
}

.sayfa-baslik h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.sayfa-baslik h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--text-secondary);
    margin: 15px auto 0;
}

/* --- HERO BÖLÜMÜ (Ana Sayfa) --- */
.hero {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    background:
        var(--hero-gradient),
        url('images/anasayfa/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    text-align: center;
    padding: 40px;
    z-index: 2;
}

.hero-baslik {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-alt-baslik {
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
}

/* --- İLETİŞİM FORMU --- */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.contact-container p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-grup {
    margin-bottom: 20px;
}

/* Honeypot: Görünmez alan (botlar için tuzak) */
.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.form-grup label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-grup input[type="text"],
.form-grup input[type="email"],
.form-grup textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-input);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 8px;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-grup input[type="text"]:focus,
.form-grup input[type="email"]:focus,
.form-grup textarea:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

.gonder-btn {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.gonder-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-main);
}

.form-basarili {
    background-color: #1a3a2a;
    color: #7dd3a8;
    border: 1px solid #2d5a42;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 300;
}

.form-hata {
    background-color: #3a1a1a;
    color: #d37d7d;
    border: 1px solid #5a2d2d;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 300;
}

html.light-mode .form-basarili {
    background-color: #e8f5e9;
    color: #2e7d4f;
    border-color: #a5d6a7;
}

html.light-mode .form-hata {
    background-color: #fce4ec;
    color: #c62828;
    border-color: #ef9a9a;
}

/* --- 2. ANA GALERİ --- */
main {
    padding: 0 40px;
    margin-top: 40px;
    flex-grow: 1;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

main.galeri-goster {
    opacity: 1;
}

.galeri-grid {
    column-count: 3;
    column-gap: 15px;
}

.grid-item {
    margin-bottom: 15px;
    break-inside: avoid;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.grid-item:hover {
    z-index: 5;
    box-shadow: 0 15px 40px var(--shadow-main);
    transform: translateY(-3px);
}

.grid-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover img {
    transform: scale(1.04);
}

/* Fotoğraf Hover Overlay */
.foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.grid-item:hover .foto-overlay {
    opacity: 1;
}

.foto-overlay-icon {
    color: #FFFFFF;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s ease 0.1s;
}

.grid-item:hover .foto-overlay-icon {
    opacity: 1;
    transform: scale(1);
}

/* --- KAYDIRMA ANİMASYONU --- */
.reveal-on-scroll {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out 0.2s, visibility 0.5s ease-out 0.2s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-main);
    border-top-color: var(--text-main);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid var(--border-main);
    margin-top: 60px;
    background-color: var(--bg-secondary);
    transition: all 0.4s ease;
}

.footer-ust {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo a {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-aciklama {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-nav h3,
.footer-sosyal h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.footer-nav ul li {
    margin-bottom: 8px;
}

.footer-nav ul li a {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
    color: var(--text-main);
}

.footer-sosyal .social-ikonlar {
    gap: 15px;
}

.footer-alt {
    border-top: 1px solid var(--border-main);
    padding: 20px 40px;
    text-align: center;
}

.footer-alt p {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* --- BACK TO TOP BUTONU --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-main);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-main);
}

/* --- HAKKINDA SAYFASI --- */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 40px 60px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.about-text p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-iletisim {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-main);
}

.about-iletisim h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-social {
    margin-top: 15px;
}

.about-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.about-social-link:hover {
    color: var(--text-main);
}

.about-social-link .social-icon {
    width: 18px;
    height: 18px;
}

/* --- 404 SAYFASI --- */
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--border-main);
    line-height: 1;
    margin-bottom: 10px;
}

.error-baslik {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.error-aciklama {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.error-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-main);
}

/* --- 3. MOBİL UYUMLULUK --- */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .galeri-grid {
        column-count: 2;
        column-gap: 12px;
    }

    .hero-baslik {
        font-size: 2.8rem;
    }

    .footer-ust {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobil (768px ve altı) */
@media (max-width: 768px) {
    .site-header {
        padding: 18px 20px;
        padding-right: 60px;
    }

    .site-header.header-scrolled {
        padding: 12px 20px;
        padding-right: 60px;
    }

    main {
        padding-left: 0;
        padding-right: 0;
        margin-top: 20px;
    }

    .contact-container {
        padding: 0 20px;
    }

    .header-sag-grup {
        display: none;
    }

    .kategoriler,
    .dropdown-menu {
        display: none !important;
    }

    .burger-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        top: 15px;
        right: 15px;
    }

    .galeri-grid {
        column-count: 2;
        column-gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .grid-item {
        margin-bottom: 8px;
        border-radius: 4px;
    }

    .grid-item:hover {
        transform: none;
    }

    /* Footer Mobil */
    .footer-ust {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px 15px;
        text-align: center;
    }

    .footer-aciklama {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-sosyal .social-ikonlar {
        justify-content: center;
    }

    .footer-alt {
        padding: 15px 20px;
    }

    /* Hero Mobil */
    .hero {
        height: 50vh;
        min-height: 300px;
        margin-bottom: 20px;
    }

    .hero-baslik {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .hero-alt-baslik {
        font-size: 0.9rem;
    }

    /* Sayfa Başlık Mobil */
    .sayfa-baslik {
        padding: 30px 20px 5px;
    }

    .sayfa-baslik h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    /* About Mobil */
    .about-container {
        padding: 10px 20px 40px;
    }

    /* 404 Mobil */
    .error-code {
        font-size: 5rem;
    }

    .error-baslik {
        font-size: 1.4rem;
    }

    /* Back to top - mobilde küçült */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
    }
}

/* Küçük Mobil (480px ve altı) */
@media (max-width: 480px) {
    .galeri-grid {
        column-count: 2;
        column-gap: 6px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .grid-item {
        margin-bottom: 6px;
    }

    .hero-baslik {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .hero-alt-baslik {
        font-size: 0.8rem;
    }

    .sayfa-baslik h1 {
        font-size: 1.3rem;
    }

    .contact-container h1 {
        font-size: 1.8rem;
    }

    .mobil-nav ul li a,
    .mobil-nav ul li button.mobil-menu-trigger {
        font-size: 1.5rem;
    }
}

/* ==============================================
   FAZ 2 — YENİ ÖZELLİKLER
   ============================================== */

/* --- CUSTOM CURSOR (Büyüteç) --- */
.custom-cursor {
    position: fixed;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #FFFFFF;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    mix-blend-mode: difference;
}

.custom-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.galeri-grid {
    cursor: none;
}

.galeri-grid * {
    cursor: none;
}

/* Mobilde custom cursor devre dışı */
@media (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }

    .galeri-grid,
    .galeri-grid * {
        cursor: default;
    }
}

/* --- SKELETON LOADING --- */
.grid-item.skeleton {
    position: relative;
}

.grid-item.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            var(--bg-secondary) 0%,
            var(--border-main) 50%,
            var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 6px;
    z-index: 1;
}

.grid-item.skeleton img {
    opacity: 0;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- SAYFA GEÇİŞ ANİMASYONU --- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 99997;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.page-transition.loaded {
    opacity: 0;
}

.page-transition.exiting {
    opacity: 1;
    pointer-events: all;
}

/* --- SWIPE HINT (Mobil Kategori Geçişi) --- */
.swipe-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: var(--bg-secondary);
    color: var(--text-main);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    transition: all 0.3s ease;
}

.swipe-hint.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- DİL SEÇİCİ --- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.lang-btn {
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 6px;
    transition: color 0.2s ease;
    min-width: 30px;
    text-align: center;
}

.lang-btn.active {
    color: var(--text-main);
}

.lang-btn:hover {
    color: var(--text-main);
}

.lang-sep {
    color: var(--border-main);
    font-weight: 300;
}

/* --- NEWSLETTER (Bülten) --- */
.newsletter-box {
    margin-top: 20px;
}

.newsletter-box h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.newsletter-desc {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-input);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    min-width: 0;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--text-main);
}

.newsletter-form button {
    padding: 10px 18px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.newsletter-form button:hover {
    opacity: 0.85;
}

.newsletter-msg {
    display: none;
    font-size: 0.8rem;
    font-weight: 300;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
}

.newsletter-msg.success {
    background-color: #1a3a2a;
    color: #7dd3a8;
    border: 1px solid #2d5a42;
}

.newsletter-msg.error {
    background-color: #3a1a1a;
    color: #d37d7d;
    border: 1px solid #5a2d2d;
}

html.light-mode .newsletter-msg.success {
    background-color: #e8f5e9;
    color: #2e7d4f;
    border-color: #a5d6a7;
}

html.light-mode .newsletter-msg.error {
    background-color: #fce4ec;
    color: #c62828;
    border-color: #ef9a9a;
}

/* --- FOTOĞRAF İNDİRME KORUMASI --- */
.grid-item img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* --- INFINITE SCROLL SENTINEL --- */
.scroll-sentinel {
    height: 1px;
    width: 100%;
}

/* --- FOOTER MOBİL NEWSLETTER --- */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .lang-switch {
        font-size: 0.85rem;
    }

    .custom-cursor {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .newsletter-box {
        margin-top: 15px;
    }
}

/* =============================================
   FAZ 3 — YENİ ÖZELLİKLER
   ============================================= */

/* --- BLUR-UP PLACEHOLDER --- */
.img-blur-wrap {
    width: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.img-blur-wrap img.blur-loading {
    filter: blur(15px);
    transform: scale(1.05);
    transition: filter 0.6s ease, transform 0.6s ease;
    width: 100%;
    display: block;
    opacity: 0.5;
}

.img-blur-wrap img.loaded {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

/* --- PROGRESS BAR --- */
.page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    z-index: 99999;
    width: 0%;
    transition: width 0.4s ease, opacity 0.3s ease;
}

/* --- BREADCRUMB --- */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--text-main);
}

.breadcrumb-sep {
    color: var(--text-secondary);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-main);
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 100px 20px 30px;
    z-index: 9998;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.search-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
    padding: 8px;
}

.search-close-btn:hover {
    color: #fff;
}

.search-close-btn svg {
    width: 24px;
    height: 24px;
}

.search-overlay input {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 2px;
    padding: 15px 0;
    outline: none;
    text-align: center;
}

.search-overlay input:focus {
    border-color: rgba(255, 255, 255, 0.7);
}

.search-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.search-toggle-btn:hover {
    color: var(--text-main);
}

.search-toggle-btn svg {
    width: 16px;
    height: 16px;
}

/* --- SORT BAR --- */
.galeri-sort-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px 20px;
}

.galeri-sort-bar button {
    background: none;
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.galeri-sort-bar button:hover,
.galeri-sort-bar button.active {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

/* --- İSTATİSTİK SAYACI --- */
.stats-counter {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 50px 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-main);
    padding: 18px 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 500px;
    line-height: 1.5;
}

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner button {
    padding: 8px 18px;
    border-radius: 4px;
    border: 1px solid var(--border-main);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.cookie-accept {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main) !important;
}

.cookie-reject {
    background: transparent;
    color: var(--text-secondary);
}

.cookie-accept:hover {
    opacity: 0.85;
}

.cookie-reject:hover {
    color: var(--text-main);
    border-color: var(--text-main) !important;
}

/* --- BOTTOM NAVİGASYON BAR (Mobil) --- */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-main);
        z-index: 9990;
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 0.6rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.2s ease;
        padding: 4px 12px;
    }

    .bottom-nav a.active,
    .bottom-nav a:hover {
        color: var(--text-main);
    }

    .bottom-nav svg {
        width: 20px;
        height: 20px;
    }

    body {
        padding-bottom: 65px;
    }

    .cookie-banner {
        bottom: 65px;
    }
}

/* --- PULL TO REFRESH --- */
.pull-refresh-indicator {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 2px 10px var(--shadow-main);
    opacity: 0;
    overflow: hidden;
}

.pull-refresh-indicator.refreshing {
    animation: pullSpin 0.8s linear infinite;
}

@keyframes pullSpin {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

.pull-refresh-indicator svg {
    width: 18px;
    height: 18px;
    color: var(--text-main);
}

/* --- GLightbox Paylaşım --- */
.gslide-share {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* --- PAGE TRANSITION --- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 99998;
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.page-transition-overlay.loaded {
    opacity: 0;
}

.page-transition-overlay.exiting {
    opacity: 1;
}

/* --- MOBİL RESPONSIVE EK --- */
@media (max-width: 768px) {
    .stats-counter {
        gap: 25px;
        padding: 35px 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px 20px;
    }

    .search-overlay input {
        font-size: 1.1rem;
    }

    .galeri-sort-bar {
        padding: 8px 15px 15px;
    }
}