/* Modal Stilleri */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.project-modal.active {
    display: flex;
}

.modal-content-wrapper {
    background: white;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@media (min-width: 769px) {
    .project-modal {
        padding: 40px;
    }
    
    .modal-content-wrapper {
        width: 90vw;
        max-width: 1400px;
        height: 85vh;
        border-radius: 20px;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.modal-close:hover {
    background: #2C2C2C;
    color: white;
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.8rem;
}

/* Modal Header */
.modal-header-section {
    padding: 15px 30px;
    background: linear-gradient(135deg, #2C2C2C 0%, #4A4A4A 100%);
    color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    flex: 0 0 auto;
    max-width: 350px;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-header-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.project-description-header {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.meta-item i {
    font-size: 0.9rem;
    color: #FFD700;
}

.project-status {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.project-status i {
    color: #4CAF50;
    font-size: 0.85rem;
}

/* Fotoğraf Galerisi Bölümü */
.photo-gallery-section {
    padding: 15px 30px 25px;
    flex: 1;
    display: flex;
    overflow: hidden;
}

.gallery-container {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 100%;
}

/* Sol Taraf - Thumbnails */
.thumbnails-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    width: 140px;
    flex-shrink: 0;
    
    /* Modern scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 44, 44, 0.3) transparent;
}

.thumbnails-column::-webkit-scrollbar {
    width: 6px;
}

.thumbnails-column::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnails-column::-webkit-scrollbar-thumb {
    background: rgba(44, 44, 44, 0.3);
    border-radius: 10px;
}

.thumbnails-column::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 44, 44, 0.5);
}

.thumbnail-item {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-item:hover {
    border-color: #2C2C2C;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sağ Taraf - Ana Fotoğraf */
.main-photo-column {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-photo-column img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

/* Responsive */
@media (max-width: 968px) {
    .modal-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-left {
        max-width: 100%;
    }
    
    .header-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .modal-content-wrapper {
        border-radius: 0;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        background: rgba(255,255,255,0.95);
    }

    .modal-close i {
        font-size: 1.5rem;
    }
    
    .modal-header-section {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-header-section h2 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .project-description-header {
        font-size: 0.75rem;
        margin-bottom: 8px;
        max-width: 100%;
        -webkit-line-clamp: 1;
    }
    
    .project-meta {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 0.75rem;
    }
    
    .project-status {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .photo-gallery-section {
        padding: 15px;
        flex-direction: column;
    }
    
    .gallery-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .thumbnails-column {
        flex-direction: row;
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 5px;
        gap: 10px;
        
        /* Modern scrollbar yatay */
        scrollbar-width: thin;
        scrollbar-color: rgba(44, 44, 44, 0.3) transparent;
    }
    
    .thumbnails-column::-webkit-scrollbar {
        height: 5px;
        width: auto;
    }
    
    .thumbnail-item {
        width: 100px;
        height: 75px;
    }
    
    .main-photo-column {
        flex: 1;
        min-height: 300px;
    }
    
    .main-photo-column img {
        border-radius: 8px;
    }
    
    .photo-counter {
        bottom: 15px;
        right: 15px;
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}