﻿/*=========================================================
  ENMODÜLER YAZILIM — ORTAK KÜÇÜK BİLEŞENLER
  (Yukarı dön butonu, scroll progress, dropdown menu davranışı)
=========================================================*/

#backToTop {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(14,125,71,.30);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s ease;
}

    #backToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #backToTop:hover {
        background: var(--primary-dark);
        transform: translateY(-4px);
    }

@media (max-width: 576px) {
    #backToTop {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--primary);
    z-index: 9999;
    transition: width .1s linear;
}

/* Dropdown menü (mega menü altyapısı için ortak davranış) */

.dropdown-menu {
    min-width: 240px;
    padding: 12px;
    border: none;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
    margin-top: 15px;
}

.dropdown-item {
    border-radius: 12px;
    padding: 12px 18px;
    transition: .25s;
    font-weight: 500;
}

    .dropdown-item:hover {
        background: var(--primary);
        color: #fff;
        transform: translateX(6px);
    }

.dropdown-toggle::after {
    display: none;
}

.menu-arrow {
    font-size: 12px;
    margin-left: 6px;
    transition: .30s;
}

.nav-item.dropdown:hover .menu-arrow {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: all .25s ease;
    }

    .navbar .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.navbar .dropdown:hover > .nav-link {
    color: var(--primary);
}

/* Hub sayfaları (Ürünler, Çözümler vb.) için ortak hero bloğu */

.en-hub-hero {
    padding: 120px 0 90px;
    background: linear-gradient(180deg, var(--primary-50) 0%, #fff 100%);
    text-align: center;
}

    .en-hub-hero .en-section-desc {
        margin-left: auto;
        margin-right: auto;
    }

/* Çözüm kartları */

.en-solution-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text);
}

    .en-solution-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
        border-color: var(--primary-light);
    }

    .en-solution-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
        color: var(--title);
    }

    .en-solution-card p {
        color: #666;
        font-size: 15px;
        line-height: 1.7;
        flex: 1;
    }

.en-solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 26px;
    margin-bottom: 18px;
}

.en-solution-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

/* Detay sayfaları (Çözüm, ileride Ürün/Modül) için ortak yapı */

.en-breadcrumb {
    margin-bottom: 24px;
}

    .en-breadcrumb ol {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 14px;
        color: var(--gray-500);
    }

        .en-breadcrumb ol li:not(:last-child)::after {
            content: "/";
            margin-left: 8px;
            color: var(--gray-400);
        }

        .en-breadcrumb ol li a {
            color: var(--gray-500);
        }

            .en-breadcrumb ol li a:hover {
                color: var(--primary);
            }

.en-detail-hero {
    padding: 60px 0 90px;
    background: linear-gradient(180deg, var(--primary-50) 0%, #fff 100%);
}

    .en-detail-hero h1 {
        font-size: clamp(30px, 4vw, 44px);
        margin-bottom: 16px;
    }

.en-rich-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: #444;
}

    .en-rich-content img {
        border-radius: var(--radius);
        margin: 24px 0;
    }

    .en-rich-content h2,
    .en-rich-content h3 {
        margin-top: 36px;
        margin-bottom: 14px;
    }

.en-detail-cta {
    padding: 70px 0;
    background: var(--gray-100);
    text-align: center;
}

    .en-detail-cta h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }
