/**
 * Kreativtek Reviews - Public Styles
 * Author: Kreativtek.net
 */

/* Reviews Container */
.kreativtek-reviews-container,
.kreativtek-reviews-list {
    margin: 20px 0;
    padding: 0;
}

/* Review Item */
.kreativtek-review-item {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.kreativtek-review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Review Header */
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.review-meta {
    flex: 1;
}

.review-author {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #14171a;
    margin-bottom: 5px;
}

/* Rating Stars */
.review-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.review-rating .star {
    color: #ffc107;
    font-size: 18px;
}

.review-rating .star.empty {
    color: #ddd;
}

.review-rating .rating-number {
    margin-left: 8px;
    font-size: 14px;
    color: #657786;
    font-weight: 500;
}

/* Platform Badge */
.review-platform-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-platform-badge.platform-google {
    background: #4285f4;
    color: #fff;
}

.review-platform-badge.platform-facebook {
    background: #1877f2;
    color: #fff;
}

.review-platform-badge.platform-bing {
    background: #008373;
    color: #fff;
}

/* Review Content */
.review-content {
    margin: 15px 0;
    line-height: 1.6;
    color: #14171a;
}

.review-content p {
    margin: 0;
}

/* Review Footer */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
    font-size: 14px;
}

.review-date {
    color: #657786;
}

.review-link {
    color: #1da1f2;
    text-decoration: none;
    font-weight: 500;
}

.review-link:hover {
    text-decoration: underline;
}

/* Feedback Form */
.kreativtek-feedback-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kreativtek-feedback-form-container h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #14171a;
    text-align: center;
}

.kreativtek-form .form-row {
    margin-bottom: 20px;
}

.kreativtek-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #14171a;
}

.kreativtek-form .required {
    color: #e74c3c;
}

.kreativtek-form input[type="text"],
.kreativtek-form input[type="email"],
.kreativtek-form input[type="tel"],
.kreativtek-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.kreativtek-form input:focus,
.kreativtek-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Star Rating Input */
.rating-input {
    margin: 10px 0;
}

.star-rating {
    display: flex;
    gap: 5px;
    font-size: 32px;
    cursor: pointer;
}

.star-rating .star {
    color: #ddd;
    transition: color 0.2s ease;
    cursor: pointer;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffc107;
}

/* Platform Checkboxes */
.platform-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.platform-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.platform-checkbox:hover {
    border-color: #667eea;
    background: #f7f9fc;
}

.platform-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Submit Button */
.kreativtek-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kreativtek-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.kreativtek-submit-btn:active {
    transform: translateY(0);
}

.kreativtek-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* No Reviews Message */
.kreativtek-no-reviews,
.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #657786;
    font-style: italic;
}

/* Grid Layout */
.kreativtek-reviews-container.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .kreativtek-review-item {
        padding: 15px;
    }

    .review-header {
        flex-wrap: wrap;
    }

    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .kreativtek-feedback-form-container {
        padding: 20px;
    }

    .platform-checkboxes {
        flex-direction: column;
    }
}
