/**
 * Comments Plugin Styles
 * 
 * Stylesheet for the Comments Extended feature frontend and admin display.
 * Provides styling for comment forms, comment lists, replies, and admin interface.
 * 
 * @package CodeLinden_Toolkit
 * @since 1.0.0
 */

/* Form Styles */
/* Main comments widget wrapper container */
.comments-widget-wrapper {
    /* Set maximum width to 100% of parent */
    max-width: 100%;
}

/* Form title heading element */
.comments-form-title {
    /* Add bottom margin for spacing */
    margin-bottom: 20px;
    /* Set font size to 24 pixels */
    font-size: 24px;
    /* Set font weight to bold */
    font-weight: bold;
}

/* Comment form container */
.comments-form {
    /* Add bottom margin for spacing below form */
    margin-bottom: 40px;
}

/* Form group wrapper for each input field */
.comments-form .form-group {
    /* Add bottom margin for spacing between form groups */
    margin-bottom: 20px;
}

/* Form label elements */
.comments-form label {
    /* Display as block element (full width) */
    display: block;
    /* Add bottom margin for spacing below label */
    margin-bottom: 5px;
    /* Set font weight to semi-bold */
    font-weight: 600;
}

/* Required field indicator (asterisk) */
.comments-form .required {
    /* Set color to red for required indicator */
    color: #dc3232;
}

/* Text input and textarea elements */
.comments-form input[type="text"],
.comments-form textarea {
    /* Set width to 100% of parent */
    width: 100%;
    /* Add padding inside input fields */
    padding: 10px 15px;
    /* Set font size to 14 pixels */
    font-size: 14px;
    /* Set line height for better readability */
    line-height: 1.5;
    /* Add smooth transition for all properties */
    transition: all 0.3s ease;
}

/* Textarea element specific styles */
.comments-form textarea {
    /* Set minimum height to 120 pixels */
    min-height: 120px;
    /* Allow vertical resizing only */
    resize: vertical;
}

/* Submit button element */
.comments-submit-btn {
    /* Add padding inside button */
    padding: 12px 30px;
    /* Set font size to 16 pixels */
    font-size: 16px;
    /* Change cursor to pointer on hover */
    cursor: pointer;
    /* Add smooth transition for all properties */
    transition: all 0.3s ease;
}

/* Form message container for success/error feedback */
.comments-form-message {
    /* Add top margin for spacing above message */
    margin-top: 15px;
    /* Add padding inside message container */
    padding: 10px 15px;
    /* Add rounded corners */
    border-radius: 4px;
}

/* Success message styling */
.comments-form-message.success {
    /* Set background color to light green */
    background-color: #d4edda;
    /* Set text color to dark green */
    color: #155724;
    /* Add green border */
    border: 1px solid #c3e6cb;
}

/* Error message styling */
.comments-form-message.error {
    /* Set background color to light red */
    background-color: #f8d7da;
    /* Set text color to dark red */
    color: #721c24;
    /* Add red border */
    border: 1px solid #f5c6cb;
}

/* Accordion Styles */
/* Comments accordion container */
.comments-accordion {
    /* Add top margin for spacing above accordion */
    margin-top: 30px;
}

/* Individual accordion item */
.comment-accordion-item {
    /* Add border around accordion item */
    border: 1px solid #ddd;
    /* Add rounded corners */
    border-radius: 4px;
    /* Add bottom margin for spacing between items */
    margin-bottom: 15px;
    /* Set background color to white */
    background: #fff;
    /* Hide overflow content */
    overflow: hidden;
}

/* Active accordion item styling */
.comment-accordion-item.active {
    /* Change border color to blue when active */
    border-color: #0073aa;
}

/* Accordion header (clickable area) */
.comment-accordion-header {
    /* Add padding inside header */
    padding: 15px 20px;
    /* Change cursor to pointer on hover */
    cursor: pointer;
    /* Use flexbox layout */
    display: flex;
    /* Space items evenly with space between */
    justify-content: space-between;
    /* Align items vertically centered */
    align-items: center;
    /* Set background color to light gray */
    background: #f9f9f9;
    /* Add smooth transition for background color */
    transition: background 0.3s ease;
}

/* Accordion header hover state */
.comment-accordion-header:hover {
    /* Change background to slightly darker gray on hover */
    background: #f0f0f0;
}

/* Active accordion item header styling */
.comment-accordion-item.active .comment-accordion-header {
    /* Change background to light blue when active */
    background: #e8f4f8;
}

/* Heading element inside accordion header */
.comment-accordion-header h4 {
    /* Remove default margin */
    margin: 0;
    /* Set font size to 18 pixels */
    font-size: 18px;
    /* Set font weight to semi-bold */
    font-weight: 600;
}

/* Comment date display */
.comment-date {
    /* Set text color to gray */
    color: #666;
    /* Set font size to 14 pixels */
    font-size: 14px;
}

/* Toggle button/text in accordion header */
.comment-toggle {
    /* Set text color to blue */
    color: #0073aa;
    /* Set font weight to semi-bold */
    font-weight: 600;
    /* Set font size to 14 pixels */
    font-size: 14px;
}

/* Accordion content area (hidden by default) */
.comment-accordion-content {
    /* Hide content by default */
    display: none;
    /* Add padding inside content area */
    padding: 20px;
    /* Add top border to separate from header */
    border-top: 1px solid #ddd;
}

/* Active accordion item content (visible) */
.comment-accordion-item.active .comment-accordion-content {
    /* Show content when accordion is active */
    display: block;
}

/* Comment content area */
.comment-content {
    /* Add bottom margin for spacing */
    margin-bottom: 20px;
    /* Set line height for better readability */
    line-height: 1.6;
}

