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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f0ea;
    color: #2c2c2c;
    line-height: 1.6;
}

:root {
    --yesil: #1f3b1d;
    --yesil-acik: #3a5e37;
    --kahve: #7a5530;
    --bordo: #7a2e2e;
    --krem: #f2ede6;
    --altin: #c49b47;
}

/* HEADER */
.site-header {
    background: linear-gradient(135deg, var(--yesil), var(--yesil-acik));
    color: #fff;
    padding: 1.5rem 2rem 1rem;
    text-align: center;
    border-bottom: 6px solid var(--altin);
    position: relative;
}
.site-header h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.site-header h1 span { color: var(--altin); }
.site-header .subtitle {
    font-size: 1rem;
    opacity: 0.85;
    font-style: italic;
}
.site-header .location-badge {
    display: inline-block;
    margin-top: 6px;
    background: rgba(255,255,255,0.12);
    padding: 0.2rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
}

/* MENÜ */
.main-nav {
    background: #3a2c1b;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--altin);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.nav-links > li {
    position: relative;
    padding: 0.7rem 1.2rem;
    color: #f0e8d8;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    cursor: default;
    border-radius: 4px;
}
.nav-links > li:hover,
.nav-links > li.active {
    background: var(--kahve);
    color: #fff;
}
.nav-links > li > a {
    color: inherit;
    text-decoration: none;
    display: block;
}
.nav-links > li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #4d3c28;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    padding: 0.3rem 0;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-top: 2px solid var(--altin);
}
.nav-links > li:hover .dropdown { display: block; }
.nav-links > li .dropdown li {
    padding: 0.4rem 1.2rem;
    color: #f0e8d8;
    border-bottom: 1px solid #5f4b33;
}
.nav-links > li .dropdown li:hover { background: var(--bordo); }
.nav-links > li .dropdown li a {
    color: inherit;
    text-decoration: none;
    display: block;
}
.nav-links > li .menu-toggle .arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #f0e8d8;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
}

/* İÇERİK */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 60vh;
}

.section-box {
    background: #fff;
    padding: 1.8rem 1.8rem;
    margin-bottom: 2.5rem;
    border-radius: 20px 8px 20px 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    border-left: 6px solid var(--altin);
}
.section-box h2 {
    font-size: 1.8rem;
    color: var(--yesil);
    border-bottom: 2px dotted var(--kahve);
    padding-bottom: 0.4rem;
    margin-bottom: 1.2rem;
}

/* İSTATİSTİK KARTLARI */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
    margin: 0.8rem 0 0.5rem;
}
.stat-card {
    background: #faf8f5;
    padding: 0.6rem 0.4rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #e8e0d6;
}
.stat-card .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yesil);
    display: block;
}
.stat-card .label {
    font-size: 0.7rem;
    color: var(--kahve);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* KARTLAR */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.card {
    background: var(--krem);
    padding: 1.2rem 1.5rem;
    border-radius: 16px 4px 16px 4px;
    border-bottom: 4px solid var(--kahve);
    transition: 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.card h3 {
    color: var(--bordo);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.card .meta {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.6rem;
    display: block;
}

/* KÜÇÜK RESİM (THUMBNAIL) */
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.gallery-thumbs .thumb {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: 0.2s;
}
.gallery-thumbs .thumb:hover {
    border-color: var(--altin, #c49b47);
    transform: scale(1.03);
}

/* GALERİ SAYFASI */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 200px;
    background: #eee;
    border: 2px solid #ddd;
    transition: 0.3s;
}
.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--altin, #c49b47);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.8rem;
    text-align: center;
    backdrop-filter: blur(4px);
}
.gallery-item.hidden {
    display: none;
}
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.filter-btn {
    background: var(--krem, #f2ede6);
    border: 2px solid var(--kahve, #7a5530);
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    color: var(--kahve, #7a5530);
    font-size: 0.9rem;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--yesil, #1f3b1d);
    color: #fff;
    border-color: var(--yesil, #1f3b1d);
}

/* MODAL 1: HABER / DUYURU */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.modal-overlay.active {
    display: flex;
}
.modal-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.modal-overlay .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10000;
}
.modal-overlay .close:hover {
    color: var(--altin);
}

/* MODAL 2: GALERİ (BÜYÜK + İLERİ/GERİ) */
#galleryModal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}
#galleryModal.active {
    display: flex;
}
#galleryModal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 100;
    transition: 0.2s;
    font-weight: bold;
}
#galleryModal .modal-close:hover {
    color: var(--altin, #c49b47);
    transform: rotate(90deg);
}
#galleryModal .modal-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    object-fit: contain;
}
#galleryModal .modal-info {
    color: #ccc;
    margin-top: 15px;
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}
#galleryModal .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}
#galleryModal .nav-btn:hover {
    background: rgba(255,255,255,0.3);
}
#galleryModal .nav-btn.prev { left: 20px; }
#galleryModal .nav-btn.next { right: 20px; }

