@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap');

/* --- Tema Değişkenleri (Doğal Toprak & Orman Tonları) --- */
:root {
    --bg-color: #f7f5f0; /* Kırık, sıcak beyaz */
    --text-color: #3b3a37; /* Yumuşak kahverengi/gri */
    --header-bg: #ffffff; /* Temiz beyaz */
    --primary-color: #556b50; /* Adaçayı / Orman Yeşili */
    --primary-hover: #40523c; /* Koyu Orman Yeşili */
    --footer-bg: #2a2e2a; /* Koyu Toprak/Yeşil */
    --border-color: #e5e3dc;
    --accent-color: #b85e45; /* Kiremit / Terracotta */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Tema Değişkenleri (Karanlık Tema) --- */
[data-theme="dark"] {
    --bg-color: #1c1e1c; /* Çok koyu zeytin/gri */
    --text-color: #e6e4df; /* Sıcak kırık beyaz */
    --header-bg: #242624; /* Koyu mat gri/yeşil */
    --primary-color: #6a8a63; /* Daha açık, yumuşak yeşil */
    --primary-hover: #83a67c;
    --footer-bg: #151715;
    --border-color: #363a36;
    --accent-color: #cc745a; /* Karanlık temada belirgin kiremit */
}

/* --- Genel Stiller --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Navigasyon --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); /* Buzlu cam arka planı */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Aşağı kaydırıldığında header'ı yukarı gizleme efekti */
header.header-hidden {
    transform: translateY(-100%);
}

[data-theme="dark"] header {
    background-color: rgba(36, 38, 36, 0.85);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.2s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

.theme-toggle {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* --- Ana İçerik --- */
main {
    flex: 1;
}

.hero-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2420 0%, #151715 100%); /* Doğal koyu orman geçişi */
    color: #ffffff;
    padding: 6rem 0;
    border-bottom: 2px solid var(--border-color);
}

.globe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
        opacity: 0.45; /* Logonun harita üzerinde daha net seçilebilmesi için görünürlük artırıldı */
    z-index: 0;
    pointer-events: none;
}

.globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Land_ocean_ice_2048.jpg/1024px-Land_ocean_ice_2048.jpg') repeat-x;
    background-size: auto 100%;
    box-shadow: inset -80px -80px 120px rgba(0,0,0,0.95), 
                inset 20px 20px 60px rgba(255, 255, 255, 0.15), 
                0 0 80px rgba(255, 255, 255, 0.08); /* Yapay neon mavi parlamalar beyaz/gri doğal atmosfere çekildi */
    animation: spinGlobe 150s linear infinite; 
    filter: sepia(0.2) hue-rotate(-10deg) brightness(0.75) contrast(1.1); /* Mat, eski harita tonları (vintage) */
}

@keyframes spinGlobe {
    0% { background-position: 0 0; }
    100% { background-position: 200% 0; }
}

.hero {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Neon parlama yerine doğal gölge */
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    border-right: 4px solid var(--accent-color);
    padding-right: 5px;
    min-height: 1.2em; /* Yazı gelmeden önceki yüksekliği korur, kaymayı önler */
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

.hero p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.85;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- Scroll Down Ok Animasyonu --- */
.scroll-down {
    margin-top: 3.5rem;
    animation: bounce-down 2s infinite;
}

.scroll-down a {
    color: #ffffff;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
}

.scroll-down a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: scale(1.1);
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* --- Seksiyon & Kart Stilleri --- */
.section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--header-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid var(--border-color, transparent);
    position: relative;
}

.card:hover {
    transform: translateY(-6px); /* Abartılı 3D dönüş kaldırıldı, zarif yukarı kalkma eklendi */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    z-index: 2;
}

/* --- Resim Galerisi (Çoklu Fotoğraf) --- */
.route-gallery-wrapper {
    position: relative;
    width: 100%;
    background: var(--bg-color);
    padding: 10px 0;
}
.route-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}
.route-gallery::-webkit-scrollbar {
    height: 8px;
}
.route-gallery::-webkit-scrollbar-track {
    background: var(--bg-color);
}
.route-gallery::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}
.gallery-item {
    flex: 0 0 auto;
    width: 85%;
    max-width: 500px;
    scroll-snap-align: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}
.gallery-item img:hover {
    transform: scale(1.03);
    filter: brightness(0.9);
}
@media (min-width: 768px) {
    .gallery-item {
        width: 45%;
    }
}

