/**
 * E-Katalog Sistemi - Public Alan CSS
 * Responsive, modern ve mobil uyumlu tasarım
 */

/* ==========================================
   GENEL AYARLAR
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   ANASAYFA LOGO (Header yerine)
   ========================================== */
.anasayfa-logo {
    text-align: center;
    padding: 30px 0 10px;
}

.anasayfa-logo img {
    max-height: 80px;
    max-width: 280px;
    object-fit: contain;
    /* Beyaz/açık arka planı otomatik kaldır */
    mix-blend-mode: multiply;
    filter: contrast(1.05);
}

.detay-logo {
    padding: 20px 0 5px;
}

.detay-logo img {
    max-height: 60px;
    max-width: 200px;
}

/* Eski header (artık kullanılmıyor ama uyumluluk için) */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    max-height: 50px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}

.nav-contact {
    color: #888;
    font-size: 14px;
}

/* ==========================================
   SAYFA BAŞLIK
   ========================================== */
.sayfa-baslik {
    text-align: center;
    padding: 40px 0 30px;
}

.sayfa-baslik h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.sayfa-baslik p {
    color: #777;
    font-size: 16px;
}

.geri-link {
    display: inline-block;
    color: #3498db;
    font-size: 14px;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.geri-link:hover {
    color: #2980b9;
}

/* KATALOG Butonu - Premium Tasarım */
.geri-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    margin-bottom: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    position: relative;
    overflow: hidden;
}

.geri-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.geri-link-btn:hover::before {
    left: 100%;
}

.geri-link-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(118,75,162,0.4);
    transform: translateY(-2px);
}

.geri-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102,126,234,0.3);
}

.geri-link-btn .geri-link-icon {
    display: flex;
    align-items: center;
}

.geri-link-btn .geri-link-icon svg {
    stroke: #fff;
}

/* ==========================================
   KATEGORİ GRID (Ana Sayfa)
   ========================================== */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-bottom: 40px;
}

.kategori-kart {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.kategori-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.kategori-foto-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.kategori-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.kategori-kart:hover .kategori-foto {
    transform: scale(1.05);
}

.kategori-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecf0f1;
    font-size: 48px;
}

.kategori-bilgi {
    padding: 18px 20px;
}

.kategori-bilgi h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.kategori-bilgi p {
    color: #888;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================
   ÜRÜN LİSTESİ (Kategori Detay)
   ========================================== */
.urun-listesi {
    padding-bottom: 40px;
}

.urun-kart {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.urun-kart:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.urun-kart-inner {
    display: flex;
    align-items: stretch;
}

.urun-foto-alani {
    flex: 0 0 250px;
    min-height: 200px;
}

.urun-kapak-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.urun-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecf0f1;
    font-size: 36px;
}

.urun-bilgi-alani {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.urun-adi {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.urun-detay {
    margin-bottom: 10px;
}

.detay-satir {
    display: flex;
    margin-bottom: 6px;
    font-size: 14px;
}

.detay-etiket {
    font-weight: 600;
    color: #555;
    min-width: 90px;
}

.detay-deger {
    color: #777;
}

.urun-aciklama {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Kapak Fotoğrafı Wrapper */
.kapak-foto-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.kapak-foto-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.15));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.kapak-foto-wrapper:hover::after {
    opacity: 1;
}

.foto-sayac-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
    transition: background 0.3s;
}

.kapak-foto-wrapper:hover .foto-sayac-badge {
    background: rgba(0,0,0,0.8);
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-icerik {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-foto-wrapper {
    max-width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-foto {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-kapat {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    transition: opacity 0.3s;
}

.lightbox-kapat:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 4px;
    transition: background 0.3s;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-onceki {
    left: 20px;
}

.lightbox-sonraki {
    right: 20px;
}

.lightbox-bilgi {
    text-align: center;
    color: #fff;
    margin-top: 15px;
    display: flex;
    gap: 15px;
    font-size: 14px;
}

#lightbox-baslik {
    font-weight: 600;
}

#lightbox-sayac {
    opacity: 0.7;
}

/* ==========================================
   BOŞ SAYFA
   ========================================== */
.bos-sayfa {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.bos-sayfa p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-geri {
    display: inline-block;
    padding: 10px 25px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-geri:hover {
    background: #2980b9;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 30px 0 0;
    margin-top: 40px;
}

/* Footer Logo - Sol Alt Köşe */
.footer-logo-left {
    margin-bottom: 12px;
}

.footer-logo-left img {
    max-height: 45px;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s;
}

.footer-logo-left img:hover {
    opacity: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
}

.footer-info h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-info p,
.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-alt {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
    font-size: 13px;
}

.footer-alt-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-alt-logo {
    flex-shrink: 0;
}

.footer-alt-logo img {
    max-height: 32px;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity 0.3s;
}

.footer-alt-logo img:hover {
    opacity: 1;
}

.footer-alt-inner p {
    margin: 0;
    opacity: 0.8;
}

/* ==========================================
   RESPONSIVE TASARIM
   ========================================== */

/* Tablet */
@media (max-width: 992px) {
    .kategori-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sayfa-baslik h1 {
        font-size: 26px;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .kategori-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .sayfa-baslik {
        padding: 25px 0 20px;
    }

    .sayfa-baslik h1 {
        font-size: 22px;
    }

    .urun-kart-inner {
        flex-direction: column;
    }

    .urun-foto-alani {
        flex: none;
        height: 200px;
    }

    .urun-bilgi-alani {
        padding: 15px;
    }

    .urun-adi {
        font-size: 17px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 15px;
    }

    .lightbox-nav {
        padding: 10px 12px;
        font-size: 22px;
    }

    .lightbox-onceki { left: 5px; }
    .lightbox-sonraki { right: 5px; }

    .kategori-foto-wrapper {
        height: 180px;
    }
}