/* YORUM ALANI */
.comment-section {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 2px dashed #ddd;
}
.comment-section h4 {
    font-size: 1.1rem;
    color: var(--yesil);
    margin-bottom: 0.8rem;
}
.comment-section textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    background: #fcfaf7;
    resize: vertical;
    min-height: 60px;
}
.comment-section textarea:focus {
    border-color: var(--altin);
    outline: none;
}
.comment-section .btn {
    background: var(--yesil);
    color: #fff;
    border: none;
    padding: 0.5rem 1.8rem;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: 0.2s;
}
.comment-section .btn:hover {
    background: var(--bordo);
    transform: scale(0.97);
}
.comment-list {
    margin-top: 1rem;
    background: #f5f0ea;
    padding: 1rem;
    border-radius: 12px;
}
.comment-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}
.comment-item strong { color: var(--yesil); }
.comment-item .date {
    font-size: 0.7rem;
    color: #777;
    margin-left: 10px;
}

/* FOOTER */
.site-footer {
    background: #2a241c;
    color: #cbc3b8;
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    border-top: 6px solid var(--altin);
}
.site-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.site-footer .social-links a {
    color: #cbc3b8;
    transition: color 0.2s;
}
.site-footer .social-links a:hover { color: var(--altin); }
.site-footer .footer-bottom {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ======================================================== */
/* MOBİL MENÜ - DÜZGÜN GÖRÜNÜM & SAĞA YASLI */
/* ======================================================== */
@media (max-width: 820px) {
    /* Ana menü konteynırı */
    .main-nav {
        position: relative;
        padding: 0 0.5rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    /* Hamburger butonu */
    .hamburger {
        display: block !important;
        font-size: 1.5rem;
        padding: 0.3rem 0.6rem;
        background: none;
        border: none;
        color: #f0e8d8;
        cursor: pointer;
        margin-left: auto;
        z-index: 1001;
        line-height: 1;
    }
    
    /* Menü - sağdan açılan */
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 260px !important;
        max-width: 85vw !important;
        background: #2a241c;
        padding: 0.3rem 0;
        border-radius: 0 0 10px 10px;
        box-shadow: -4px 10px 30px rgba(0,0,0,0.6);
        border-top: 3px solid var(--altin);
        max-height: 80vh;
        overflow-y: auto;
        flex-direction: column;
        z-index: 1000;
    }
    .nav-links.active {
        display: flex !important;
    }
    
    /* Menü öğeleri (SAĞA YASLANDI) */
    .nav-links > li {
        padding: 0.2rem 0.8rem !important;
        border-bottom: 1px solid #3d3225;
        width: 100%;
        cursor: pointer;
        font-size: 0.85rem;
        color: #e8e0d8;
        list-style: none;
        text-align: right; /* METİNLERİ SAĞA YASLAR */
    }
    .nav-links > li:last-child {
        border-bottom: none;
    }
    .nav-links > li:hover {
        background: transparent !important;
    }
    
    /* Ana menü linkleri */
    .nav-links > li > a {
        color: #e8e0d8;
        text-decoration: none;
        display: block;
        padding: 0.2rem 0;
        font-size: 0.85rem;
        font-weight: 500;
        text-align: right; /* METİNLERİ SAĞA YASLAR */
    }
    .nav-links > li > a:hover {
        color: var(--altin);
    }
    
    /* Menü başlıkları (dropdown açanlar) */
    .nav-links > li .menu-toggle {
        display: flex;
        justify-content: flex-end; /* İÇERİĞİ (METİN+OK) SAĞA YASLAR */
        align-items: center;
        width: 100%;
        cursor: pointer;
        padding: 0.2rem 0;
        color: #e8e0d8;
        font-weight: 500;
        font-size: 0.85rem;
    }
    .nav-links > li .menu-toggle .arrow {
        transition: transform 0.3s ease;
        font-size: 0.6rem;
        margin-left: 6px;
        color: var(--altin);
    }
    .nav-links > li.open .menu-toggle .arrow {
        transform: rotate(180deg);
    }
    
    /* Aktif menü */
    .nav-links > li.active {
        background: var(--bordo) !important;
        color: #fff;
        border-radius: 4px;
    }
    .nav-links > li.active .menu-toggle {
        color: #fff;
    }
    
    /* Dropdown menüler (alt menüler) */
    .nav-links > li .dropdown {
        display: none !important;
        position: static;
        background: #1f1a14;
        box-shadow: none;
        border-top: none;
        padding: 0.1rem 0;
        padding-left: 1rem;
        width: 100%;
        margin-top: 0.1rem;
        border-radius: 0;
    }
    .nav-links > li.open .dropdown {
        display: block !important;
    }
    .nav-links > li .dropdown li {
        padding: 0.15rem 0.5rem !important;
        border-bottom: 1px solid #2d251e;
        background: transparent !important;
        font-size: 0.8rem;
        list-style: none;
        text-align: right; /* ALT MENÜ METİNLERİNİ SAĞA YASLAR */
    }
    .nav-links > li .dropdown li:last-child {
        border-bottom: none;
    }
    .nav-links > li .dropdown li a {
        color: #c8c0b8;
        text-decoration: none;
        display: block;
        font-size: 0.8rem;
        padding: 0.15rem 0;
        transition: color 0.2s;
        text-align: right; /* ALT MENÜ BAĞLANTILARINI SAĞA YASLAR */
    }
    .nav-links > li .dropdown li a:hover {
        color: var(--altin);
    }
    .nav-links > li .dropdown li:hover {
        background: transparent !important;
    }
    
    /* Admin linki */
    .nav-links > li:last-child a {
        color: var(--altin) !important;
    }
    .nav-links > li:last-child a:hover {
        color: #e8b84a !important;
    }
}

/* ======================================================== */
/* GALERİ MODAL - MOBİL DÜZELTMELERİ */
/* ======================================================== */
@media (max-width: 768px) {
    #galleryModal .nav-btn {
        font-size: 1.8rem;
        padding: 6px 12px;
    }
    #galleryModal .nav-btn.prev { left: 10px; }
    #galleryModal .nav-btn.next { right: 10px; }
    #galleryModal .modal-image { max-height: 70%; }
}