/* Paragraph elements inside comment content */
.comment-content p {
    /* Add bottom margin for spacing between paragraphs */
    margin-bottom: 10px;
}

/* Replies Styles */
/* Replies container section */
.comment-replies {
    /* Add top margin for spacing above replies */
    margin-top: 20px;
    /* Add top padding for spacing */
    padding-top: 20px;
    /* Add top border to separate from comment */
    border-top: 1px solid #eee;
}

/* Replies heading element */
.comment-replies h5 {
    /* Add bottom margin for spacing below heading */
    margin-bottom: 15px;
    /* Set font size to 16 pixels */
    font-size: 16px;
    /* Set text color to dark gray */
    color: #333;
}

/* Individual reply item */
.comment-reply {
    /* Add bottom margin for spacing between replies */
    margin-bottom: 15px;
    /* Add padding inside reply box */
    padding: 15px;
    /* Set background color to light gray */
    background: #f9f9f9;
    /* Add blue left border for visual distinction */
    border-left: 4px solid #0073aa;
    /* Add rounded corners */
    border-radius: 4px;
}

/* Bold text in reply (author name) */
.comment-reply strong {
    /* Display as block element */
    display: block;
    /* Add bottom margin for spacing */
    margin-bottom: 5px;
    /* Set text color to blue */
    color: #0073aa;
}

/* Reply date display */
.reply-date {
    /* Set text color to gray */
    color: #666;
    /* Set font size to 12 pixels */
    font-size: 12px;
    /* Add left margin for spacing from author name */
    margin-left: 10px;
}

/* Reply content area */
.reply-content {
    /* Add top margin for spacing above content */
    margin-top: 10px;
    /* Set line height for better readability */
    line-height: 1.6;
}

/* Paragraph elements inside reply content */
.reply-content p {
    /* Add bottom margin for spacing between paragraphs */
    margin-bottom: 8px;
}

/* Pagination Styles */
/* Comments pagination container */
.comments-pagination {
    /* Add top margin for spacing above pagination */
    margin-top: 30px;
    /* Center align pagination */
    text-align: center;
}

/* Unordered list inside pagination */
.comments-pagination ul {
    /* Display as inline-block for centering */
    display: inline-block;
    /* Remove default list style */
    list-style: none;
    /* Remove default margin */
    margin: 0;
    /* Remove default padding */
    padding: 0;
}

/* List item inside pagination */
.comments-pagination li {
    /* Display as inline-block for horizontal layout */
    display: inline-block;
    /* Add horizontal margin for spacing between items */
    margin: 0 5px;
}

/* Pagination link and span elements */
.comments-pagination a,
.comments-pagination span {
    /* Display as inline-block */
    display: inline-block;
    /* Add padding inside pagination elements */
    padding: 8px 12px;
    /* Add border around pagination elements */
    border: 1px solid #ddd;
    /* Add rounded corners */
    border-radius: 4px;
    /* Remove underline from links */
    text-decoration: none;
    /* Set text color to blue */
    color: #0073aa;
    /* Add smooth transition for all properties */
    transition: all 0.3s ease;
}

/* Pagination link hover state */
.comments-pagination a:hover {
    /* Change background to blue on hover */
    background: #0073aa;
    /* Change text color to white on hover */
    color: #fff;
    /* Change border color to blue on hover */
    border-color: #0073aa;
}

/* Current page indicator in pagination */
.comments-pagination .current {
    /* Set background color to blue */
    background: #0073aa;
    /* Set text color to white */
    color: #fff;
    /* Set border color to blue */
    border-color: #0073aa;
}

/* Reply box (nested comment box) - compact styling */
.comment-box.reply-box {
    padding: 7px !important;
    border-left-width: 2px !important;
}

/* Main comment text only (not replies) - semi-bold */
.comment-box > .comment-content-wrapper .comment-text {
    font-weight: 600;
}

/* No Comments Message */
/* Container for "no comments" message */
.no-comments {
    /* Center align text */
    text-align: center;
    /* Add padding around message */
    padding: 40px 20px;
    /* Set text color to gray */
    color: #666;
    /* Set text style to italic */
    font-style: italic;
}

/* Admin Styles */
/* Reply meta box container in admin */
.comments-reply-meta-box {
    /* Add vertical padding */
    padding: 10px 0;
}

/* Textarea element inside reply meta box */
.comments-reply-meta-box textarea {
    /* Set width to 100% of parent */
    width: 100%;
    /* Set minimum height to 100 pixels */
    min-height: 100px;
    /* Add bottom margin for spacing */
    margin-bottom: 10px;
}

/* Individual reply item in admin meta box */
.comment-reply-item {
    /* Add bottom margin for spacing between items */
    margin-bottom: 15px;
    /* Add padding inside reply item */
    padding: 15px;
    /* Set background color to light gray */
    background: #f9f9f9;
    /* Add blue left border for visual distinction */
    border-left: 4px solid #0073aa;
}

/* Responsive */
/* Media query for screens smaller than 768 pixels */
@media (max-width: 768px) {
    /* Accordion header on mobile */
    .comment-accordion-header {
        /* Allow flex items to wrap to new line */
        flex-wrap: wrap;
    }
    
    /* Heading inside accordion header on mobile */
    .comment-accordion-header h4 {
        /* Set width to 100% to take full width */
        width: 100%;
        /* Add bottom margin for spacing */
        margin-bottom: 5px;
    }
    
    /* Comment date and toggle on mobile */
    .comment-date,
    .comment-toggle {
        /* Reduce font size to 12 pixels on mobile */
        font-size: 12px;
    }
}
