/* =========================================
   PROJE DETAY ÖZEL CSS (detail.css)
   ========================================= */

/* 1. HERO ALANI (KAPAK) */
.pd-hero {
    position: relative;
    height: 60vh;
    width: 100%;
    /* Resim URL'i artık HTML'den (inline) geliyor */
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

/* Koyu Gradyan Perde (Yazı okunsun diye) */
.pd-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
}

.pd-hero-content {
    position: relative; z-index: 2;
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    color: #fff;
    animation: fadeUp 1s ease;
}

.pd-subtitle {
    font-size: 14px; letter-spacing: 4px; text-transform: uppercase;
    opacity: 0.9; font-weight: 600; display: block; margin-bottom: 10px;
    color: #b71c1c; /* Marka rengi detay */
}

.pd-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px; /* Reduced from 72px */
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

/* 2. İÇERİK ALANI */
.pd-main { background: #fff; position: relative; z-index: 10; padding: 100px 0; }
.pd-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; }

.pd-desc .lead-text {
    font-size: 24px; font-weight: 300; line-height: 1.5; color: #000; margin-bottom: 30px;
    border-left: 4px solid #b71c1c; padding-left: 20px;
}
.pd-desc p { font-size: 16px; line-height: 1.8; color: #555; margin-bottom: 20px; text-align: justify; }

/* Bilgi Kartı */
.pd-info-card {
    background: #f9f9f9; padding: 40px; border-radius: 4px;
    position: sticky; top: 120px; /* Scroll ile takip eder */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.pd-info-item { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.pd-info-item:last-child { border: none; }
.pd-info-item h4 { font-size: 12px; color: #999; letter-spacing: 1px; margin-bottom: 5px; }
.pd-info-item span { font-size: 18px; font-weight: 600; color: #000; font-family: 'Inter', sans-serif; }

.info-btn {
    display: block; width: 100%; padding: 15px; text-align: center;
    background: #000; color: #fff; text-transform: uppercase; letter-spacing: 2px;
    font-size: 12px; border: 1px solid #000; transition: 0.3s;
    margin-top: 20px;
}
.info-btn:hover { background: #fff; color: #000; }

/* 3. PREMIUM MOZAİK GALERİ */
.pd-gallery-section { padding-bottom: 120px; }
.pd-section-title {
    font-size: 24px; font-family: 'Inter', sans-serif; text-align: center;
    margin-bottom: 60px; position: relative;
    font-weight: 700;
    text-transform: uppercase;
}
.pd-section-title::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: #b71c1c; margin: 20px auto 0;
}

.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Sütunlu yapı */
    grid-auto-rows: 250px; /* Sabit satır yüksekliği */
    gap: 15px;
}

.mosaic-item {
    position: relative; overflow: hidden; cursor: pointer;
    border-radius: 2px;
}
.mosaic-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.mosaic-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}
.mosaic-overlay i { color: #fff; font-size: 30px; transform: scale(0); transition: 0.3s; }

/* Hover Efektleri */
.mosaic-item:hover img { transform: scale(1.1); }
.mosaic-item:hover .mosaic-overlay { opacity: 1; }
.mosaic-item:hover .mosaic-overlay i { transform: scale(1); }

/* Mozaik Yerleşim Kuralları */
.mosaic-item.large {
    grid-column: span 2; /* 2 birim genişlik */
    grid-row: span 2;    /* 2 birim yükseklik */
}
.mosaic-item.medium {
    grid-column: span 1;
    grid-row: span 2; /* Dikey uzun */
}
/* Small olanlar otomatik 1x1 kalır */

/* 4. DİĞER PROJELER NAVİGASYON */
.pd-footer-nav { background: #111; padding: 80px 0; color: #fff; text-align: center; }
.pd-footer-nav h4 { margin-bottom: 40px; font-weight: 300; letter-spacing: 2px; }
.nav-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.nav-card { width: 300px; text-decoration: none; color: #fff; group: nav; }
.nav-img-wrap {
    height: 200px; overflow: hidden; border-radius: 4px; margin-bottom: 15px;
    opacity: 0.7; transition: 0.4s;
}
.nav-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.nav-card h5 { font-size: 16px; font-weight: 400; letter-spacing: 1px; }

.nav-card:hover .nav-img-wrap { opacity: 1; }
.nav-card:hover img { transform: scale(1.1); }

/* Lightbox */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000;
    display: none; justify-content: center; align-items: center;
}
.lightbox.active { display: flex; animation: fadeIn 0.3s; }
.lightbox-img { max-width: 90%; max-height: 90vh; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.lightbox-close {
    position: absolute; top: 30px; right: 40px;
    color: #fff; font-size: 40px; cursor: pointer; transition: 0.3s;
}
.lightbox-close:hover { color: #b71c1c; transform: rotate(90deg); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 768px) {
    .pd-hero { height: 50vh; }
    .pd-title { font-size: 24px; }
    .pd-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .mosaic-gallery { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .mosaic-item.large, .mosaic-item.medium { grid-column: span 1; grid-row: span 1; }
    
    .pd-info-card { position: static; }
}
