/**
 * Blog Review Section Styles - Rave Essentials
 *
 * Uses .blog-review- prefix for all classes.
 * Dark theme matching the site's rave aesthetic.
 */

/* ================================
   Section & Heading
   ================================ */
.blog-review-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.blog-review-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    margin-bottom: 25px;
    text-align: center;
}

/* ================================
   Average Rating Summary
   ================================ */
.blog-review-summary {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(40, 0, 40, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.blog-review-avg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-review-avg-score {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.blog-review-avg-stars {
    display: flex;
    gap: 2px;
    font-size: 1.4rem;
}

.blog-review-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Star display colours (review cards and averages) */
.blog-review-avg-stars .small-star,
.blog-review-card-rating .small-star {
    font-size: .8rem;
    margin-right: 0;
}

.blog-review-avg-stars .blog-review-star-full,
.blog-review-card-rating .blog-review-star-full {
    color: #ffd700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.4));
}

.blog-review-avg-stars .blog-review-star-half,
.blog-review-card-rating .blog-review-star-half {
    color: #ffd700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
}

.blog-review-avg-stars .blog-review-star-empty,
.blog-review-card-rating .blog-review-star-empty {
    color: rgba(255, 255, 255, 0.25);
}

/* ================================
   Review Form
   ================================ */
.blog-review-form-wrapper {
    background: rgba(30, 0, 45, 0.6);
    border: 1px solid rgba(255, 0, 255, 0.25);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 35px;
}

.blog-review-form-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

/* Star Selector */
.blog-review-star-selector {
    margin-bottom: 20px;
}

.blog-review-star-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.blog-review-stars-input {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

/* Star wrapper — positions the two click zones over the icon */
.blog-review-star-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    width: 2rem;
    height: 2rem;
}

.blog-review-star-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.15s ease, transform 0.15s ease, filter 0.15s ease;
    pointer-events: none;
    line-height: 1;
}

.blog-review-star-icon.blog-review-star-active {
    color: #ffd700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
    transform: scale(1.1);
}

/* Half-star click zones — each covers half the icon */
.blog-review-star-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 1;
}

.blog-review-star-zone-left {
    left: 0;
}

.blog-review-star-zone-right {
    right: 0;
}

.blog-review-rating-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
}

/* Comment Area */
.blog-review-comment-group {
    margin-bottom: 20px;
}

.blog-review-comment-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.blog-review-textarea {
    width: 100%;
    background: rgba(20, 0, 30, 0.7);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-family: Arial, Helvetica, sans-serif;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-review-textarea:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.blog-review-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.blog-review-char-count {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

.blog-review-char-count.blog-review-char-met {
    color: #00ffaa;
}

.blog-review-char-count.blog-review-char-short {
    color: rgba(255, 255, 255, 0.4);
}

/* Submit Row */
.blog-review-submit-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-review-submit-btn {
    background: linear-gradient(135deg, #5e00ff, #ff00c3);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-review-submit-btn:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(255, 0, 195, 0.5);
    transform: translateY(-2px);
}

.blog-review-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.blog-review-form-message {
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 8px;
    flex: 1;
}

.blog-review-form-success {
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.3);
}

.blog-review-form-error {
    color: #ff6b6b;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
}

/* Already Reviewed */
.blog-review-already-reviewed {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid rgba(0, 255, 170, 0.25);
    border-radius: 12px;
    color: #00ffaa;
    font-size: 0.95rem;
}

.blog-review-already-reviewed .icon {
    margin-right: 8px;
}

/* Login Prompt */
.blog-review-login-prompt {
    text-align: center;
    padding: 25px;
    margin-bottom: 30px;
    background: rgba(40, 0, 40, 0.4);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.blog-review-login-prompt a {
    color: #ff00ff;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-review-login-prompt a:hover {
    color: #ff66e0;
}

/* ================================
   Review Cards
   ================================ */
.blog-review-list {
    margin-top: 10px;
}

.blog-review-card {
    background: rgba(30, 0, 45, 0.5);
    border: 1px solid rgba(255, 0, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.blog-review-card:hover {
    border-color: rgba(255, 0, 255, 0.35);
}

.blog-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-review-card-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-review-card-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-review-card-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.blog-review-card-rating {
    display: flex;
    gap: 1px;
    font-size: 1.1rem;
}

.blog-review-card-body {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-review-card-body p {
    margin: 0;
}

.blog-review-card-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-review-delete-btn {
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.4);
    color: #ff6b6b;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-review-delete-btn:hover {
    background: rgba(255, 100, 100, 0.15);
    border-color: #ff6b6b;
}

.blog-review-delete-btn .icon {
    margin-right: 4px;
}

/* ================================
   Load More
   ================================ */
.blog-review-load-more {
    text-align: center;
    margin: 25px 0;
}

.blog-review-load-more-btn {
    background: transparent;
    border: 2px solid rgba(255, 0, 255, 0.4);
    color: #ff00ff;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-review-load-more-btn:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
    .blog-review-section {
        padding: 0 10px;
    }

    .blog-review-heading {
        font-size: 1.4rem;
    }

    .blog-review-form-wrapper {
        padding: 20px 15px;
    }

    .blog-review-star-wrapper {
        width: 1.6rem;
        height: 1.6rem;
    }

    .blog-review-star-icon {
        font-size: 1.6rem;
    }

    .blog-review-card {
        padding: 15px;
    }

    .blog-review-card-header {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .blog-review-avg {
        flex-direction: column;
        gap: 6px;
    }

    .blog-review-avg-score {
        font-size: 1.8rem;
    }

    .blog-review-submit-btn {
        width: 100%;
    }

    .blog-review-submit-row {
        flex-direction: column;
    }

    .blog-review-form-message {
        width: 100%;
    }
}