html { scroll-behavior: smooth; }
/* ======================================================== */
/* YORUM CEVAP STILLERI */
/* ======================================================== */
.comment-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-item .comment-content {
    margin-bottom: 0.3rem;
}
.comment-item .comment-content strong {
    color: var(--yesil);
}
.comment-item .comment-content .date {
    font-size: 0.7rem;
    color: #777;
    margin-left: 10px;
}
.comment-item .comment-content p {
    margin-top: 4px;
    padding-left: 4px;
}

/* Cevaplar (iç içe) */
.comment-item .replies {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--altin);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.comment-item .reply-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}
.comment-item .reply-item:last-child {
    border-bottom: none;
}
.comment-item .reply-item strong {
    color: var(--kahve);
    font-size: 0.9rem;
}
.comment-item .reply-item .date {
    font-size: 0.65rem;
    color: #777;
    margin-left: 8px;
}
.comment-item .reply-item p {
    margin-top: 2px;
    font-size: 0.9rem;
}

/* Cevap butonu */
.reply-btn {
    background: none;
    border: none;
    color: var(--kahve);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    transition: 0.2s;
    margin-top: 4px;
}
.reply-btn:hover {
    background: var(--krem);
    color: var(--bordo);
}
.reply-btn:active {
    transform: scale(0.95);
}

