/* XTREMEOFFICE - REVIEW STYLING */

.review-page { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; }

/* Hero */
.review-hero {
    text-align: center; padding: 36px 20px 28px; margin-bottom: 24px;
    background: linear-gradient(135deg, #7c3aed, #a855f7); border-radius: 16px; color: white;
    position: relative; overflow: hidden;
}
.review-hero::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 180px; height: 180px; background: rgba(255,255,255,0.06); border-radius: 50%;
}
.review-hero::after {
    content: ''; position: absolute; bottom: -30px; left: -30px;
    width: 120px; height: 120px; background: rgba(255,255,255,0.04); border-radius: 50%;
}
.review-dex-img { width: 140px; height: auto; margin-bottom: 16px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)); position: relative; z-index: 1; }
.review-hero h1 { font-size: 1.6em; margin: 0 0 6px; position: relative; z-index: 1; }
.review-hero p { opacity: 0.85; margin: 0; position: relative; z-index: 1; }

/* Container */
.review-container { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.review-loading { text-align: center; padding: 40px; color: #888; }
.review-error { background: #fef2f2; color: #dc2626; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; text-align: center; }
.review-success { text-align: center; padding: 40px 20px; }
.review-success .success-icon { font-size: 3em; margin-bottom: 12px; }
.review-success h2 { color: #7c3aed; }
.flagged-note { color: #92400e; background: #fef3c7; padding: 10px; border-radius: 8px; font-size: 0.9em; }
.btn-back-home {
    display: inline-block; margin-top: 20px; padding: 12px 28px; background: #7c3aed;
    color: white; border-radius: 8px; text-decoration: none; font-weight: 600;
}

/* Order info */
.review-order-info {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: #f3f0ff; border-radius: 8px; margin-bottom: 24px;
}
.review-date { color: #666; font-size: 0.9em; }

/* Sections */
.review-section { margin-bottom: 28px; }
.review-section h2 { font-size: 1.15em; margin-bottom: 6px; color: #333; }
.review-hint { font-size: 0.85em; color: #888; margin-bottom: 12px; }

/* Rapportcijfer selector */
.rapportcijfer-selector { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.rc-btn {
    width: 44px; height: 44px; border: 2px solid #e5e7eb; border-radius: 10px;
    background: white; font-size: 1.1em; font-weight: 700; cursor: pointer;
    color: #555; transition: all 0.15s;
}
.rc-btn:hover { border-color: #a855f7; color: #7c3aed; }
.rc-btn.active { background: #7c3aed; color: white; border-color: #7c3aed; }

/* Textareas */
.review-textarea { width: 100%; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 0.95em; resize: vertical; }
.review-textarea:focus { outline: none; border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,0.1); }
.review-textarea-sm { width: 100%; padding: 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 0.9em; resize: vertical; margin-top: 8px; }

/* Product review cards */
.product-review-card {
    border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px;
    overflow: hidden; transition: border-color 0.2s;
}
.product-review-card.active { border-color: #a855f7; }
.pr-header {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
    background: #fafafa; transition: background 0.15s;
}
.pr-header:hover { background: #f3f0ff; }
.pr-checkbox input { width: 18px; height: 18px; accent-color: #7c3aed; cursor: pointer; }
.pr-info { flex: 1; }
.pr-info strong { display: block; font-size: 0.95em; }
.pr-info small { color: #888; font-size: 0.8em; }
.pr-body { padding: 14px 16px; background: white; }

/* Stars */
.star-selector { display: flex; gap: 4px; margin-bottom: 4px; }
.star {
    font-size: 2em; color: #d1d5db; cursor: pointer; transition: color 0.15s;
    line-height: 1;
}
.star:hover, .star.active { color: #f59e0b; }

/* Anoniem toggle */
.review-anon { padding: 16px; background: #f9fafb; border-radius: 8px; }
.anon-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.anon-toggle input { width: 18px; height: 18px; accent-color: #7c3aed; }

/* Submit */
.review-submit { text-align: center; margin-top: 8px; }
.btn-review-submit {
    padding: 14px 40px; background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white; border: none; border-radius: 10px; font-size: 1.05em;
    font-weight: 700; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-review-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.btn-review-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ====================================================================
   PUBLIEKE REVIEWS PAGINA
   ==================================================================== */
.reviews-overview { max-width: 800px; margin: 0 auto; padding: 0 16px 40px; }

.reviews-stats {
    display: flex; align-items: center; gap: 24px; padding: 28px 32px;
    background: linear-gradient(135deg, #7c3aed, #a855f7); border-radius: 16px;
    color: white; margin-bottom: 28px; position: relative; overflow: hidden;
}
.reviews-stats::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 180px; height: 180px; background: rgba(255,255,255,0.06); border-radius: 50%;
}
.reviews-stats img { width: 100px; height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)); position: relative; z-index: 1; }
.stats-big { font-size: 3em; font-weight: 800; line-height: 1; }
.stats-label { font-size: 0.9em; opacity: 0.85; }

.review-card {
    background: white; border-radius: 12px; padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 16px;
}
.review-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-naam { font-weight: 700; color: #333; }
.review-rc { 
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
    background: #7c3aed; color: white; border-radius: 16px; font-weight: 700; font-size: 0.9em;
}
.review-card-text { color: #555; line-height: 1.6; margin-bottom: 12px; }
.review-card-products { border-top: 1px solid #f3f4f6; padding-top: 12px; }
.review-product-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.9em; }
.review-stars { color: #f59e0b; letter-spacing: 1px; }
.review-stars-empty { color: #d1d5db; }
.review-card-date { text-align: right; font-size: 0.8em; color: #999; margin-top: 8px; }

/* Dex Reply */
.dex-reply {
    margin-top: 14px; padding: 14px 16px; background: linear-gradient(135deg, #f5f0ff, #faf7ff);
    border-left: 3px solid #8B3A9C; border-radius: 0 10px 10px 0;
}
.dex-reply-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.dex-reply-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.dex-reply-name { font-weight: 700; color: #8B3A9C; font-size: 0.9em; }
.dex-reply-date { font-size: 0.75em; color: #999; margin-left: auto; }
.dex-reply-text { color: #555; font-size: 0.9em; line-height: 1.6; }

/* Header rapportcijfer badge */
.header-rating {
    display: flex; align-items: center; gap: 6px; padding: 4px 12px;
    background: rgba(255,255,255,0.15); border-radius: 20px; cursor: pointer;
    text-decoration: none; color: white; transition: background 0.2s; font-size: 0.85em;
}
.header-rating:hover { background: rgba(255,255,255,0.25); }
.header-rating-score { font-weight: 800; font-size: 1.1em; }
.header-rating-stars { color: #fbbf24; }

/* Product pagina sterren */
.product-rating-inline {
    display: flex; align-items: center; gap: 8px; margin: 4px 0 8px;
    font-size: 0.9em;
}
.product-rating-inline .stars { color: #f59e0b; font-size: 1.1em; letter-spacing: 1px; }
.product-rating-inline a { color: #7c3aed; text-decoration: none; font-size: 0.85em; }
.product-rating-inline a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
    .review-hero { padding: 24px 16px; }
    .review-hero h1 { font-size: 1.3em; }
    .review-container { padding: 16px; }
    .rapportcijfer-selector { gap: 4px; }
    .rc-btn { width: 38px; height: 38px; font-size: 1em; }
    .reviews-stats { flex-direction: column; text-align: center; gap: 8px; }
}
