/* public/mcc-style.css */

/* --- CAROUSEL --- */
.mcc-carousel-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 800px;
    margin: 0 auto 20px auto;
}
.mcc-forums-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px; /* Space for shadow/badges */
    scrollbar-width: none; 
}
.mcc-forums-list::-webkit-scrollbar { display: none; }

.mcc-forum-card {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: visible; /* Allow badge to pop out */
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.mcc-forum-card:hover { transform: scale(1.05); }

.mcc-card-overlay {
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    border-radius: 12px;
}
.mcc-card-overlay span {
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.2;
}

/* UNREAD BADGE (UPDATED) */
.mcc-unread-badge {
    position: absolute;
    top: -6px;  /* Adjusted for larger size */
    right: -6px; /* Adjusted for larger size */
    background: #ef5455; /* New Color */
    color: white;
    border-radius: 50%;
    width: 22px;  /* Increased by 10% (was 20px) */
    height: 22px; /* Increased by 10% (was 20px) */
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.mcc-nav-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
}
.mcc-nav-btn:hover { background: #f0f0f0; }

/* --- EXISTING CHAT --- */
#mcc-wrap { 
    border: 1px solid #ddd; 
    padding: 0;
    max-width: 800px;
    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;
}

/* --- LOGIN UI --- */
.mcc-login-gate {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    border: 1px solid #ddd;
    margin: 20px auto;
    max-width: 800px;
}
.mcc-login-overlay {
    background: rgba(255, 255, 255, 0.85);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.mcc-login-content h3 { margin: 0 0 10px 0; font-size: 24px; color: #333; }
.mcc-login-content p { font-size: 16px; color: #555; margin-bottom: 20px; }
.mcc-login-btn {
    display: inline-block; padding: 12px 25px; background: #D6336C;
    color: #fff !important; text-decoration: none; font-weight: bold;
    border-radius: 25px;
}

/* --- CHAT AREA --- */
.mcc-messages {
    height: 500px;
    overflow-y: auto;
    background: #fdfdfd;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; 
}
.mcc-msg { display: flex; gap: 15px; width: 100%; box-sizing: border-box; }
.mcc-nested-reply { margin-left: 50px; width: calc(100% - 50px); border-left: 3px solid #eee; padding-left: 10px; }

.mcc-avatar-column { flex-shrink: 0; width: 70px; display: flex; flex-direction: column; align-items: center; }
.mcc-avatar-wrapper { position: relative; width: 60px; height: 60px; }
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); }
.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; }
.mcc-offline { background-color: #ccc; }

.mcc-content-column { flex-grow: 1; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px 15px; position: relative; }
.mcc-me .mcc-content-column { background: #fff0f6; border-color: #ffdeeb; }

.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; }

.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-body { font-size: 14px; line-height: 1.5; color: #444; word-break: break-word; }

/* EDIT CONTROLS */
.mcc-edit-input { width: 100%; border: 1px solid #ddd; padding: 5px; border-radius: 5px; font-size: 13px; }
.mcc-edit-controls { margin-top: 5px; text-align: right; }
.mcc-save-edit-btn { background: #4cd964; border:none; color:#fff; padding:4px 10px; border-radius:4px; cursor:pointer; margin-right:5px; }
.mcc-cancel-edit-btn { background: #ccc; border:none; color:#333; padding:4px 10px; border-radius:4px; cursor:pointer; }

.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; margin-left: 10px; }
.mcc-action-icon:hover { color: #D6336C; transform: scale(1.1); }

.mcc-input-area { padding: 15px; background: #fff; border-top: 1px solid #ddd; display: flex; gap: 10px; align-items: flex-start; }
.mcc-input { flex-grow: 1; padding: 12px; border: 1px solid #ddd; border-radius: 12px; outline: none; font-size: 14px; transition: border-color 0.2s; resize: none; font-family: inherit; }
.mcc-input:focus { border-color: #D6336C; }

/* UPDATED SEND BUTTON */
.mcc-send-btn { 
    padding: 0 20px; 
    border-radius: 25px; 
    border: none; 
    background: #D6336C; 
    color: #fff; 
    font-weight: bold; 
    cursor: pointer; 
    height: 45px; 
    align-self: flex-end; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.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; }