/* ============================= */
/* REVIEWS – STRUCTURE */
/* ============================= */

.page-section {
    margin-bottom: var(--space-xl);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-intro {
    max-width: 520px;
    color: var(--text-secondary);
}

/* ============================= */
/* STATS */
/* ============================= */

.reviews-stats {
    margin-top: var(--space-lg);
}

.stat-card {
    text-align: center;
}

/* ============================= */
/* REVIEWS GRID */
/* ============================= */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.review-card h3 {
    font-size: 0.9rem;
}

.review-stars {
    color: #facc15;
    font-size: 0.9rem;
}

.review-message {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: var(--space-sm) 0;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================= */
/* PAGINATION */
/* ============================= */

.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-lg);
}

.reviews-pagination button {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    cursor: pointer;
}

.reviews-pagination button.active {
    background: linear-gradient(
        135deg,
        var(--accent-start),
        var(--accent-end)
    );
    color: #fff;
}

/* ============================= */
/* FORM */
/* ============================= */

.review-cta {
    max-width: 720px;
}

.form-intro {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.form-feedback {
    margin-top: var(--space-sm);
    font-size: 0.75rem;
}

.reviews-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text-secondary);
}

.reviews-pagination a.active {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
}

/* ============================= */
/* REVIEW FORM – UX LEVEL UP */
/* ============================= */

.review-form {
    max-width: 720px;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-start);
    background: rgba(255,255,255,0.06);
}

/* ============================= */
/* RATING */
/* ============================= */

.rating-group {
    margin-top: var(--space-sm);
}

.rating-input {
    display: flex;
    gap: 10px;
}

.rating-input button {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.rating-input button.active,
.rating-input button:hover {
    color: #facc15;
    transform: scale(1.15);
}

/* ============================= */
/* ACTIONS */
/* ============================= */

.form-actions {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-lg {
    height: 44px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================= */
/* FORCE REVIEW FORM LAYOUT */
/* ============================= */

.review-form,
.review-form * {
    box-sizing: border-box;
}

.review-form {
    width: 100%;
    max-width: 720px;
}

.review-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.review-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.review-form textarea {
    min-height: 160px;
    resize: vertical;
}

.review-form input::placeholder,
.review-form textarea::placeholder {
    color: var(--text-muted);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--accent-start);
    background: rgba(255,255,255,0.06);
}

.review-form .rating-group {
    margin-top: var(--space-sm);
}

.review-form .rating-input {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.review-form .rating-input button {
    font-size: 1.6rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.review-form .rating-input button.active,
.review-form .rating-input button:hover {
    color: #facc15;
    transform: scale(1.15);
}

.review-form .form-actions {
    margin-top: var(--space-lg);
}

.review-form .btn-lg {
    width: fit-content;
    min-width: 180px;
    height: 44px;
    padding: 0 24px;
    font-size: 0.85rem;
}

/* ============================= */
/* REVIEW FORM GRID */
/* ============================= */

.review-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.review-form-grid .full {
    grid-column: 1 / -1;
}

/* ============================= */
/* CLICKABLE STATS */
/* ============================= */

.stat-link {
    display: block;                /* gör <a> till block */
    text-decoration: none;         /* ta bort underline */
    color: inherit;                /* behåll textfärg */
}

.stat-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   REVIEWS – FILTER BAR
   ========================================================= */

.reviews-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: var(--space-lg) 0 var(--space-xl);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;

    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;

    color: var(--text-secondary);
    text-decoration: none;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.filter-pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.filter-pill.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(
        135deg,
        var(--accent-start),
        var(--accent-end)
    );
}

/* Accessibility */
.filter-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}



