/*
 * front-layout.css
 * Non-critical layout styles for the main app layout (app.blade.php)
 * Covers: services sidebar pill widget
 */

/* ---- Services sidebar (left edge, vertical pill list) ---- */
.svc-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.svc-sidebar__item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 34px;
    height: 34px;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    background: rgba(86, 19, 211, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition:
        width .28s cubic-bezier(.4, 0, .2, 1),
        background .2s ease,
        box-shadow .2s ease;
    will-change: width;
}

.svc-sidebar__item:hover {
    width: 130px;
    background: rgba(86, 19, 211, 0.82);
    box-shadow: 2px 2px 12px rgba(86, 19, 211, .30);
}

.svc-sidebar__icon {
    flex-shrink: 0;
    width: 34px;
    background: linear-gradient(90deg, #5613d3, #e02020);
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-sidebar__icon img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .85;
    transition: transform .2s ease, opacity .2s ease;
}

.svc-sidebar__item:hover .svc-sidebar__icon img {
    transform: scale(1.15);
    opacity: 1;
}

.svc-sidebar__label {
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
    padding-right: 12px;
    opacity: 0;
    transition: opacity .15s ease .1s;
}

.svc-sidebar__item:hover .svc-sidebar__label { opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .svc-sidebar {
        top: auto;
        bottom: 160px;
        transform: none;
    }
}

@media (max-width: 576px) {
    .svc-sidebar { bottom: 110px; gap: 5px; }
    .svc-sidebar__item { width: 30px; height: 30px; border-radius: 0 16px 16px 0; }
    .svc-sidebar__item:hover { width: 118px; }
    .svc-sidebar__icon { width: 30px; height: 30px; }
    .svc-sidebar__icon img { width: 15px; height: 15px; }
    .svc-sidebar__label { font-size: 11px; }
}
