/* =============================================
   MSS Widget - Dynamic Sector Showcase
   Author: MSS & Zeynart Bilişim
   Version: 2.0.0 — InspireIT Style
   ============================================= */

/* --- Wrapper --- */
.mss-wrapper {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    gap: 0;
    padding: 40px;
}

/* --- Sol Menü --- */
.mss-menu {
    flex: 0 0 200px;
    height: 380px;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: transparent;
    padding: 0;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 2px solid #e8245e;
    box-sizing: border-box;
    position: relative;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, #000 82%, transparent 100%);
}

.mss-menu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 16px;
    border-radius: 0;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
    flex: none;
    min-height: auto;
    box-sizing: border-box;
    direction: ltr;
}

.mss-menu-item:hover {
    color: #1a1a2e;
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.mss-menu-item.active {
    color: #1a1a2e;
    font-weight: 700;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* İkon — sadece aktif item'da göster */
.mss-menu-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex-shrink: 0;
    background: none;
    border-radius: 0;
    font-size: 20px;
    color: #999;
    transition: all 0.3s ease;
}

.mss-menu-item:hover .mss-menu-icon {
    display: flex;
    color: #e8245e;
}

.mss-menu-item.active .mss-menu-icon {
    display: flex;
    color: #e8245e;
}

.mss-menu-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    font-weight: inherit;
    font-size: inherit;
}

/* --- Sağ İçerik --- */
.mss-content {
    flex: 1;
    max-height: 550px;
    overflow-y: auto;
    padding: 10px 0 10px 40px;
    position: relative;
    background: #ffffff;
}

.mss-content-item {
    display: none;
    animation: mssContentFadeIn 0.35s ease;
}

.mss-content-item.active {
    display: block;
}

@keyframes mssContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* İçerik ikonu gizle */
.mss-content-icon {
    display: none;
}

.mss-content-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    line-height: 1.3;
    padding: 0;
}

.mss-content-desc {
    font-size: 14.5px;
    line-height: 1.9;
    color: #555;
    margin: 0 0 28px 0;
    padding: 0;
}

.mss-content-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: #2d2d3a;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.mss-content-btn:hover {
    background-color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-decoration: none;
}

.mss-content-btn:active {
    transform: translateY(0);
}

/* --- Scrollbar (Menü) — ince, minimal --- */
.mss-menu::-webkit-scrollbar {
    width: 4px;
}

.mss-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mss-menu::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.mss-menu::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* --- Scrollbar (İçerik) --- */
.mss-content::-webkit-scrollbar {
    width: 4px;
}

.mss-content::-webkit-scrollbar-track {
    background: transparent;
}

.mss-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.mss-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Firefox Scrollbar */
.mss-menu {
    scrollbar-width: none;
}

.mss-content {
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    .mss-wrapper {
        padding: 30px;
    }

    .mss-menu {
        flex: 0 0 240px;
        padding-right: 20px;
    }

    .mss-menu-item {
        font-size: 14px;
        padding: 14px 12px;
    }

    .mss-content {
        padding-left: 30px;
    }

    .mss-content-title {
        font-size: 22px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .mss-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
        border-radius: 12px;
    }

    .mss-menu {
        flex: none;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        -webkit-mask-image: none;
        mask-image: none;
        border-right: none;
        border-bottom: 2px solid #e8245e;
        padding-right: 0;
        padding-bottom: 16px;
    }

    .mss-menu-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .mss-content {
        max-height: none;
        padding: 16px 0 0 0;
    }

    .mss-content-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .mss-content-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .mss-content-btn {
        padding: 12px 28px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}
