/* ========================================
   PORTFOLIO MODAL & TECH BADGES
   ======================================== */

/* 1. TEKNOLOJİ ROZETLERİ (TECH STACK) */
.tech-badge {
    background: linear-gradient(135deg, rgba(108, 108, 229, 0.15) 0%, rgba(108, 108, 229, 0.05) 100%);
    color: #6C6CE5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
    margin-bottom: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(108, 108, 229, 0.2);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: linear-gradient(135deg, rgba(108, 108, 229, 0.25) 0%, rgba(108, 108, 229, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 108, 229, 0.2);
}

/* 2. MODAL İÇİ GÖRSEL VE GALERİ TASARIMI */
.project-modal-img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
    max-height: 450px;
    object-fit: contain;
}

.project-modal-img:hover {
    transform: scale(1.03);
}

/* Modal sol tarafı doldurma */
.modal-body .row {
    align-items: stretch;
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Arka plan efekti */
.modal-image-container::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 76, 96, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* Küçük Resimler (Gallery Thumbnails) */
.attachment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.attachment-item {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.attachment-item::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.attachment-item:hover::after {
    opacity: 1;
}

.attachment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 76, 96, 0.8), rgba(108, 108, 229, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.attachment-item:hover::before {
    opacity: 1;
}

.attachment-item:hover {
    transform: translateY(-3px) scale(1.08);
    border-color: #FF4C60;
    box-shadow: 0 8px 20px rgba(255, 76, 96, 0.3);
}

.gallery-label {
    font-size: 13px;
    font-weight: 700;
    color: #353353;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal genel düzenlemeler */
.modal-content {
    border-radius: 25px;
    overflow: hidden;
}

.modal-body {
    padding: 40px;
}

/* ========================================
   LIGHTBOX GALLERY STYLES
   ======================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.visible {
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    animation: lightboxZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.lightbox-nav:hover {
    background: rgba(255, 76, 96, 0.9);
    border-color: #FF4C60;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Main Content Area */
.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    background: rgba(20, 20, 35, 0.4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thumbnails */
.lightbox-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 15px;
    background: rgba(20, 20, 35, 0.6);
    border-radius: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 76, 96, 0.5) rgba(255, 255, 255, 0.1);
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 76, 96, 0.5);
    border-radius: 10px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 76, 96, 0.8);
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.lightbox-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.lightbox-thumb:hover::before {
    opacity: 0;
}

.lightbox-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 76, 96, 0.3);
}

.lightbox-thumb.active {
    border-color: #FF4C60;
    box-shadow: 0 0 20px rgba(255, 76, 96, 0.6);
}

.lightbox-thumb.active::before {
    opacity: 0;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .modal-body {
        padding: 25px;
    }

    .modal-image-container {
        min-height: 250px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .modal-image-container::before {
        display: none;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }
    
    .lightbox-container {
        width: 95%;
        height: 95%;
    }
    
    .lightbox-thumb {
        width: 60px;
        height: 60px;
    }
}
