﻿/* =========== PROJECT DETAIL – HERO ========================= */
.project-hero {
    position: relative;
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
}


.project-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
}

.project-hero__inner {
    position: relative;
    padding: 3rem 1.5rem;
}

.project-hero h1 {
    font-size: 2.4rem;
    margin: 0 0 .5rem;
    line-height: 1.2;
}

.project-year {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 1rem;
    background: rgba(255,255,255,.15);
    padding: .25rem .75rem;
    border-radius: 20px;
}

/* =========== PROJECT SUMMARY (EKLENDİ) ========================= */
.project-summary {
    margin-top: 3rem;
}

    .project-summary .pd-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 1rem 0;
    }

        .project-summary .pd-stats li {
            background: var(--color-secondary);
            padding: 1rem;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 4px 16px rgba(0,0,0,.05);
            transition: transform 0.3s ease;
        }

            .project-summary .pd-stats li:hover {
                transform: translateY(-3px);
            }

        .project-summary .pd-stats i {
            font-size: 1.6rem;
            color: var(--color-accent);
            margin-bottom: 0.5rem;
            display: block;
        }

/* =========== PROJECT DETAIL – BODY ========================= */
.project-detail-section {
    padding: 4rem 2rem;
    background: var(--color-bg);
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .pd-grid {
        grid-template-columns: 1fr;
    }
}

/* Görsel */
.pd-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

    .pd-media img {
        width: 100%;
        display: block;
        transition: transform .6s ease;
    }

    .pd-media:hover img {
        transform: scale(1.05);
    }

    .pd-media figcaption {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: .6rem 1rem;
        font-size: .85rem;
        color: #fff;
        background: linear-gradient(to top,rgba(0,0,0,.6),transparent);
    }

/* İçerik */
.pd-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.pd-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Stats */
.pd-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 1.25rem;
}

    .pd-stats li {
        background: var(--color-secondary);
        border-radius: 8px;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,.05);
    }

        .pd-stats li i {
            font-size: 1.4rem;
            color: var(--color-accent);
            display: block;
            margin-bottom: .4rem;
        }

        .pd-stats li span {
            display: block;
            font-size: .85rem;
            color: #666;
            margin-bottom: .15rem;
        }

        .pd-stats li:last-child i {
            color: var(--color-primary);
        }

/* Geri Dön Butonu */
.back-btn {
    align-self: flex-start;
    margin-top: .5rem;
}

/* ==== DAİRE TİPİ SEÇİCİ  ========================================= */
.unit-radio {
    display: none;
}

.unit-tabs {
    display: flex;
    gap: 1rem;
}

    .unit-tabs label {
        cursor: pointer;
        user-select: none;
        background: var(--color-secondary);
        padding: .55rem 1.3rem;
        border-radius: 24px;
        font-weight: 600;
        font-size: .9rem;
        transition: background .3s,box-shadow .3s,color .3s;
    }

        .unit-tabs label:hover {
            background: var(--color-accent);
            color: #fff;
        }

.unit-panels {
    margin-top: 1.5rem;
}

.unit-panel {
    display: none;
}

#unit11:checked ~ .unit-tabs label[for="unit11"],
#unit20:checked ~ .unit-tabs label[for="unit20"],
#unit21:checked ~ .unit-tabs label[for="unit21"] {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

