/* my-custom-comments.css */

.my-custom-comment-system-wrapper {
    font-family: Arial, sans-serif;
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fcfbf9; /* Lighter background */
    border: 1px solid #edebe7; /* Soft border */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Subtle shadow */
    color: #333;
}
.comment-content {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}
.comment-system-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #4a4a4a;
    text-align: center;
    font-weight: normal;
}

.comment-input-area {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.comment-input-area textarea {
    width: calc(100% - 20px);
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 1em;
    resize: vertical; /* Allow vertical resize */
}

.comment-input-area input[type="text"],
.comment-input-area input[type="email"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9em;
}

.comment-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.formatting-buttons .format-btn,
.comment-toolbar .emoji-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-right: 5px;
    color: #555;
    transition: background-color 0.2s;
}

.formatting-buttons .format-btn:hover,
.comment-toolbar .emoji-btn:hover {
    background-color: #e0e0e0;
}

.formatting-buttons .bold-btn { font-weight: bold; }
.formatting-buttons .italic-btn { font-style: italic; }
.formatting-buttons .underline-btn { text-decoration: underline; }

.send-btn {
    background-color: #7a6e60; /* Adjusted to match screenshot button color */
    color: white;
    padding: 8px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background-color: #635a4d;
}

.send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


.comment-count-display {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.comment-list-container {
    padding-top: 15px;
}

.comment-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comment-author-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author-info img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-right: 10px;
    border: 1px solid #ddd;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.comment-author-info strong {
    color: #4a4a4a; /* Matched screenshot name color */
    font-size: 1.1em;
    font-weight: 600;
}

.comment-author-info span {
    color: #888;
    font-size: 0.9em;
    margin-left: 8px;
}

.comment-content {
    line-height: 1.6;
    color: #333;
    word-wrap: break-word; /* Ensure long words break */
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.like-btn, .reply-btn, .submit-reply-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.like-btn {
    color: #666;
    margin-right: 10px;
}
.like-btn:hover {
    background-color: #f0f0f0;
}
.like-btn .heart-icon {
    color: #999;
}


.reply-btn {
    color: #7a6e60; /* Match screenshot reply color */
    text-decoration: none;
}
.reply-btn:hover {
    background-color: #f0f0f0;
}

.comment-replies {
    margin-left: 30px;
    border-left: 2px solid #eee;
    padding-left: 10px;
    margin-top: 15px;
}

.comment-replies .comment-item {
    margin-top: 15px;
    margin-bottom: 0;
}

/* Reply Form Specific Styles */
.reply-form-container {
    padding-left: 60px; /* Aligns with comment content */
    margin-top: 15px;
}
.reply-form-container textarea {
    width: calc(100% - 20px);
    min-height: 50px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 0.9em;
    resize: vertical;
}

.submit-reply-btn {
    background-color: #7a6e60; /* Matching send button color */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    float: right;
    font-size: 0.9em;
}

.submit-reply-btn:hover {
    background-color: #635a4d;
}