/* ═══════════════════════════════════════════════
   PROJECT DETAIL PAGE STYLES
═══════════════════════════════════════════════ */

/* Breadcrumb Section */
.breadcrumb-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem 0;
    margin-top: 100px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #fff;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a:hover {
    color: #b01010;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb span:last-child {
    color: #b01010;
    font-weight: 600;
}

/* Proje başlık - ekranın ortasında üstte */
.project-page-title-wrap {
    background: #fff;
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.project-page-title-wrap .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.project-page-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Project Detail Section */
.project-detail-section {
    padding: 3rem 0;
    background: #ffffff;
    min-height: calc(100vh - 300px);
}

.project-detail-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

/* LEFT SIDE: Project Info */
.project-info-side {
    position: sticky;
    top: 120px;
    padding: 0;
    background: transparent;
    height: auto;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.project-info-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.project-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #b01010;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.project-specs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #b01010;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(176, 16, 16, 0.08);
    transform: translateX(8px);
    border-left-width: 5px;
}

.spec-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #b01010 0%, #8a0d0d 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.spec-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.spec-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

.spec-value {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.project-description {
    display: none;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-actions .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.project-actions .btn:first-child {
    display: none;
}

/* RIGHT SIDE: Gallery Carousel */
.project-gallery-side {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.gallery-carousel {
    position: relative;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    border: none;
    height: 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
    background: #fafafa;
    border-radius: 20px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 0;
}

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

.carousel-btn:hover {
    background: #b01010;
    color: #fff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(176, 16, 16, 0.35);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-btn i {
    font-size: 1.3rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(176, 16, 16, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: linear-gradient(135deg, #b01010 0%, #8a0d0d 100%);
    border-color: rgba(176, 16, 16, 0.2);
    width: 10px;
    height: 10px;
    box-shadow: 0 0 10px rgba(176, 16, 16, 0.4);
}

.carousel-indicator:hover {
    background: rgba(176, 16, 16, 0.6);
    transform: scale(1.2);
}

/* Carousel Counter */
.carousel-counter {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(176, 16, 16, 0.1);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.carousel-counter span {
    color: #b01010;
}

/* Loading Animation */
.carousel-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(176, 16, 16, 0.2);
    border-top-color: #b01010;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .project-detail-wrapper {
        grid-template-columns: 380px 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }
}

@media (max-width: 968px) {
    .project-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }

    .project-info-side {
        position: relative;
        top: 0;
        height: auto;
        padding: 0;
    }

    .project-gallery-side {
        min-height: 500px;
    }

    .carousel-container {
        min-height: 500px;
    }

    .project-title {
        font-size: 2rem;
    }

    .breadcrumb-section {
        margin-top: 80px;
    }
}

@media (max-width: 768px) {
    .project-detail-section {
        padding: 2rem 0;
    }

    .project-detail-wrapper {
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .project-info-side {
        padding: 0;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-gallery-side {
        min-height: 400px;
    }

    .carousel-container {
        min-height: 400px;
        border-radius: 16px;
    }

    .gallery-carousel {
        border-radius: 16px;
    }

    .carousel-slide {
        padding: 0;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
    }

    .carousel-prev {
        left: 15px;
    }

    .carousel-next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
        padding: 10px 16px;
        gap: 10px;
    }

    .carousel-counter {
        top: 20px;
        right: 20px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .spec-item {
        padding: 0.8rem 1rem;
    }

    .spec-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .spec-value {
        font-size: 0.95rem;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .breadcrumb-section {
        padding: 1.5rem 0;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .project-detail-wrapper {
        padding: 0 1rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-gallery-side {
        min-height: 350px;
    }

    .carousel-container {
        min-height: 350px;
    }

    .carousel-counter {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }

    .spec-label {
        font-size: 0.65rem;
    }

    .spec-value {
        font-size: 0.85rem;
    }

    .spec-item {
        padding: 0.7rem 0.9rem;
    }

    .spec-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
    }

    .carousel-btn i {
        font-size: 1.1rem;
    }
}