#unit11:checked ~ .unit-panels .unit-panel:nth-child(1),
#unit20:checked ~ .unit-panels .unit-panel:nth-child(2),
#unit21:checked ~ .unit-panels .unit-panel:nth-child(3) {
    display: block;
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======= SEKME GRUBU ======= */
.variant-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.variant-tab {
    background: #f5f7fa; 
    border: 1px solid #dee2e6;
    padding: .75rem 1.6rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

    .variant-tab:hover {
        background: var(--color-accent);
        color: #fff;
        transform: translateY(-2px);
    }

    .variant-tab:hover:not(.is-active) { /* aktif değilken hover rengi */
        background: var(--color-accent);
        color: #fff;
        transform: translateY(-2px);
    }

    .variant-tab.is-active {
        background: var(--color-accent); /* Öne çıkan vurgu rengi */
        color: #fff;
        box-shadow: 0 6px 14px rgba(0, 0, 0, .1);
        font-weight: 600;
        transform: scale(1.02);
        border: none;
    }

/* ======= PANEL ======= */
.variant-panel {
    display: none;
    animation: fadeIn .4s ease;
}

    .variant-panel.is-show {
        display: block;
        animation: fadeIn .4s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.variant-size {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
}



/* broşürü indir butonu */
.btn.brochure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #FFA500; /* Turuncu */
    color: white;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    width: 100%;
    transition: background-color 0.2s ease;
}

    .btn.brochure-btn:hover {
        background-color: #e59400;
        color: white;
        text-decoration: none;
    }

.brochure-btn i {
    font-size: 1.2rem;
}

.brochure-disabled {
    background-color: #ccc;
    color: #555;
    cursor: not-allowed;
}

    .brochure-disabled:hover {
        background-color: #ccc;
        color: #555;
    }




/* CTA button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--color-accent);
    color: #fff;
    padding: .75rem 1.6rem;
    border-radius: 30px;
    margin-top: 1.5rem;
    transition: .25s;
}

    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,.15);
    }

/* ======= YÜZEN TELEFON BUTONU (geliştirildi) ======= */
.floating-call {
    position: fixed;
    bottom: 1.6rem;
    left: 1.6rem;
    z-index: 1200;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #001133;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 0 4px rgba(0, 17, 51, 0.15);
    animation: pulse 2.5s infinite;
    transition: background 0.3s;
}

    .floating-call:hover {
        background: #003366;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px rgba(0, 17, 51, 0.15);
    }

    70% {
        box-shadow: 0 0 0 14px transparent;
    }

    100% {
        box-shadow: 0 0 0 4px transparent;
    }
}

/* ========= HARİTA ========= */
.project-map h3 {
    font-size: 1.4rem;
    margin-bottom: .75rem;
    color: var(--color-heading, #222);
}

.project-map iframe {
    width: 100%;
    border: none;
    border-radius: 12px;
    height: 380px;
}

/* ========= PDF BUTONU ========= */
.btn-outline i.bi-file-earmark-pdf {
    margin-right: 6px;
    font-size: 1.1rem;
    color: #c00;
}

.btn-outline:hover i.bi-file-earmark-pdf {
    color: #fff;
}


/* ======= RESPONSIVE DÜZEN ======= */

/* 992px ve altı (tablet) */
@media (max-width: 992px) {
    .project-hero {
        height: 40vh;
        align-items: center;
        text-align: center;
    }

        .project-hero h1 {
            font-size: 2rem;
        }

    .project-hero__inner {
        padding: 2rem 1rem;
    }

    .pd-grid {
        grid-template-columns: 1fr;
    }

    .pd-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .unit-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .variant-tabs {
        justify-content: center;
    }
}

/* 768px ve altı (küçük tablet) */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 1.75rem;
    }

    .project-year {
        font-size: 0.9rem;
    }

    .pd-summary {
        font-size: 0.95rem;
    }

    .variant-tab {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .variant-size {
        font-size: 1.6rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 576px ve altı (mobil telefon) */
@media (max-width: 576px) {
    .project-hero {
        height: 32vh;
        padding: 0;
    }

        .project-hero h1 {
            font-size: 1.5rem;
        }

    .project-hero__inner {
        padding: 1.5rem;
    }

    .project-year {
        font-size: 0.85rem;
        padding: 0.2rem 0.6rem;
    }

    .pd-grid {
        gap: 1.5rem;
    }

    .pd-media img {
        border-radius: 8px;
    }

    .pd-content {
        gap: 1.25rem;
    }

    .pd-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

        .pd-stats li {
            padding: 0.8rem;
        }

    .variant-tab {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .variant-size {
        font-size: 1.4rem;
    }

    .cta-btn {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }

    .project-map iframe {
        height: 250px;
    }

    .floating-call {
        bottom: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}


/*  DARK MODE */
body.dark-mode .cta-btn {
    background: #333;
    color: var(--color-accent);
    border: 1px solid #555;
}

    body.dark-mode .cta-btn:hover {
        background: #444;
        color: #fff;
        box-shadow: 0 6px 12px rgba(255, 193, 7, 0.2);
    }

body.dark-mode .pd-summary {
    color: #ddd;
}

body.dark-mode .project-map h3 {
    color: #ddd; /* Beyaza yakın açık gri */
}