/* Cevap modunda textarea */
.comment-section textarea:focus {
    border-color: var(--altin);
    outline: none;
}
.comment-section textarea[placeholder*="Cevap"] {
    border-color: var(--altin);
    background: #fcf8f0;
}

/* Mobil cevaplar */
@media (max-width: 768px) {
    .comment-item .replies {
        margin-left: 0.8rem;
        padding-left: 0.8rem;
    }
    .reply-btn {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}
/* ======================================================== */
/* ANA SAYFA İSTATİSTİKLER - 2+2 DÜZENİ */
/* ======================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 0;
}
.stat-card {
    background: #faf8f5;
    padding: 0.4rem 0.3rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e8e0d6;
}
.stat-card .number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--yesil);
    display: block;
}
.stat-card .label {
    font-size: 0.65rem;
    color: var(--kahve);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Masaüstünde daha geniş */
@media (min-width: 769px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}
/* ======================================================== */
/* YORUM GÖSTER/GİZLE BUTONU */
/* ======================================================== */
.toggle-comments-btn {
    background: var(--kahve, #7a5530);
    color: #fff;
    border: none;
    padding: 0.4rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    transition: 0.2s;
}
.toggle-comments-btn:hover {
    background: var(--bordo, #7a2e2e);
    transform: scale(1.02);
}
.toggle-comments-btn:active {
    transform: scale(0.97);
}
/* ===== MOBİLDE GALERİ RESMİ BÜYÜTME ===== */
@media (max-width: 768px) {
    #galleryModal .modal-image {
        max-width: 98% !important;
        max-height: 90% !important;
    }
    #galleryModal {
        padding: 5px !important;
    }
    #galleryModal .nav-btn {
        font-size: 2rem !important;
        padding: 8px 14px !important;
        background: rgba(0,0,0,0.5) !important;
    }
    #galleryModal .modal-close {
        font-size: 2.5rem !important;
        top: 10px !important;
        right: 15px !important;
    }
}
.panzoom-container.pan-active {
    cursor: grab;
}
.panzoom-container.pan-active:active {
    cursor: grabbing;
}
/* ===== YUKARI ÇIK BUTONU ===== */
#yukariBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: #1f3b1d;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(31, 59, 29, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#yukariBtn:hover {
    background: #c49b47;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(196, 155, 71, 0.5);
}

#yukariBtn:active {
    transform: scale(0.9);
}

#yukariBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobil için küçült */
@media (max-width: 768px) {
    #yukariBtn {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }
    #yukariBtn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    #yukariBtn {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
    }
    #yukariBtn svg {
        width: 18px;
        height: 18px;
    }
}

/* ===== DÜZELTME: mevcut PHP sidebar yapısı için ===== */
@media (min-width: 1025px) {
    .main-wrapper {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .content-area {
        width: min(1200px, calc(100% - 230px));
        max-width: 1200px;
        margin-left: 230px;
        padding: 14px 18px 30px;
    }
}

@media (max-width: 1024px) {
    .main-wrapper {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .content-area {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 15px;
    }
}
