/* ======================================
   MACHINE DETAIL CSS - YENİ YAPILANDIRMA
   980px sabit yükseklik, başlıklar görselin üstünde
   ====================================== */

/* Hero Bölümü - 980px Sabit Yükseklik */
.machine-detail-hero {
    background: #f8f9fa;
    height: 980px;
    overflow: hidden;
}

.machine-detail-hero .row {
    height: 100%;
}

/* ======================================
   SOL TARAF - GÖRSEL VE BAŞLIKLAR
   ====================================== */

.left-section {
    height: 100%;
    padding: 30px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    flex-direction: column;
}

/* Başlıklar (Görselin Üstünde) */
.machine-titles {
    margin-bottom: 15px;
}

.machine-category {
    display: inline-block;
    background: rgba(230, 0, 35, 0.95);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.machine-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Ana Görsel/Video Container */
.main-media-container {
    position: relative;
    width: 100%;
	height: 530px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.main-machine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.main-machine-image.active {
    display: block;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: #000;
}

.video-container.active {
    display: block;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.image-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e60023, #c00020);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4);
    z-index: 10;
}

/* Thumbnail Galeri */
.media-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 15px;
}

.media-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #1a1a1a;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-thumb:hover {
    border-color: #e60023;
    transform: scale(1.05);
}

.media-thumb:hover img {
    transform: scale(1.1);
}

.media-thumb.active {
    border-color: #e60023;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4);
}

/* Video Thumbnail - Play Icon */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: rgba(230, 0, 35, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.play-icon i {
    color: white;
    font-size: 1.1rem;
    margin-left: 2px;
}

.video-thumb:hover .play-icon {
    background: rgba(230, 0, 35, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* CTA Butonlar (Thumbnail Altında) */
.cta-buttons-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cta.primary {
    background: linear-gradient(135deg, #e60023, #c00020);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.3);
}

.btn-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.5);
    color: white;
}

.btn-cta.whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-cta.whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ======================================
   SAĞ TARAF - İÇERİK
   ====================================== */

.right-section {
    height: 100%;
    padding: 40px 60px;
    background: white;
    overflow-y: auto;
}

/* Scrollbar Özelleştirme */
.right-section::-webkit-scrollbar {
    width: 8px;
}

.right-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.right-section::-webkit-scrollbar-thumb {
    background: #e60023;
    border-radius: 10px;
}

.right-section::-webkit-scrollbar-thumb:hover {
    background: #c00020;
}

/* Ana Açıklama */
.machine-intro-text {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #e60023;
}

.machine-intro-text h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.machine-intro-text p {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.8;
    margin: 0;
}

/* Hızlı Özellikler */
.quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-spec-item:hover {
    background: #e60023;
    color: white;
    transform: translateY(-2px);
}

.quick-spec-item i {
    color: #e60023;
    font-size: 1.1rem;
}

.quick-spec-item:hover i {
    color: white;
}

/* ======================================
   TAB SİSTEMİ
   ====================================== */

.features-tabs {
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e60023;
    transition: width 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: #e60023;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Özellikler Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feature-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
}

.feature-card:hover {
    border-color: #e60023;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 0, 35, 0.1);
}

.feature-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e60023, #c00020);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: white;
    font-size: 1.3rem;
}

.feature-text h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 6px;
    font-weight: 700;
}

.feature-text p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Teknik Detaylar Tablosu */
.specs-table-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.spec-row-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.spec-row-modern:last-child {
    border-bottom: none;
}

.spec-row-modern:hover {
    background: #f8f9fa;
}

.spec-label-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.spec-label-modern i {
    color: #e60023;
    font-size: 1.1rem;
}

.spec-value-modern {
    font-weight: 700;
    color: #e60023;
    font-size: 1rem;
}

/* ======================================
   ÜRÜN GALERİSİ VE REFERANSLAR
   ====================================== */

.product-gallery-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #e60023, #c00020);
    border-radius: 2px;
}

.product-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #e60023, #c00020);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.product-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(230, 0, 35, 0.25);
}

.product-gallery-item:hover::after {
    width: 100%;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.references-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.reference-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.reference-card img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.reference-card:hover img {
    filter: grayscale(0%);
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e60023, #c00020);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(230, 0, 35, 0.5);
    color: white;
}

.btn-primary-custom i {
    transition: transform 0.3s ease;
}

.btn-primary-custom:hover i {
    transform: translateX(5px);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
}

.modal-body {
    padding: 0;
    position: relative;
}

.modal-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal Navigasyon Butonları */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-nav-btn:hover {
    background: rgba(230, 0, 35, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.3);
}

.modal-nav-btn i {
    font-size: 1.2rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.modal-nav-btn:hover i {
    color: white;
}

.modal-nav-btn.prev {
    left: 20px;
}

.modal-nav-btn.next {
    right: 20px;
}

/* Modal Counter */
.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 991px) {
    .machine-detail-hero {
        height: auto;
        min-height: 100vh;
    }

    .left-section {
        padding: 30px;
    }

    .right-section {
        padding: 40px 30px;
        height: auto;
    }

    .machine-name {
        font-size: 2.5rem;
    }

    .quick-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .left-section {
        padding: 20px;
    }

    .right-section {
        padding: 30px 20px;
    }

    .machine-name {
        font-size: 2rem;
    }

    .machine-category {
        font-size: 0.7rem;
    }

    .media-thumbnails {
        gap: 8px;
    }

    .cta-buttons-bottom {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 0;
    }

    .tab-btn {
        padding: 10px 15px;
        border-bottom: 1px solid #e9ecef;
    }

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

@media (max-width: 575px) {
    .machine-name {
        font-size: 1.6rem;
    }

    .machine-category {
        font-size: 0.65rem;
        padding: 6px 15px;
    }

    .media-thumbnails {
        gap: 6px;
    }

    .media-thumb {
        border-width: 2px;
    }

    .play-icon {
        width: 35px;
        height: 35px;
    }

    .play-icon i {
        font-size: 0.9rem;
    }

    .btn-cta {
        font-size: 0.8rem;
        padding: 12px 15px;
    }

    .image-badge {
        font-size: 0.7rem;
        padding: 6px 15px;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }
}
