/* =========================================
   Chat Fullscreen Toggle Styles
   Isolated from main chatbot logic.
   ========================================= */

.chat-fullscreen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    flex-shrink: 0;
    background: transparent;
    color: var(--clr-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-fullscreen-btn:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    background-color: rgba(213, 175, 54, 0.08);
}

.chat-fullscreen-btn .fs-icon-collapse {
    display: none;
}

.chat-fullscreen-btn .fs-icon-expand {
    display: block;
}

/* Fullscreen state: swap icons */
.chat-container.is-fullscreen .chat-fullscreen-btn .fs-icon-expand {
    display: none;
}

.chat-container.is-fullscreen .chat-fullscreen-btn .fs-icon-collapse {
    display: block;
}

/* Fullscreen Overlay */
.chat-fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.chat-fullscreen-overlay.is-visible {
    display: block;
}

/* Fullscreen Container State */
.chat-container.is-fullscreen {
    position: fixed;
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(96vw, 1200px);
    height: 94vh;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-container.is-fullscreen .chat-messages {
    flex: 1;
    max-height: none;
    min-height: 0;
}

/* =========================================
   Responsive: Fullscreen on smaller screens
   ========================================= */
@media (max-width: 992px) {
    .chat-container.is-fullscreen {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .chat-container.is-fullscreen {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }
}
