﻿/* Lightbox Stilleri */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

    .lightbox-close:hover,
    .lightbox-close:focus {
        color: #bbb;
        text-decoration: none;
    }

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Küçük ekranlar için responsive stiller */
@media only screen and (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 75%;
    }

    .lightbox-close {
        top: 10px;
        right: 25px;
        font-size: 30px;
    }
}











/* Banner Styles */
.project-banner {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: #2c3e50;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.banner-content {
    max-width: 800px;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

    .breadcrumb-link:hover {
        color: #2980b9;
    }

.breadcrumb-separator {
    margin: 0 10px;
    color: #6c757d;
}

.breadcrumb-current {
    color: #2c3e50;
    font-weight: 600;
}

/* Main Content */
.project-detail-main {
    padding: 40px 0;
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 50px;
}

/* Gallery Styles */
.main-gallery {
    margin-bottom: 30px;
}

.main-project-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.thumbnail-item {
    cursor: pointer;
    transition: transform 0.3s;
}

    .thumbnail-item:hover {
        transform: scale(1.05);
    }

.thumbnail-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

    .thumbnail-img:hover {
        border-color: #3498db;
    }

/* Project Info Card */
.project-info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.info-card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.info-items {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-icon {
    width: 20px;
    color: #3498db;
    margin-right: 15px;
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 2px;
}

.info-value {
    display: block;
    font-weight: 500;
    color: #2c3e50;
}

.status-completed {
    color: #27ae60;
}

.status-progress {
    color: #f39c12;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    gap: 8px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

    .btn-primary:hover {
        background: #2980b9;
        transform: translateY(-2px);
    }

.btn-secondary {
    background: #95a5a6;
    color: white;
}

    .btn-secondary:hover {
        background: #7f8c8d;
        transform: translateY(-2px);
    }

/* Description Section */
.project-description-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.description-header {
    text-align: center;
    margin-bottom: 30px;
}

.description-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.description-divider {
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 0 auto;
}

.description-content {
    line-height: 1.8;
    color: #2c3e50;
}

    .description-content p {
        margin-bottom: 15px;
    }

/* Related Projects - KÜÇÜLTÜLMÜŞ GÖRSELLER */
.related-projects-section {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .related-project-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    }

.project-image-container {
    position: relative;
    overflow: hidden;
    height: 120px; /* KÜÇÜLTÜLMÜŞ BOYUT */
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image-container:hover .project-overlay {
    opacity: 1;
}

.project-image-container:hover .project-image {
    transform: scale(1.05);
}

.view-project-btn {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .view-project-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

.project-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-name {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.project-description {
    color: #7f8c8d;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.85rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-top: auto;
}

.project-date {
    color: #3498db;
    font-weight: 500;
}

.project-category {
    color: #95a5a6;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .project-content-wrapper {
        grid-template-columns: 1fr;
    }

    .project-info-card {
        position: static;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.1rem;
    }

    .related-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .project-banner {
        height: 300px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .project-description-section {
        padding: 25px;
    }

    .related-projects-section {
        padding: 20px;
    }

    .related-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .project-image-container {
        height: 100px;
    }

    .project-name {
        font-size: 0.9rem;
    }

    .project-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .project-banner {
        height: 250px;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image-container {
        height: 120px;
    }
}

/* Compact view for many items */
@media (min-width: 1200px) {
    .related-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
