/* Guide Chat Page - Poster Style with iOS-like Interface */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #e8e0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Full-screen poster container */
.guide-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background: linear-gradient(180deg, #f5f0f8 0%, #e8e0f0 100%);
    position: relative;
}

/* Header with oval avatar */
.guide-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(180deg, #d4c5e0 0%, #e8e0f0 100%);
}

.guide-avatar-oval {
    width: 140px;
    height: 180px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(74, 59, 92, 0.3);
}

.guide-avatar-oval img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-header h1 {
    font-size: 28px;
    color: #4a3b5c;
    margin-bottom: 5px;
    font-weight: 600;
}

.guide-header .guide-title {
    font-size: 16px;
    color: #6b5b7d;
    font-style: italic;
}

/* Intro message bubble */
.intro-bubble {
    margin: 15px 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.intro-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.intro-bubble p {
    font-size: 16px;
    line-height: 1.5;
    color: #4a3b5c;
}

/* Chat area - larger and scrolling */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    max-height: 50vh;
    min-height: 200px;
}

.message-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* iOS-style message bubbles */
.message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

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

.guide-bubble {
    background: #e1e1e1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-bubble {
    background: #007aff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Visual keyboard (iOS style) */
.visual-keyboard {
    background: #d1d5db;
    padding: 8px;
    border-top: 1px solid #b0b4b8;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

.key-cap {
    background: white;
    border-radius: 6px;
    min-width: 32px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 0 #999;
    cursor: pointer;
    user-select: none;
}

.key-cap:active {
    background: #e0e0e0;
    transform: translateY(2px);
    box-shadow: 0 0 0 #999;
}

.key-cap.wide {
    min-width: 42px;
}

.key-cap.extra-wide {
    min-width: 80px;
    font-size: 16px;
}

.key-cap.space {
    min-width: 200px;
}

.key-cap.gray {
    background: #aeb3b9;
    color: #333;
}

/* Bottom buttons image with hotspots */
.bottom-buttons-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-buttons-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Hotspots over the three buttons */
.speak-hotspot {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 28%;
    height: 80%;
    border-radius: 25px;
    cursor: pointer;
}

.type-hotspot {
    position: absolute;
    bottom: 10%;
    left: 36%;
    width: 28%;
    height: 80%;
    border-radius: 25px;
    cursor: pointer;
}

.done-hotspot {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 28%;
    height: 80%;
    border-radius: 25px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .guide-avatar-oval {
        width: 120px;
        height: 150px;
    }
    
    .guide-header h1 {
        font-size: 24px;
    }
    
    .key-cap {
        min-width: 28px;
        height: 38px;
        font-size: 18px;
    }
    
    .key-cap.space {
        min-width: 140px;
    }
}

/* Visible Hotspots - Matching class names from HTML */
.btn-speak-hotspot,
.btn-type-hotspot,
.btn-done-hotspot {
    position: fixed !important;
    bottom: 2% !important;
    height: 60px !important;
    z-index: 100 !important;
    background: rgba(255, 0, 0, 0.3) !important;
    border: 2px solid red !important;
    border-radius: 12px !important;
}

.btn-speak-hotspot {
    left: 5% !important;
    width: 28% !important;
}

.btn-type-hotspot {
    left: 36% !important;
    width: 28% !important;
}

.btn-done-hotspot {
    right: 5% !important;
    width: 28% !important;
}