/* --- Carousel / Slider Stilleri --- */
.carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--header-bg);
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: var(--header-bg);
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.carousel-card {
    flex: 0 0 auto;
    width: 320px;
    max-width: 85vw; /* Mobilde taşmaları önler */
    scroll-snap-align: start;
}

/* --- İletişim Formu --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select, .contact-form-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    cursor: pointer;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus, .contact-form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Arama Formu --- */
.search-form {
    display: inline-flex;
    position: relative;
    width: 100%;
    max-width: 650px;
    background-color: var(--header-bg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border-radius: 50px;
    border: 1px solid var(--border-color, transparent);
    padding: 0.4rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.search-form:hover,
.search-form:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.search-form .search-icon {
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    font-size: 1.2rem;
    color: #9ca3af;
}

.search-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: var(--text-color);
    font-family: inherit;
}

.search-form button {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-form button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- Autocomplete Stilleri --- */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
}
.autocomplete-suggestions.show {
    display: flex;
}
.autocomplete-item {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.2s;
    font-size: 0.95rem;
}
.autocomplete-item:hover {
    background: var(--bg-color);
    color: var(--accent-color);
    font-weight: bold;
}

/* --- Chat Sistemi (WhatsApp Tarzı) --- */
.chat-wrapper {
    display: flex;
    height: 75vh;
    min-height: 500px;
    max-height: 800px;
    background-color: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e7eb);
}

.chat-sidebar {
    width: 30%;
    min-width: 250px;
    border-right: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.chat-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background-color: var(--header-bg);
}

.chat-contacts {
    flex: 1;
    overflow-y: auto;
}

.chat-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color, transparent);
    transition: background-color 0.2s;
}

.chat-contact:hover, .chat-contact.active {
    background-color: var(--header-bg);
}

.chat-contact img, .chat-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-avatar-placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-contact-info {
    display: flex;
    flex-direction: column;
}

.chat-contact-info span {
    font-size: 0.8rem;
    color: #9ca3af;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.chat-main-header {
    padding: 1rem 1.5rem;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-main-header img, .chat-main-header .chat-avatar-placeholder {
    width: 40px; height: 40px;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0,0,0,0.015);
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.chat-msg-sent {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-msg-recv {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-msg-sent .chat-bubble {
    background-color: var(--primary-color);
    color: #ffffff;
    border-top-right-radius: 2px;
}

.chat-msg-recv .chat-bubble {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-color);
    border-top-left-radius: 2px;
}

.chat-time {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.chat-input-area {
    padding: 1rem 1.5rem;
    background-color: var(--header-bg);
    border-top: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    gap: 1rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border-color, #ccc);
    background: var(--bg-color);
    color: var(--text-color);
    outline: none;
    font-family: inherit;
}

.chat-input-area button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input-area button:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 768px) {
    .chat-wrapper { flex-direction: column; height: 85vh; }
    .chat-sidebar { width: 100%; min-height: 120px; max-height: 150px; border-right: none; border-bottom: 1px solid var(--border-color); }
    .chat-main { height: calc(100% - 150px); }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg);
    color: #9ca3af;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 4px solid var(--accent-color);
    margin-top: auto;
    width: 100%;
    text-align: left !important;
    font-family: inherit;
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin: 0;
}

.footer-desc {
    font-size: 0.875rem;
    color: #9ca3af;
    padding-right: 1rem;
    line-height: 1.625;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.footer-socials a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 0.875rem;
}

.footer-socials a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.title-dot {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 900;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
}

.footer-list a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--accent-color);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.contact-icon {
    color: var(--accent-color);
    font-size: 1rem;
    margin-top: 0.125rem;
}

.hover-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hover-link:hover {
    color: #ffffff;
}

.footer-cta {
    padding-top: 0.5rem;
    width: 100%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(0.9);
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    color: #6b7280;
    font-size: 0.75rem;
    text-align: left;
    width: 100%;
    margin: 0;
}

@media (min-width: 768px) {
    .copyright {
        font-size: 0.875rem;
        width: auto;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    width: 100%;
}

@media (min-width: 768px) {
    .footer-bottom-links {
        justify-content: flex-end;
        width: auto;
    }
}

.footer-bottom-links a {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .footer-bottom-links a {
        font-size: 0.875rem;
    }
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* --- Mobil Uyumluluk Nav Menüsü --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    nav a {
        display: none !important; /* Mobil cihazlarda üst linkleri gizle, sadece tema butonu kalsın */
    }
}

/* --- Timeline (Güzergah) Stilleri --- */
.route-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0 2.5rem 0;
    list-style: none;
}
.route-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0.4;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    background: var(--header-bg);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--accent-color);
    z-index: 1;
}
.timeline-item h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* --- Lightbox (Tam Ekran Resim) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s forwards;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: scaleUp 0.3s ease-out forwards;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0;}
    to { transform: scale(1); opacity: 1;}
}

