/*
* Comment System Styles
* Author: GitHub Copilot
* Version: 1.0
*/

/* Comment card */
.comment-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(13, 38, 59, 0.06);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

/* Form inputs */
#guest-comment-form .form-floating {
    position: relative;
}

#guest-comment-form .form-control {
    height: auto;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 15px;
    color: #222;
    box-shadow: none;
}

#guest-comment-form textarea.form-control {
    min-height: 120px;
    max-height: 320px;
    resize: vertical;
    padding-top: 16px;
}

#guest-comment-form .form-floating label {
    left: 16px;
    top: 10px;
    color: #646f79;
    font-size: 14px;
    pointer-events: none;
}

#guest-comment-form .form-control:focus {
    outline: none;
    border-color: #8a63e6;
    box-shadow: 0 8px 22px rgba(138, 99, 230, 0.12);
}

/* Submit button */
#submit-comment.vip-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
}

/* Bubble styles (scaled down to better fit near the character video) */
.comment-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 14px;
    position: relative;
    display: inline-block;
    background: #fbfbfb;
    color: #111;
    box-shadow: 0 6px 18px rgba(7, 20, 32, 0.06);
    font-size: 13px;
    line-height: 1.3;
}

.comment-bubble.me {
    margin-left: auto;
    background: linear-gradient(135deg, #6f42c1, #8a63e6);
    color: #fff;
}

.comment-meta {
    font-size: 11px;
    color: #7a8590;
    margin-top: 6px;
}

.comment-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #43515a;
    flex: 0 0 40px;
    font-size: 16px;
}

.avatar.me {
    background: linear-gradient(135deg, #6f42c1, #8a63e6);
    color: #fff;
}

/* Tail for bubbles (kept simple and subtle) */
.comment-bubble::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: transparent;
    transform: rotate(45deg);
}

.comment-bubble:not(.me)::after {
    left: -5px;
    top: 16px;
    background: #fbfbfb;
    box-shadow: 0 8px 22px rgba(7, 20, 32, 0.06);
}

.comment-bubble.me::after {
    right: -5px;
    top: 16px;
    background: linear-gradient(135deg, #6f42c1, #8a63e6);
}

@media (max-width: 768px) {
    .comment-bubble {
        max-width: 100%;
    }
    
    #guest-comment-form .col-md-4,
    #guest-comment-form .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #guest-comment-form .form-floating {
        margin-bottom: 8px;
    }
}
