﻿/*
|--------------------------------------------------------------------------
| Phoenix Guide 1.1
|--------------------------------------------------------------------------
| Floating Guide Panel
|--------------------------------------------------------------------------
*/

.phoenix-guide {
    position: relative;
    z-index: 3000;
}


/*
|--------------------------------------------------------------------------
| Launcher
|--------------------------------------------------------------------------
*/

.phoenix-guide-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3002;
}

.phoenix-guide-button {
    min-width: 185px;
    min-height: 58px;

    padding: 10px 16px;

    display: flex;
    align-items: center;
    gap: 11px;

    border: 0;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #2f80ed 0%,
        #347ff0 100%
    );

    color: #ffffff;
    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(47, 128, 237, 0.28);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.phoenix-guide-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 34px rgba(47, 128, 237, 0.36);
}

.phoenix-guide-button:focus-visible {
    outline: 3px solid rgba(47, 128, 237, 0.25);
    outline-offset: 4px;
}

.phoenix-guide-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    font-size: 19px;
}

.phoenix-guide-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 1.15;
}

.phoenix-guide-text strong {
    font-size: 14px;
    font-weight: 700;
}

.phoenix-guide-text small {
    margin-top: 4px;

    font-size: 11px;

    opacity: 0.85;
}


/*
|--------------------------------------------------------------------------
| Guide Panel
|--------------------------------------------------------------------------
*/

.phoenix-guide-panel {
    position: fixed;

    right: 24px;
    bottom: 96px;

    width: min(390px, calc(100vw - 32px));
    max-height: min(650px, calc(100vh - 125px));

    display: none;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e6edf7;
    border-radius: 22px;

    box-shadow:
        0 24px 70px rgba(15, 36, 67, 0.18),
        0 8px 24px rgba(15, 36, 67, 0.10);

    z-index: 3001;
}

.phoenix-guide-panel.is-open {
    display: flex;
}

/*
|--------------------------------------------------------------------------
| Panel Header
|--------------------------------------------------------------------------
*/

.phoenix-guide-panel-header {
    min-height: 76px;

    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    background: linear-gradient(
        135deg,
        #2878e7 0%,
        #3b8cf5 100%
    );

    color: #ffffff;
}

.phoenix-guide-panel-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.phoenix-guide-panel-logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.16);

    font-size: 22px;
}

.phoenix-guide-panel-title {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.phoenix-guide-panel-title strong {
    font-size: 16px;
    font-weight: 700;
}

.phoenix-guide-panel-title span {
    margin-top: 3px;

    font-size: 11px;

    opacity: 0.86;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phoenix-guide-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.13);

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.phoenix-guide-close:hover {
    background: rgba(255, 255, 255, 0.22);

    transform: rotate(5deg);
}


/*
|--------------------------------------------------------------------------
| Panel Body
|--------------------------------------------------------------------------
*/

.phoenix-guide-panel-body {
    padding: 18px;

    overflow-y: auto;

    background: #f8fafd;
}


/*
|--------------------------------------------------------------------------
| Welcome Message
|--------------------------------------------------------------------------
*/

.phoenix-guide-welcome {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 17px;
}

.phoenix-guide-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 11px;

    background: #eaf3ff;

    color: #2f80ed;

    font-size: 17px;
}

.phoenix-guide-message {
    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #e6edf7;
    border-radius: 6px 16px 16px 16px;

    box-shadow:
        0 4px 14px rgba(26, 55, 94, 0.05);

    color: #25364d;
}

.phoenix-guide-message strong {
    display: block;

    margin-bottom: 5px;

    font-size: 13px;
}

.phoenix-guide-message p {
    margin: 0;

    font-size: 12px;
    line-height: 1.55;

    color: #637083;
}


/*
|--------------------------------------------------------------------------
| Quick Actions
|--------------------------------------------------------------------------
*/

.phoenix-guide-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.phoenix-guide-action {
    width: 100%;

    padding: 11px 12px;

    display: flex;
    align-items: center;
    gap: 11px;

    text-align: left;

    border: 1px solid #e3eaf4;
    border-radius: 13px;

    background: #ffffff;

    color: #25364d;

    cursor: pointer;

    box-shadow:
        0 3px 10px rgba(26, 55, 94, 0.035);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.phoenix-guide-action:hover {
    transform: translateY(-1px);

    border-color: #b9d5fa;

    background: #fbfdff;

    box-shadow:
        0 6px 18px rgba(47, 128, 237, 0.09);
}

.phoenix-guide-action-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    border-radius: 11px;

    background: #eef5ff;

    color: #2f80ed;

    font-size: 17px;
}

