/* public/mcc-style.css */

#mcc-wrap { 
    border: 1px solid #ddd; 
    padding: 0;
    max-width: 800px; /* Wider for forum view */
    margin: 20px auto; 
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
}

/* FORUM MESSAGES CONTAINER */
.mcc-messages {
    height: 500px;
    overflow-y: auto;
    background: #fdfdfd;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between messages */
}

/* SINGLE MESSAGE ROW */
.mcc-msg {
    display: flex;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* NESTED REPLY (Indent 1 Level) */
.mcc-nested-reply {
    margin-left: 50px; /* Visual nesting */
    width: calc(100% - 50px);
    border-left: 3px solid #eee; /* Visual cue for thread */
    padding-left: 10px;
}

/* AVATAR COLUMN */
.mcc-avatar-column {
    flex-shrink: 0;
    width: 70px; /* Accommodate 60px img + padding */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mcc-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
}

/* Rounded, Bigger Avatar */
img.mcc-avatar-img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Online Status Dot */
.mcc-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.mcc-online { background-color: #4cd964; } /* Green */
.mcc-offline { background-color: #ccc; } /* Grey */


/* CONTENT COLUMN */
.mcc-content-column {
    flex-grow: 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 15px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Header (Name, Time, Status) */
.mcc-header {
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.mcc-author {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}
.mcc-meta-time {
    font-size: 11px;
    color: #999;
}
.mcc-last-active {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
}

/* Reply Context Link */
.mcc-reply-context {
    font-size: 11px;
    margin-bottom: 5px;
    background: #f5f5f5;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}
.mcc-reply-context a {
    color: #D6336C;
    text-decoration: none;
    font-weight: 600;
}
.mcc-reply-context a:hover {
    text-decoration: underline;
}

/* Message Body */
.mcc-body {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    word-break: break-word;
}

/* Footer (Icons) */
.mcc-footer {
    margin-top: 8px;
    text-align: right;
    border-top: 1px solid #f9f9f9;
    padding-top: 6px;
}
.mcc-action-icon {
    color: #aaa;
    transition: color 0.2s, transform 0.2s;
}
.mcc-action-icon:hover {
    color: #D6336C;
    transform: scale(1.1);
}

/* USER HIGHLIGHTS */
.mcc-me .mcc-content-column {
    background: #fff0f6; /* Very light pink for me */
    border-color: #ffdeeb;
}

/* INPUT AREA (Bottom) */
.mcc-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: center;
}
.mcc-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}
.mcc-input:focus {
    border-color: #D6336C;
}
.mcc-send-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    background: #D6336C;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.mcc-send-btn:hover {
    background: #c21b55;
}
.mcc-reply-context-display {
    padding: 5px 15px;
    background: #f0f0f0;
    font-size: 12px;
    color: #555;
    border-top: 1px solid #ddd;
}