/**
 * Chatly App View - chatly_appview.css
 * 카카오톡 스타일의 채팅방 UI
 */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #b2c7d9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 852px;
    background-color: #a7b7c5;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
}

.app-header {
    background-color: #a7b7c5;
    color: #000;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.app-header h1 {
    margin: 0;
    font-size: 1em;
    flex-grow: 1;
    text-align: center;
}

.back-button {
    font-size: 24px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.header-icons span {
    margin-left: 15px;
    font-size: 18px;
}

.chat-screen {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #a7b7c5;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message.received {
    align-items: flex-start;
}

.chat-message.sent {
    align-items: flex-end;
}

.profile {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    background-color: #eee;
    border-radius: 15px;
    margin-right: 8px;
    background-image: url('data:image/svg+xml,...'); /* 임시 프로필 이미지 */
}

.speaker-name {
    font-size: 14px;
    font-weight: 500;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.received .message-bubble {
    background-color: #fff;
    border-top-left-radius: 0;
}

.chat-message.sent .message-bubble {
    background-color: #fee500;
    border-top-right-radius: 0;
}

.chat-message.system {
    align-items: center;
    font-size: 12px;
    color: #fff;
    margin: 15px 0;
}
.chat-message.system span {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
}

/* 퀴즈 스타일 */
.quiz-container {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
}
.chat-message.sent .quiz-container {
    background-color: #f0e4a3;
}
.quiz-icon {
    font-weight: bold;
    color: #ff6f00;
    margin-bottom: 5px;
}
.quiz-text {
    font-weight: 500;
    margin-bottom: 8px;
}
.quiz-hint {
    font-size: 13px;
    color: #555;
}