/*
Theme Name: Viral Galeri Teması
Theme URI: https://example.com
Description: Viral içerik ve foto galeri odaklı WordPress teması
Version: 1.0.4
Author: Rusa Tyler
Author URI: https://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viral-galeri-temasi
Domain Path: /languages
*/

/* =======================
   RESET & BASE
   ======================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
    color: #111;
    background-color: #f5f5f5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2rem; }
button { font-family: inherit; }

/* =======================
   HEADER
   ======================= */
header {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: #fff;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Menüler butonu (logo sağında) */
.menu-button {
    appearance: none;
    border: 0;
    background: #fff;
    color: #c41e3a;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .2s;
    white-space: nowrap;
}
.menu-button:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.menu-button:active { transform: translateY(0); box-shadow: none; }
.menu-button[aria-expanded="true"] { opacity: .9; }

nav { margin-left: auto; }
nav ul { list-style: none; display: flex; gap: 26px; }
nav a { color: #fff; font-weight: 600; opacity: .95; }
nav a:hover { opacity: 1; text-decoration: none; }

/* =======================
   OVERLAY MENÜ (KATEGORİLER)
   ======================= */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    z-index: 9999;
}
.menu-overlay.open { display: block; }
.menu-overlay-content {
    background: #fff;
    max-width: 960px;
    margin: 60px auto;
    padding: 22px;
    border-radius: 10px;
    position: relative;
}
.menu-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}
.menu-overlay-title { font-size: 22px; font-weight: 800; margin-bottom: 16px; color: #111; }
.menu-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.menu-col h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; color: #c41e3a; }
.menu-category-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 0; }
.menu-category-list a { color: #333; font-weight: 700; }
.menu-category-list a:hover { text-decoration: underline; }

/* =======================
   LAYOUT
   ======================= */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 15px; }

/* =======================
   HOMEPAGE (NEWS GRID)
   ======================= */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.news-item {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .3s, box-shadow .3s;
}
.news-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,.15); }
.news-item img { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 20px; }
.news-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: #333; }
.news-title a { color: #c41e3a; }
.news-title a:hover { text-decoration: underline; }
.news-excerpt { font-size: 14px; color: #444; margin-bottom: 15px; line-height: 1.6; }
.news-meta { font-size: 12px; color: #999; margin-bottom: 15px; }
.read-more {
    display: inline-block; background-color: #c41e3a; color: #fff;
    padding: 8px 20px; border-radius: 4px; font-weight: 600;
}
.read-more:hover { background-color: #a01729; text-decoration: none; }

/* =======================
   GALERİ GENEL
   - Kart/box arkaplanlarını kaldır (tam otursun)
   ======================= */
.gallery-page,
.gallery-header,
.gallery-container,
.gallery-image-wrapper,
.gallery-viewer,
.gallery-text {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}
.no-card { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* Başlık ve byline */
.gallery-header { padding: 12px 0 8px; color: #111; }
.gallery-title { font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.gallery-byline { font-size: 14px; color: #666; margin-bottom: 12px; }
.gallery-byline a { color: #c41e3a; font-weight: 700; }
.gallery-byline a:hover { text-decoration: underline; }

.gallery-description-short { font-size: 16px; color: #333; }

/* Layout */
.gallery-container { display: flex; gap: 0; padding: 12px 0 0; }
.gallery-viewer.fullwidth { flex: 1; width: 100%; }

/* =======================
   GALERİ: AÇIKLAMA BLOĞU (ORTA HİZALI)
   ======================= */
.gallery-caption-block {
    max-width: 860px;
    margin: 0 auto 16px;
    padding: 0 8px;
    text-align: center;
}
.gallery-caption-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #111;
    text-align: center;
}
.gallery-caption-text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.9;
    color: #111;
    letter-spacing: .1px;
    word-break: break-word;
    text-align: center;
}
/* Editördeki boş satır/paragrafları koru */
.gallery-caption-text p { margin: 0 0 16px; }
.gallery-caption-text p:last-child { margin-bottom: 0; }

.gallery-image { width: 100%; height: auto; display: block; border-radius: 6px; }

/* Fotoğraf üzerindeki sayaç rozeti kaldırıldı */
.image-number { display: none !important; }

/* =======================
   GALERİ: NAVİGASYON (Önceki 1 / N Sonraki)
   ======================= */
.gallery-nav { margin-top: 16px; }
.gallery-nav-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}
.nav-btn {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 16px;
    line-height: 1;
    color: #111;
}
.nav-btn:hover { text-decoration: underline; }
/* Önceki soluk, Sonraki koyu */
.nav-btn.prev { color: #9aa0a6; font-weight: 500; }
.nav-btn.next { color: #111; font-weight: 700; }
/* Devre dışı */
.nav-btn.disabled { color: #c9c9c9; pointer-events: none; }
.image-counter { color: #7a7a7a; font-weight: 600; font-size: 15px; }

/* =======================
   FOOTER
   ======================= */
footer {
    background: #333;
    color: #fff;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}
footer a { color: #c41e3a; }
footer a:hover { text-decoration: underline; }

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 900px) {
    /* Küçük ekranda klasik nav gizlenir; overlay menü kullanılır */
    nav { display: none; }
    .header-container { gap: 10px; }
    .menu-button { padding: 9px 12px; }

    .container { padding: 26px 12px; }

    .news-grid { grid-template-columns: 1fr; gap: 22px; }

    .gallery-container { flex-direction: column; }
    .gallery-caption-block { margin-bottom: 14px; padding: 0 6px; }

    .menu-overlay-content { margin: 40px 10px; }
    .menu-columns { grid-template-columns: 1fr; gap: 18px; }
    .menu-category-list { grid-template-columns: 1fr; }
}