/* --- Mobil Alt Navigasyon (Bottom Nav) --- */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-color);
        z-index: 10000;
        padding: 0.6rem 0;
        padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); /* iPhone Çentiği Desteği */
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        transition: transform 0.3s ease;
    }

    [data-theme="dark"] .mobile-bottom-nav {
        background-color: rgba(36, 38, 36, 0.95);
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #9ca3af;
        font-size: 0.75rem;
        font-weight: 700;
        transition: all 0.3s ease;
        flex: 1;
        -webkit-tap-highlight-color: transparent; /* Mobilde gri dokunma kutusunu gizler */
    }

    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover {
        color: var(--primary-color);
    }

    .mobile-bottom-nav .nav-icon {
        font-size: 1.4rem;
        margin-bottom: 4px;
        position: relative;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .mobile-bottom-nav .nav-item.active .nav-icon {
        transform: translateY(-3px) scale(1.1);
    }

    .mobile-bottom-nav .nav-badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background-color: #ef4444;
        color: white;
        font-size: 0.6rem;
        font-weight: bold;
        padding: 0.15rem 0.35rem;
        border-radius: 12px;
        line-height: 1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    /* Aşağı kaydırıldığında mobil alt menüyü gizleme efekti */
    .mobile-bottom-nav.nav-hidden {
        transform: translateY(100%);
    }

    /* Footer'ın alt menünün arkasında kalmaması (ezilmemesi) için alttan boşluk veriyoruz */
    .site-footer {
        padding-bottom: 5rem !important;
    }
}

/* --- Leaflet Haritası Gece Modu Desteği --- */
[data-theme="dark"] .leaflet-layer,
[data-theme="dark"] .leaflet-control-zoom-in,
[data-theme="dark"] .leaflet-control-zoom-out,
[data-theme="dark"] .leaflet-control-attribution {
    /* Harita renklerini tersine çevirip koyu temaya adapte eder */
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* --- Mention (Etiketleme) Stilleri --- */
.mention {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    background: rgba(184, 94, 69, 0.1);
    padding: 0 4px;
    border-radius: 4px;
    transition: all 0.2s;
}
.mention:hover {
    background: var(--accent-color);
    color: #ffffff;
}

/* --- Bildirimler Dropdown --- */
.notif-container {
    display: flex;
    align-items: center;
}
.notif-dropdown {
    display: none;
    position: absolute;
    top: 150%;
    right: 0;
    width: 320px;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    flex-direction: column;
}

.notif-dropdown.show {
    display: flex;
    animation: fadeIn 0.2s ease-out forwards;
}

.notif-header {
    padding: 1rem;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 12px 12px 0 0;
}

.notif-body {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none !important;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    color: var(--text-color) !important;
}

.notif-item::after {
    display: none !important; /* nav a hover after cizgisini iptal et */
}

.notif-item:hover {
    background-color: var(--bg-color);
}

.notif-item.unread {
    background-color: rgba(184, 94, 69, 0.05); /* Vurgu Rengi Hafif */
}

.notif-item img, .notif-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-avatar {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notif-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notif-content span {
    font-size: 0.75rem;
    color: #9ca3af;
}

.notif-footer {
    padding: 0.75rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 0 0 12px 12px;
}

.notif-footer a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0 !important;
}
.notif-footer a::after {
    display: none !important;
}

@media (max-width: 768px) {
    .notif-dropdown {
        position: fixed;
        top: 70px;
        right: 10px;
        width: calc(100% - 20px);
    }
}

/* --- Yukarı Çık (Back to Top) Butonu --- */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9998; /* Alt navigasyonun altında kalarak çakışmayı önler */
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    #backToTopBtn {
        bottom: 90px; /* Mobil alt navigasyon çubuğunun hemen üzerinde durması için */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* --- Emoji Picker --- */
.emoji-picker {
    position: absolute;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 280px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10000;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
}
.emoji-picker.show {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
}
.emoji-item {
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}
.emoji-item:hover {
    background: var(--bg-color);
}
.emoji-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}
.emoji-btn:hover {
    transform: scale(1.1);
    background: none !important;
}