﻿/* ========================================
   SOLAR HERO SECTION - Ana Slider ve Thumbnails
   ======================================== */

/* Ana Container - Flexbox Yapısı */
.solar-hero-section {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 90px); /* Navbar yüksekliği: 90px - gerekirse ayarlayın */
    overflow: hidden;
    position: relative;
    background: #ffffff; /* Beyaz arka plan */
}

/* ========================================
   SOL TARAF - Ana Slider
   ======================================== */

.solar-slider-main {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solar-slider-main .swiper-container {
    width: 100%;
    height: 100%;
}

.solar-slider-main .swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.solar-slider-main .swiper-slide-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.solar-slider-main .swiper-pagination {
    bottom: 30px;
    z-index: 20;
}

/* ========================================
   SAĞ TARAF - Thumbnails
   ======================================== */

.solar-thumbnails {
    flex: 0 0 590px; /* Sabit genişlik */
    width: 590px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff; /* Beyaz boşluk */
    gap: 8px; /* Geniş boşluk */
    padding: 0 8px 0 8px; /* Sadece yanlarda padding - üst/alt yok */
    box-sizing: border-box;
}

.solar-thumb-item {
    position: relative;
    overflow: hidden;
    min-height: 0;
    border-radius: 0;
}

/* İlk thumbnail (Arazi) - en küçük */
.solar-thumb-item:nth-child(1) {
    flex: 1;
}

/* İkinci thumbnail (Carport) - biraz daha büyük */
.solar-thumb-item:nth-child(2) {
    flex: 1;
}

/* Üçüncü thumbnail (Çatı) - daha da büyük */
.solar-thumb-item:nth-child(3) {
    flex: 1;
}

/* Dördüncü thumbnail (Enerji Depolama) - en büyük */
.solar-thumb-item:nth-child(4) {
    flex: 1;
}

.solar-thumb-item .thumb-modern {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solar-thumb-item .thumb-modern__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solar-thumb-item .thumb-modern:hover .thumb-modern__image {
    transform: scale(1.05);
}

.solar-thumb-item .corner-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: auto;
    z-index: 5;
}

    .solar-thumb-item .thumb-modern__caption {
        position: absolute;
        bottom: 30px; /* Burası 0'dı, artır (örn: 30px, 40px, 50px) */
        left: 0;
        right: 0;
        background: transparent;
        padding: 40px 20px 20px;
        z-index: 10;
        pointer-events: none;
    }

    .solar-thumb-item .thumb-modern__title {
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        padding: 0;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8);
        line-height: 1.4;
        display: block;
        position: relative;
        z-index: 11;
    }
/* ========================================
   RESPONSIVE - TABLET (1400px ve altı)
   ======================================== */

/* Tablet (768px - 1200px) */
@media (max-width: 1200px) {
    .solar-thumb-item .thumb-modern__caption {
        bottom: 30px;
        padding: 30px 15px 15px;
    }

    .solar-thumb-item .thumb-modern__title {
        font-size: 16px;
    }
}

/* Mobil (768px ve altı) */
@media (max-width: 768px) {
    .solar-thumb-item .thumb-modern__caption {
        bottom: 15px;
        padding: 20px 10px 10px;
    }

    .solar-thumb-item .thumb-modern__title {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* Küçük Mobil (480px ve altı) */
@media (max-width: 480px) {
    .solar-thumb-item .thumb-modern__caption {
        bottom: 10px;
        padding: 15px 8px 8px;
    }

    .solar-thumb-item .thumb-modern__title {
        font-size: 12px;
    }
}

@media (max-width: 1400px) {
    .solar-thumbnails {
        flex: 0 0 500px;
        width: 500px;
        gap: 6px;
        padding: 0 6px 0 6px; /* Sadece yanlarda padding */
    }
    
    .solar-thumb-item .thumb-modern__title {
        font-size: 16px;
    }
}

/* ========================================
   RESPONSIVE - TABLET (1200px ve altı)
   ======================================== */

@media (max-width: 1200px) {
    .solar-hero-section {
        flex-direction: column;
        height: auto;
    }
    
    .solar-slider-main {
        height: 60vh;
        width: 100%;
    }
    
    .solar-thumbnails {
        flex: none;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px; /* Geniş boşluk */
        padding: 0 8px 0 8px; /* Sadece yanlarda padding */
        background: #ffffff;
    }
    
    .solar-thumb-item {
        flex: 1 1 calc(50% - 8px); /* Gap için ayarlama */
        max-width: calc(50% - 8px);
        height: 220px;
    }
}

/* ========================================
   RESPONSIVE - MOBİL (768px ve altı)
   ======================================== */

@media (max-width: 768px) {
    .solar-hero-section {
        height: auto;
    }
    
    .solar-slider-main {
        height: 50vh;
        min-height: 400px;
    }
    
    .solar-thumbnails {
        flex-direction: column;
        gap: 8px; /* Geniş boşluk */
        padding: 0 8px 0 8px; /* Sadece yanlarda padding */
    }
    
    .solar-thumb-item {
        flex: none;
        width: 100%;
        height: 180px;
    }
    
    .solar-thumb-item .corner-logo {
        width: 60px;
    }
    
    .solar-thumb-item .thumb-modern__title {
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE - KÜÇÜK MOBİL (480px ve altı)
   ======================================== */

@media (max-width: 480px) {
    .solar-slider-main {
        height: 40vh;
        min-height: 300px;
    }
    
    .solar-thumb-item {
        height: 150px;
    }
    
    .solar-slider-main .swiper-slide-caption h1 {
        font-size: 28px !important;
    }
    
    .solar-slider-main .swiper-slide-caption h4 {
        font-size: 16px !important;
    }
}

/* ========================================
   NAVBAR YÜKSEKLİĞİ AYARLAMA
   ======================================== */

/* Eğer navbar yüksekliğiniz farklıysa aşağıdaki değeri değiştirin: */

/* 60px navbar için: */
/*
.solar-hero-section {
    height: calc(100vh - 60px);
}
*/

/* 100px navbar için: */
/*
.solar-hero-section {
    height: calc(100vh - 100px);
}
*/

/* 120px navbar için: */
/*
.solar-hero-section {
    height: calc(100vh - 120px);
}
*/

