/* Halink Advanced Post Comments - Premium Styles */
:root {
    --halink-primary: #6b0300;
    --halink-primary-hover: #6b0300;
    --halink-star-color: #fbbf24;
    --halink-star-empty: #d1d5db;
    --halink-bg-soft: #f8fafc;
    --halink-border: #e2e8f0;
    --halink-text-main: #1e293b;
    --halink-text-muted: #64748b;
    --halink-radius: 12px;
}

/* Comment Form Container */
#respond {
    background: #fff;
    padding: 2rem;
    border-radius: var(--halink-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--halink-border);
    margin-bottom: 3rem;
    font-family: 'Inter', sans-serif;
}

#reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--halink-text-main);
    margin-bottom: 1.5rem;
}

/* Star Rating Input */
.halink-rating-container {
    margin-bottom: 1.5rem;
}

.halink-rating-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--halink-text-main);
}

.halink-star-rating {
    float: left;
    height: 46px;
    padding: 0 10px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.halink-star-rating:not(:checked) > input {
    position: absolute;
    top: -9999px;
}

.halink-star-rating:not(:checked) > label {
    float: right;
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    font-size: 30px;
    color: var(--halink-star-empty);
    transition: color 0.2s ease;
}

.halink-star-rating:not(:checked) > label:before {
    content: '★ ';
}

.halink-star-rating > input:checked ~ label {
    color: var(--halink-star-color);
}

.halink-star-rating:not(:checked) > label:hover,
.halink-star-rating:not(:checked) > label:hover ~ label {
    color: #ff9d0b;
}

.halink-star-rating > input:checked + label:hover,
.halink-star-rating > input:checked + label:hover ~ label,
.halink-star-rating > input:checked ~ label:hover,
.halink-star-rating > input:checked ~ label:hover ~ label,
.halink-star-rating > label:hover ~ input:checked ~ label {
    color: #ff9d0b;
}

/* Form Fields Styling */
.comment-form-author, .comment-form-email, .comment-form-comment {
    margin-bottom: 1.2rem;
}

#respond input[type="text"], 
#respond input[type="email"], 
#respond textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--halink-border);
    border-radius: 8px;
    background: var(--halink-bg-soft);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

#respond input:focus, #respond textarea:focus {
    outline: none;
    border-color: var(--halink-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

#respond .form-submit input[type="submit"] {
    background: var(--halink-primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
}

#respond .form-submit input[type="submit"]:hover {
    background: var(--halink-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Displayed Stars in Comments */
.halink-comment-rating {
    margin-bottom: 8px;
    display: flex;
    gap: 2px;
}

.halink-star {
    font-size: 16px;
    color: var(--halink-star-empty);
}

.halink-star.filled {
    color: var(--halink-star-color);
}

/* Responsive Grid for Author/Email */
@media (min-width: 768px) {
    .comment-form-author, .comment-form-email {
        width: 48%;
        display: inline-block;
    }
    .comment-form-email {
        float: right;
    }
    .comment-form-comment {
        clear: both;
    }
}

/* Clean up WordPress Defaults */
.comment-notes {
    color: var(--halink-text-muted);
    font-size: 13px;
    margin-bottom: 1.5rem;
}
