/* =========================================
   ANA SAYFA (HOME) TASARIMLARI
   (LIGHT & DARK MODE DESTEKLİ)
========================================= */

:root {
    --home-orange: #ff8500;
    --home-bg: #f8fafc;
    --home-alt-bg: #f1f5f9;
    --home-card-bg: #ffffff;
    --home-text: #475569;
    --home-heading: #0f172a;
    --home-border: rgba(15, 23, 42, 0.1);
    --home-hover: rgba(15, 23, 42, 0.04);
}

body.dark-mode {
    --home-bg: #070b14;
    --home-alt-bg: #0b111e;
    --home-card-bg: #121a2b;
    --home-text: #a0abbf;
    --home-heading: #ffffff;
    --home-border: rgba(255, 255, 255, 0.08);
    --home-hover: rgba(255, 255, 255, 0.05);
}

.home-wrapper {
    background: var(--home-bg);
    min-height: 100vh;
    font-family: Inter, 'Josefin Sans', sans-serif;
    color: var(--home-text);
}

/* --- 1. TAM EKRAN HERO BÖLÜMÜ --- */
.home-hero {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center; 
    justify-content: center;
    padding-bottom: 0;
    overflow: hidden;
    border-bottom: 2px solid var(--home-orange);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 75%; 
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(100, 100, 100, 0.3) 0%, rgba(49, 49, 49, 0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    animation: fadeInUp 1s ease-out forwards;
    margin-top: 40px; 
}

.hero-desc {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(15, 23, 42, 0.5); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

body.dark-mode .hero-desc { 
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(15, 23, 42, 0.5); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}


.hero-scroll-btn {
    background: var(--home-orange); 
    border: none;
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 91, 0, 0.3);
    transition: 0.3s;
}

body.dark-mode .hero-scroll-btn { 
    background: var(--home-orange); 
    border: none;
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 91, 0, 0.3);
    transition: 0.3s;
}

body.dark-mode .hero-scroll-btn:hover {
    color: #fff;
    background: #e85200; 
}

.hero-scroll-btn:hover {
    background: #e85200; 
    box-shadow: 0 15px 35px rgba(255, 91, 0, 0.5);
    transform: translateY(-3px);
}

.bounce {
    animation: bounceIcon 2s infinite;
}

@keyframes bounceIcon {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

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

/* --- 2. GENEL SECTİON AYARLARI --- */
.home-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.home-section.alt-bg {
    background: var(--home-alt-bg);
}

.section-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--home-border);
}

.section-header.center {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--home-heading);
    margin: 0;
}

.section-subtitle {
    color: var(--home-text);
    font-size: 16px;
    margin-top: 10px;
}

.text-orange {
    color: var(--home-orange);
}

.view-all-btn {
    color: var(--home-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.view-all-btn:hover {
    color: var(--home-orange);
}

/* --- 3. KART GRID (KAYDIRMALI SLIDER) --- */
.home-grid {
    display: flex; /* Grid yerine Flex kullanıp yan yana diziyoruz */
    gap: 20px;
    overflow-x: auto; /* Taşanları sağa doğru kaydırılabilir yapıyoruz */
    scroll-behavior: smooth; /* Kaymanın yağ gibi akmasını sağlar */
    scroll-snap-type: x mandatory; /* Tam kart hizasında mıknatıs gibi durmasını sağlar */
    padding: 10px 0 30px 0; /* Gölgelerin kesilmemesi için pay bıraktık */
    
    /* Scrollbar'ı (Kaydırma Çubuğunu) Görünmez Yapıyoruz */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.home-grid::-webkit-scrollbar {
    display: none;
}

.home-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    
    /* SLIDER İÇİN ÖZEL KART AYARLARI */
    flex: 0 0 auto; /* Kartların daralmasını engeller, orijinal boyutunda tutar */
    width: 280px; /* Her bir kartın sabit genişliği */
    scroll-snap-align: start; /* Kaydırma durduğunda kartı tam kenara hizalar */
}

/* Hover efektleri (Aynı kalıyor) */
.home-card:hover {
    transform: translateY(-6px);
    border-color: var(--home-orange);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

body.dark-mode .home-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.home-card:hover {
    transform: translateY(-6px);
    border-color: var(--home-orange);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

body.dark-mode .home-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.card-image {
    width: 100%;
    height: 170px; /* Fotoğrafı kısalttık */
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.home-card:hover .card-image img {
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--home-orange);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 91, 0, 0.4);
}

.card-body {
    padding: 20px; /* İç boşluğu daralttık */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    color: var(--home-heading);
    font-size: 18px; /* Başlığı küçülttük */
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.card-body p {
    color: var(--home-text);
    font-size: 14px; /* Metni küçülttük */
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-text {
    color: var(--home-orange) !important;
    font-weight: 700;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--home-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.empty-text {
    text-align: center;
    color: var(--home-text);
    padding: 40px;
    grid-column: 1 / -1;
    font-style: italic;
}

/* --- 4. EKİPMANLAR BÖLÜMÜ --- */
.equipment-section {
    padding-bottom: 120px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.eq-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s ease;
}

.eq-card:hover {
    background: var(--home-hover);
    border-color: var(--home-orange);
    transform: translateY(-5px);
}

.eq-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: rgba(255, 91, 0, 0.1);
    color: var(--home-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: 0.3s;
}

.eq-card:hover .eq-icon {
    background: var(--home-orange);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 91, 0, 0.3);
}

.eq-info h4 {
    color: var(--home-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
    font-weight: 800;
}

.eq-info p {
    color: var(--home-heading);
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

/* --- 5. MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .section-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    .hero-title { font-size: 52px; }
    .hero-desc { font-size: 16px; }
    .home-hero { padding-bottom: 40px; }
    .section-title { font-size: 26px; }
    .home-section { padding: 60px 0; }
}