/* ============================================
   COMMENTS SECTION STYLES
   ============================================ */

/* Main Container */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.comments-container {
    max-width: 800px;
}

/* Header */
.comments-header {
    margin-bottom: 1.5rem;
}

.comments-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.comments-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.average-rating strong {
    font-size: 1.1rem;
    color: #333;
}

/* Stars */
.stars {
    color: #f5a623;
    letter-spacing: 2px;
}

.stars .far {
    color: #ddd;
}

/* Comments List */
.comments-list {
    margin-bottom: 2rem;
}

/* Individual Comment */
.comment-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4a90a4;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.comment-text p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* Source Badges (commented out for future use) */
/*
.source-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.source-onsite {
    background: #e8f5e9;
    color: #2e7d32;
}

.source-google {
    background: #e3f2fd;
    color: #1976d2;
}

.source-trustpilot {
    background: #e8f5e9;
    color: #00b67a;
}

.source-facebook {
    background: #e3f2fd;
    color: #1877f2;
}
*/

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.no-comments i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* ============================================
   COMMENT FORM
   ============================================ */

.comment-form-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.comment-form-wrapper h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-intro {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Form Groups */
.comment-form .form-group {
    margin-bottom: 1.25rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.comment-form .required {
    color: #d32f2f;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #4a90a4;
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 0;
    transition: color 0.15s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #f5a623;
}

/* Form Footer */
.form-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.posting-as {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* ============================================
   DISABLED FORM STATE (Non-subscribed)
   ============================================ */

.form-disabled {
    position: relative;
}

.form-disabled .comment-form {
    opacity: 0.4;
    pointer-events: none;
    filter: blur(2px);
}

.subscribe-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.subscribe-message {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.subscribe-message i {
    font-size: 2.5rem;
    color: #4a90a4;
    margin-bottom: 1rem;
}

.subscribe-message p {
    margin-bottom: 1rem;
    color: #555;
}

.subscribe-message .btn {
    margin-bottom: 1rem;
}

.login-link {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.login-link a {
    color: #4a90a4;
}

/* ============================================
   CONFIRMATION MESSAGE
   ============================================ */

.comment-confirmation {
    text-align: center;
    padding: 2rem 1rem;
}

.comment-confirmation i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.comment-confirmation h3 {
    color: #333;
    margin-bottom: 1rem;
}

.comment-confirmation p {
    color: #666;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .comment-item {
        padding: 1rem;
    }
    
    .comments-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .posting-as {
        text-align: center;
    }
    
    .star-rating-input label {
        font-size: 1.75rem;
    }
}
