/**
 * Zoli Pizzeria Chatbot Styles
 * Italian-themed chatbot UI
 */

/* === CHATBOT OVERLAY === */
.zoli-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.zoli-chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === CHATBOT CONTAINER - FULLSCREEN === */
.zoli-chat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.zoli-chat-container.active {
    display: flex;
    opacity: 1;
}

/* === GIUSEPPE PANEL (LEFT) === */
.giuseppe-panel {
    width: 35%;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    border-right: 5px solid var(--oro-toscana);
    box-shadow:
        inset 0 0 150px rgba(212, 175, 55, 0.08),
        inset 20px 0 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.giuseppe-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/10_wnetrze_restauracji.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    animation: giuseppe-bg-shift 20s ease-in-out infinite;
}

@keyframes giuseppe-bg-shift {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
}

.giuseppe-panel > * {
    position: relative;
    z-index: 1;
}

.giuseppe-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 6px solid var(--oro-toscana);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.8),
        0 20px 80px rgba(212, 175, 55, 0.5),
        0 0 120px rgba(212, 175, 55, 0.2),
        inset 0 0 40px rgba(212, 175, 55, 0.15);
    object-fit: cover;
    margin-bottom: 2rem;
    position: relative;
    filter: brightness(1.05) contrast(1.1);
}

.giuseppe-avatar:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.8),
        0 25px 100px rgba(212, 175, 55, 0.7),
        0 0 150px rgba(212, 175, 55, 0.3),
        inset 0 0 50px rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.giuseppe-name {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--oro-toscana);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.giuseppe-title {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-style: italic;
}

/* === CONVERSATION PANEL (RIGHT) === */
.conversation-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(255, 254, 249, 0.98) 0%, rgba(250, 248, 240, 0.98) 50%, rgba(245, 242, 232, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.conversation-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/07_wloska_uliczka.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    animation: panel-bg-shift 25s ease-in-out infinite;
}

@keyframes panel-bg-shift {
    0%, 100% {
        transform: scale(1) translateX(0);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.03) translateX(-10px);
        opacity: 0.08;
    }
}

.conversation-panel > * {
    position: relative;
    z-index: 1;
}

.conversation-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--verde-italia) 0%, var(--verde-italia) 33%,
        #fff 33%, #fff 66%,
        var(--rosso-italia) 66%, var(--rosso-italia) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* === CHATBOT HEADER === */
.zoli-chat-header {
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%),
        linear-gradient(135deg, var(--verde-italia) 0%, #007a3d 50%, #006b35 100%);
    padding: 1.8rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid var(--oro-toscana);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.zoli-chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.zoli-chat-header h3 {
    color: white;
    font-family: 'Dancing Script', cursive;
    font-size: 2.4rem;
    margin: 0;
    font-weight: 700;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.4);
}

.zoli-chat-close {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.zoli-chat-close:hover {
    background: var(--rosso-italia);
    border-color: var(--rosso-italia);
    transform: rotate(90deg) scale(1.1);
    box-shadow:
        0 8px 30px rgba(206, 43, 55, 0.5),
        0 0 40px rgba(206, 43, 55, 0.3);
}

/* === QUICK ACTIONS - HIDDEN === */
.zoli-chat-quick-actions {
    display: none;
}

/* === MESSAGES AREA === */
.zoli-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: var(--oro-toscana) rgba(212, 175, 55, 0.1);
}

.zoli-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.zoli-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.zoli-chat-messages::-webkit-scrollbar-thumb {
    background: var(--oro-toscana);
    border-radius: 10px;
}

/* === MESSAGES === */
.zoli-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    animation: messageSlideIn 0.3s ease-out;
}

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

.zoli-message-user {
    align-items: flex-end;
}

.zoli-message-bot {
    align-items: flex-start;
}