.phoenix-guide-action > span:last-child {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.phoenix-guide-action strong {
    font-size: 12px;
    font-weight: 700;
}

.phoenix-guide-action small {
    margin-top: 3px;

    font-size: 10px;

    color: #7a8798;
}


/*
|--------------------------------------------------------------------------
| Input Area
|--------------------------------------------------------------------------
*/

.phoenix-guide-input-area {
    padding: 13px 15px 12px;

    background: #ffffff;

    border-top: 1px solid #e7edf5;
}

.phoenix-guide-input-label {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}

.phoenix-guide-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 5px 5px 5px 13px;

    border: 1px solid #dfe7f1;
    border-radius: 14px;

    background: #f8fafc;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.phoenix-guide-input-wrapper:focus-within {
    border-color: #9fc7fa;

    box-shadow:
        0 0 0 3px rgba(47, 128, 237, 0.09);
}

.phoenix-guide-input {
    width: 100%;

    padding: 7px 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #25364d;

    font: inherit;
    font-size: 12px;
}

.phoenix-guide-input::placeholder {
    color: #97a3b2;
}

.phoenix-guide-send {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    padding: 0;

    border: 0;
    border-radius: 11px;

    background: #2f80ed;

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.phoenix-guide-send:hover {
    background: #1f6fd6;

    transform: translateX(1px);
}

.phoenix-guide-hint {
    display: block;

    margin-top: 7px;

    text-align: center;

    color: #9aa5b3;

    font-size: 9px;
}

/*
|--------------------------------------------------------------------------
| Phoenix Guide 1.3
| Conversation
|--------------------------------------------------------------------------
*/

.phoenix-guide-conversation {
    display: none;
}

.phoenix-guide-conversation.is-active {
    display: block;
}

.phoenix-guide-conversation-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 14px;
}

.phoenix-guide-conversation-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 11px;

    background: #eaf3ff;
    color: #2f80ed;

    font-size: 17px;
}

.phoenix-guide-conversation-bubble {
    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #e6edf7;
    border-radius: 6px 16px 16px 16px;

    box-shadow:
        0 4px 14px rgba(26, 55, 94, 0.05);

    color: #25364d;

    font-size: 12px;
    line-height: 1.55;
}

.phoenix-guide-conversation-bubble strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| Fahrzeugarten
|--------------------------------------------------------------------------
*/

.phoenix-guide-vehicle-types {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 12px;
}

.phoenix-guide-vehicle-type {
    min-height: 58px;

    padding: 10px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 1px solid #e3eaf4;
    border-radius: 13px;

    background: #ffffff;

    color: #25364d;

    cursor: pointer;

    text-align: left;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.phoenix-guide-vehicle-type:hover {
    transform: translateY(-1px);

    border-color: #9fc7fa;

    box-shadow:
        0 5px 16px rgba(47, 128, 237, 0.10);
}

.phoenix-guide-vehicle-type-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;

    border-radius: 9px;

    background: #eef5ff;

    font-size: 16px;
}

.phoenix-guide-vehicle-type span:last-child {
    font-size: 11px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Zurück
|--------------------------------------------------------------------------
*/

.phoenix-guide-back {
    margin-top: 14px;

    padding: 7px 10px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #2f80ed;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.phoenix-guide-back:hover {
    background: #eef5ff;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .phoenix-guide-launcher {
        right: 14px;
        bottom: 14px;
    }

    .phoenix-guide-button {
        min-width: 0;

        padding: 11px 13px;
    }

    .phoenix-guide-text small {
        display: none;
    }

    .phoenix-guide-panel {
        right: 12px;
        bottom: 84px;

        width: calc(100vw - 24px);

        max-height: calc(100vh - 105px);

        border-radius: 19px;
    }

    .phoenix-guide-panel-header {
        padding: 14px 15px;
    }

    .phoenix-guide-panel-body {
        padding: 14px;
    }
}

