﻿/* ================================
   PROJECTS DETAIL HERO
================================ */

.projects-detail {
    max-width: 1150px !important;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.projects-detail-hero {
    position: relative;
    background-image: url('/images/baslik.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 35vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.projects-detail-hero-title h1 {
    font-size: 2.3rem;
    font-weight: 600;
    color: #f1f1f1;
    margin-top: 5.5rem;
    letter-spacing: 0.08em;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.6);
}

/* Üst blur efekti */
.projects-detail-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 160px;
    background-image: url('/images/baslik.png');
    background-position: center top;
    background-size: cover;
    filter: blur(15px);
    z-index: 2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Siyah degrade */
.projects-detail-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    z-index: 3;
    pointer-events: none;
}

/* HERO ALTINDAKİ GERİ DÖN BUTONU */
.projects-detail-back {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    margin-top: 1.5rem; 
    padding-right: 1rem;
    text-align: right; 
}

    .projects-detail-back .btn {
        font-weight: 600;
        border-color: #100f0d;
        color: #100f0d;
        padding: 0.45rem 1.2rem;
        transition: all 0.25s ease;
    }

        .projects-detail-back .btn:hover {
            background: #100f0d;
            color: #f1f1f1;
        }

/* ================================
   GALERİ
================================ */

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    filter: brightness(0.95) contrast(1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

    .gallery-img:hover {
        transform: scale(1.03);
        filter: brightness(0.60) contrast(1.15);

        box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    }


/* ================================
   FULLSCREEN IMAGE VIEWER
================================ */

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
}

.viewer-image {
    max-width: 85vw;
    max-height: 88vh;
    box-shadow: 0 0 20px rgba(255,255,255,0.15);
    object-fit: contain;
}

/* Kapatma butonu */
.close-viewer {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 3rem;
    cursor: pointer;
    color: #f1f1f1;
    z-index: 100000;
    transition: 0.2s;
}

    .close-viewer:hover {
        transform: scale(1.15);
    }

/* Oklar */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #f1f1f1;
    cursor: pointer;
    padding: 10px;
    transition: 0.2s;
    user-select: none;
    z-index: 100000;
}

    .nav-arrow:hover {
        transform: translateY(-50%) scale(1.18);
    }

.left-arrow {
    left: 30px;
}

.right-arrow {
    right: 30px;
}

/* Sayaç */
.viewer-counter {
    position: absolute;
    bottom: 25px;
    right: 40px;
    background: rgba(255,255,255,0.8);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    color: #100f0d;
    z-index: 100000;
}

/* ================================
   PROJECTS DETAIL — TABLET & SMALL LAPTOP (FINAL)
   577px – 1199px
================================ */
@media (min-width: 577px) and (max-width: 1199px) {

    /* === HERO === */
    .projects-detail-hero {
        height: 35vh !important;
        background-position: center !important;
    }

    .projects-detail-hero-title h1 {
        font-size: 2rem !important;
        margin-top: 5.5rem !important;
        letter-spacing: 0.06em !important;
    }

    /* === GERİ DÖN BUTONU === */
    .projects-detail-back {
        margin-top: 1.7rem !important;
        max-width: 550px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: right !important;
    }

    /* =============================
       GALERİ ALANI — DAR TABLET CONTAINER
       ============================= */
    .projects-detail {
        max-width: 550px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;
    }

    /* === GRID YAPISI === */
    .project-gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 0rem !important; 
        row-gap: 1rem !important;
        justify-items: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto;
    }

        .project-gallery > div,
        .project-gallery .col-lg-3,
        .project-gallery .col-md-4,
        .project-gallery .col-sm-6 {
            width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
            flex: none !important;
            max-width: none !important;
        }

    /* === FOTOĞRAF === */
    .gallery-img {
        width: 90% !important; /* İki resim birbirine yakın */
        max-width: 260px !important; /* Tablet genişliğinde taşmıyor */
        aspect-ratio: 1/1 !important;
        display: block;
        margin: 0 auto;
        object-fit: cover !important;
        box-shadow: 0 5px 14px rgba(0,0,0,0.08);
        transition: 0.25s ease;
    }

        .gallery-img:hover {
            transform: scale(1.03);
            filter: brightness(0.60) contrast(1.15);
        }


    /* === FULLSCREEN === */
    .viewer-image {
        max-width: 88vw !important;
        max-height: 82vh !important;
    }

    .close-viewer {
        top: 20px !important;
        right: 45px !important;
        font-size: 4rem !important;
    }

    .nav-arrow {
        font-size: 2.3rem !important;
        padding: 8px !important;
        color: #f1f1f1 !important;
    }

    .left-arrow {
        left: 40px !important;
    }

    .right-arrow {
        right: 40px !important;
    }

    .viewer-counter {
        bottom: 18px !important;
        right: 22px !important;
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
    }
}

/* ================================
   PROJECTS DETAIL – MOBIL
================================ */
@media (max-width: 576px) {

    /* HERO */
    .projects-detail-hero {
        height: 28vh !important;
        background-position: center !important;
    }

    .projects-detail-hero-title h1 {
        font-size: 1.7rem !important;
        margin-top: 5rem !important;
        letter-spacing: 0.06em !important;
    }

    /* Geri Dön Butonu */
    .projects-detail-back {
        margin-top: 1.5rem !important;
        margin-bottom: -1.5rem;
    }

        .projects-detail-back .btn {
            font-size: 0.85rem !important;
            padding: 6px 12px !important;
        }

    /* GALERİ */
    .projects-detail {
        padding: 0 0.3rem !important;
        margin-bottom: 3rem !important;
    }

    .project-gallery {
        row-gap: 0rem !important;
    }

        .project-gallery .col-lg-3,
        .project-gallery .col-md-4,
        .project-gallery .col-sm-6 {
            padding-bottom: 0 !important;
            margin-bottom: 0 !important;
        }

    .gallery-img {
        width: 80% !important;
        aspect-ratio: 1 / 1 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }

    /* FULLSCREEN GÖRÜNTÜLEYİCİ */
    .viewer-image {
        max-width: 90vw !important;
        max-height: 80vh !important;
    }

    /* Kapatma butonu */
    .close-viewer {
        top: 15px !important;
        right: 20px !important;
        font-size: 2.4rem !important;
    }

    /* Oklar */
    .nav-arrow {
        font-size: 2.2rem !important;
        padding: 8px !important;
        opacity: 0.9 !important;
        color: #100f0d !important; /* İstenen renk */
    }

        .nav-arrow:hover {
            transform: translateY(-50%) scale(1.08) !important;
            opacity: 1 !important;
        }

    .left-arrow {
        left: 15px !important;
    }

    .right-arrow {
        right: 15px !important;
    }

    /* Sayfa sayacı */
    .viewer-counter {
        bottom: 15px !important;
        right: 20px !important;
        padding: 5px 10px !important;
        font-size: 0.85rem !important;
    }
}