/* =========================================
   PROJE KARTLARI ORTAK STİLLERİ
   ========================================= */

.project-card {
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer; /* Kartın tıklanabilir olduğunu göster */
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

body.dark-mode .project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.project-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.01) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.project-card-placeholder span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-align: center;
    line-height: 1.3;
}

body.dark-mode .project-card-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.project-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content-wrapper {
    margin-bottom: 15px;
}

.project-content-wrapper h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-content-wrapper p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.project-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
}

body.dark-mode .tags span {
    background: rgba(255, 255, 255, 0.06);
}

.links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    transition: 0.3s;
    position: relative;
    z-index: 5; /* Linklerin tıklanabilir olmasını garantile */
}

.links a:hover {
    color: var(--text-color);
}


/* =========================================
   KART İÇİ MİNİ SLİDER (CAROUSEL)
   ========================================= */

.project-card-img.slider-container {
    position: relative;
    cursor: zoom-in; /* Resme tıklanınca büyüyeceğini belirt */
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.project-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Slider Ok Butonları */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    opacity: 0.6; /* Görsel beyaz olsa bile her zaman görünür olsun */
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.project-card-img:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: #ffffff;
    color: #000000;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 8px;
}

.next-arrow {
    right: 8px;
}

/* Slider Gösterge Noktaları */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #ffffff;
    width: 14px;
    border-radius: 3px;
}


/* =========================================
   TAM EKRAN LIGHTBOX GALERİSİ
   ========================================= */

.project-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 12, 0.95);
    z-index: 3000;
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.project-lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.project-lightbox.active .project-lightbox-img {
    transform: scale(1);
}

/* Lightbox Kapat Butonu */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3020;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close svg {
    width: 35px;
    height: 35px;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ef5350;
    text-decoration: none;
    cursor: pointer;
}

/* Lightbox Ok Butonları */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3010;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Lightbox Alt Yazı ve Gösterge */
.lightbox-caption {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-dots {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-dot.active {
    background: #ffffff;
    width: 22px;
    border-radius: 4px;
}


/* =========================================
   RESPONSIVE KURAL VE UYARLAMALAR
   ========================================= */

@media (max-width: 991px) {
    .lightbox-prev {
        left: -60px;
    }
    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 768px) {
    /* Mobil ekranda lightbox oklarını görselin üzerine getir ve küçült */
    .lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        background: rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.2);
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    .project-lightbox-img {
        max-height: 65vh;
    }
}