.zoli-message-content {
    max-width: 75%;
    padding: 1.5rem 2rem;
    border-radius: 25px;
    position: relative;
    font-size: 1.3rem;
    line-height: 1.8;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.zoli-message-user .zoli-message-content {
    background: linear-gradient(135deg, var(--verde-italia) 0%, #007a3d 100%);
    color: white;
    border-bottom-right-radius: 8px;
    box-shadow:
        0 8px 25px rgba(0, 146, 70, 0.3),
        inset 0 2px 15px rgba(255, 255, 255, 0.1);
}

.zoli-message-bot .zoli-message-content {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 240, 0.98) 100%);
    color: #2d2d2d;
    border: 3px solid rgba(212, 175, 55, 0.5);
    border-bottom-left-radius: 8px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12),
        inset 0 1px 3px rgba(212, 175, 55, 0.1);
}

.zoli-message-time {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* === OPTIONS BUTTONS === */
.zoli-chat-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    animation: optionsSlideIn 0.4s ease-out;
}

@keyframes optionsSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoli-option-button {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcf8 100%);
    border: 3px solid var(--verde-italia);
    color: var(--verde-italia);
    padding: 1.4rem 2rem;
    border-radius: 22px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.zoli-option-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.zoli-option-button:hover::before {
    left: 100%;
}

.zoli-option-button:hover {
    background: linear-gradient(135deg, var(--verde-italia) 0%, #007a3d 100%);
    color: white;
    transform: translateX(10px) scale(1.03);
    box-shadow:
        0 10px 35px rgba(0, 146, 70, 0.4),
        0 0 30px rgba(0, 146, 70, 0.2);
    border-color: var(--oro-toscana);
}

/* === INPUT AREA === */
.zoli-chat-input-container {
    display: flex;
    gap: 1.2rem;
    padding: 2rem 3rem;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 240, 0.98) 100%);
    border-top: 4px solid rgba(212, 175, 55, 0.4);
    box-shadow:
        0 -4px 20px rgba(0, 0, 0, 0.08),
        inset 0 4px 15px rgba(255, 255, 255, 0.5);
}

.zoli-chat-input {
    flex: 1;
    padding: 1.3rem 2rem;
    border: 3px solid rgba(0, 146, 70, 0.3);
    border-radius: 28px;
    font-size: 1.2rem;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.zoli-chat-input:focus {
    border-color: var(--verde-italia);
    box-shadow:
        0 0 0 5px rgba(0, 146, 70, 0.12),
        0 6px 20px rgba(0, 146, 70, 0.15);
    transform: translateY(-1px);
}

.zoli-chat-send {
    background: linear-gradient(135deg, var(--verde-italia) 0%, #007a3d 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.5rem;
    box-shadow:
        0 6px 25px rgba(0, 146, 70, 0.4),
        0 0 30px rgba(0, 146, 70, 0.2);
}

.zoli-chat-send:hover {
    background: linear-gradient(135deg, var(--rosso-italia) 0%, #a02030 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow:
        0 10px 35px rgba(206, 43, 55, 0.5),
        0 0 50px rgba(206, 43, 55, 0.3);
    border-color: var(--oro-toscana);
}

/* === FLOATING CHAT BUTTON - HIDDEN === */
.zoli-chat-fab {
    display: none;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .zoli-chat-container {
        flex-direction: column;
    }

    .giuseppe-panel {
        width: 100%;
        height: 30%;
        border-right: none;
        border-bottom: 3px solid var(--oro-toscana);
        padding: 2rem;
    }

    .giuseppe-avatar {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }

    .giuseppe-name {
        font-size: 2rem;
    }

    .giuseppe-title {
        font-size: 1rem;
    }

    .conversation-panel {
        width: 100%;
        height: 70%;
    }

    .zoli-chat-header h3 {
        font-size: 1.5rem;
    }

    .zoli-chat-messages {
        padding: 1.5rem;
    }

    .zoli-message-content {
        max-width: 90%;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }

    .zoli-option-button {
        font-size: 1rem;
        padding: 1rem 1.3rem;
    }

    .zoli-chat-input-container {
        padding: 1rem 1.5rem;
    }

    .zoli-chat-input {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .zoli-chat-send {
        width: 50px;
        height: 50px;
    }
}
