/* css/project-detail-styles.css */

/* Genel Proje Detay Konteyneri */
.project-detail-container {
    max-width: 1000px;
    /* Blog'dan biraz daha geniş */
    margin: 40px auto 60px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
}

/* Breadcrumb Navigation */
.project-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.project-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.project-breadcrumb span {
    margin: 0 8px;
    color: var(--text-secondary);
}

.project-breadcrumb .current {
    color: var(--text);
    font-weight: 600;
}

/* Proje Header */
.project-header {
    margin-bottom: 40px;
}

.project-category-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.project-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.project-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
}

.project-meta-info .meta-item i {
    color: var(--accent);
    font-size: 18px;
}

.project-meta-info .meta-item strong {
    color: var(--text-secondary);
    margin-right: 5px;
}

/* Proje İçeriği */
.project-detail-content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

/* Öne Çıkan Görsel */
.project-featured-image {
    margin: 30px 0 40px 0;
    text-align: center;
}

.project-featured-image img {
    max-width: 80%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 15px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-featured-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.project-featured-image figcaption {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 10px;
}

/* Başlıklar */
.project-detail-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.project-detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Paragraflar */
.project-detail-content p {
    margin-bottom: 20px;
}

/* Proje Detayları Bölümü */
.project-details-section {
    margin: 30px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.detail-item {
    padding: 25px;
    background: var(--background-alt);
    border-radius: var(--radius);
    border: 1px solid var(--subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.detail-item h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.detail-item ul {
    margin: 0;
    padding-left: 25px;
}

.detail-item li {
    margin-bottom: 8px;
    color: var(--text);
}

.detail-item li::marker {
    color: var(--accent);
}

/* Proje Galerisi */
.project-gallery-section {
    margin: 30px 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, #2a66bf 100%);
    border-radius: var(--radius);
    text-align: center;
    color: white;
}

.cta-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 26px;
    color: white;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 14px 30px;
    background-color: white;
    color: var(--accent);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 5px 10px;
}

.cta-section .cta-button:hover {
    background-color: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section .cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive Ayarlamalar */
@media (max-width: 900px) {
    .project-detail-container {
        margin-left: 20px;
        margin-right: 20px;
        padding: 30px;
    }

    .project-header h1 {
        font-size: 32px;
    }

    .project-meta-info {
        flex-direction: column;
        gap: 15px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    .project-detail-container {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .project-header h1 {
        font-size: 26px;
    }

    .project-detail-content h2 {
        font-size: 22px;
    }

    .project-detail-content h3 {
        font-size: 18px;
    }

    .project-detail-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-section .cta-button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.lightbox-content {
    width: 90vw;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Mobilde görsel varken swipe ile arka plana kaydırmayı engelle */
    touch-action: none;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    transition: opacity 0.2s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.9);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 22px;
        background: rgba(0, 0, 0, 0.72);
        border-color: rgba(255, 255, 255, 0.85);
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { right: 15px; top: 15px; font-size: 30px; }
}