/* ============================================
   IMPLANTREHBERI.COM - REVIEW PAGE STYLES
   Responsive + Modern + Premium Design
   ============================================ */

/* ============================================
   REVIEW HEADER - PREMIUM HERO
   ============================================ */
.review-header {
    background: linear-gradient(135deg, #1A2B48 0%, #2c4063 50%, #1A2B48 100%);
    padding: 3rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.review-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(42, 157, 143, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .review-header {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .review-header {
        padding: 5rem 0;
    }
}

.review-header__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .review-header__grid {
        grid-template-columns: 1fr auto;
        gap: 3rem;
    }
}

.review-header__info {
    text-align: center;
}

@media (min-width: 768px) {
    .review-header__info {
        text-align: left;
    }
}

/* Badge */
.review-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-header__badge--editors_choice {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
}

.review-header__badge--best_value {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
}

.review-header__badge--innovation {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
}

/* Title */
.review-header__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .review-header__title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .review-header__title {
        font-size: 2.75rem;
    }
}

/* Subtitle */
.review-header__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .review-header__subtitle {
        justify-content: flex-start;
        font-size: 1.125rem;
    }
}

/* Country Badge in subtitle */
.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8125rem;
}

.country-badge__flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    overflow: hidden;
}

.country-badge__flag svg {
    width: 100%;
    height: 100%;
}

/* Meta */
.review-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .review-header__meta {
        justify-content: flex-start;
    }
}

/* ============================================
   OVERALL SCORE CARD
   ============================================ */
.overall-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 1.75rem 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    min-width: 180px;
}

.overall-score__value {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.overall-score__value.score--excellent {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.overall-score__value.score--good {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.overall-score__value.score--average {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.overall-score__value.score--poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.overall-score__label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.overall-score__link {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.overall-score__link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ============================================
   CONTENT GRID
   ============================================ */
.review-content {
    padding: 2rem 0;
    background: var(--color-bg);
}

@media (min-width: 768px) {
    .review-content {
        padding: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .review-content {
        padding: 4rem 0;
    }
}

.review-content__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .review-content__grid {
        grid-template-columns: 1fr 340px;
        gap: 3rem;
    }
}

.review-content__main {
    min-width: 0;
}

.review-content__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .review-content__sidebar {
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

/* ============================================
   FEATURED IMAGE
   ============================================ */
.featured-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #f1f5f9;
    aspect-ratio: 16/9;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-image__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 0.875rem;
}

/* ============================================
   REVIEW SECTIONS
   ============================================ */
.review-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1A2B48;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-section__title::before {
    content: '';
    width: 4px;
    height: 1.25em;
    background: linear-gradient(180deg, #2A9D8F, #1a7a6f);
    border-radius: 2px;
}

/* ============================================
   SCORING TABLE
   ============================================ */
.scoring-table-wrapper {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
}

.scoring-table th,
.scoring-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    vertical-align: middle;
}

.scoring-table thead th {
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.scoring-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.scoring-table tbody tr:last-child {
    border-bottom: none;
}

.scoring-table tbody tr:hover {
    background: #f8fafc;
}

.criteria-name {
    font-weight: 600;
    color: #1A2B48;
    font-size: 0.9375rem;
}

.criteria-weight {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Progress Bar */
.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    min-width: 120px;
}

.progress-bar__fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-bar__fill.score--excellent {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.progress-bar__fill.score--good {
    background: linear-gradient(90deg, #84cc16, #65a30d);
}

.progress-bar__fill.score--average {
    background: linear-gradient(90deg, #eab308, #ca8a04);
}

.progress-bar__fill.score--poor {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Score Badge */
.score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.375rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    border-radius: 0.5rem;
}

.score.score--sm {
    min-width: 36px;
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
}

.score.score--excellent {
    background: #22c55e;
}

.score.score--good {
    background: #84cc16;
    color: #1a1a1a;
}

.score.score--average {
    background: #eab308;
    color: #1a1a1a;
}

.score.score--poor {
    background: #ef4444;
}

/* Mobile Scoring - Card Layout */
@media (max-width: 639px) {
    .scoring-table-wrapper {
        overflow: visible;
    }

    .scoring-table {
        display: block;
    }

    .scoring-table thead {
        display: none;
    }

    .scoring-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .scoring-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 1rem;
        background: #f8fafc;
        border-radius: 0.75rem;
        border: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .scoring-table tbody tr:hover {
        background: #f1f5f9;
    }

    .scoring-table th,
    .scoring-table td {
        padding: 0;
    }

    .scoring-table__criterion {
        flex: 1;
        font-weight: 600;
        color: #1A2B48;
        font-size: 0.9375rem;
    }

    .scoring-table__weight {
        font-size: 0.75rem;
        color: #64748b;
        margin-left: 0.5rem;
    }

    .scoring-table__score {
        margin-left: auto;
    }

    .scoring-table__bar {
        width: 100%;
        margin-top: 0.75rem;
    }

    .scoring-table__bar .progress-bar {
        min-width: 100%;
    }
}

/* ============================================
   PROS & CONS - PERFECT DESIGN
   ============================================ */
.pros-cons {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .pros-cons {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.pros-cons__column {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.pros-cons__column--pros {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), #fff);
}

.pros-cons__column--cons {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), #fff);
}

.pros-cons__column h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.pros-cons__column--pros h3 {
    color: #16a34a;
}

.pros-cons__column--cons h3 {
    color: #dc2626;
}

.pros-cons__column h3::before {
    display: none;
    /* Using inline SVG instead */
}

.pros-cons__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.pros-cons__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.pros-cons__list li:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.pros-cons__item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pros-cons__list li span {
    flex: 1;
}

/* ============================================
   EXPERT COMMENTARY
   ============================================ */
.expert-commentary {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.expert-commentary p {
    margin-bottom: 1.25rem;
}

.expert-commentary p:last-child {
    margin-bottom: 0;
}

.expert-commentary strong {
    font-weight: 600;
    color: #1A2B48;
}

/* ============================================
   CLINICAL SCENARIOS
   ============================================ */
.clinical-scenarios {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.clinical-scenario {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
    transition: all 0.2s ease;
}

.clinical-scenario:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.clinical-scenario::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2A9D8F;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   REFERENCES
   ============================================ */
.references {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: refs;
}

.references li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
}

.references li:last-child {
    border-bottom: none;
}

.references li::before {
    counter-increment: refs;
    content: counter(refs);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #e5e7eb;
    color: #64748b;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.references a {
    color: #2A9D8F;
    text-decoration: none;
    font-weight: 500;
}

.references a:hover {
    text-decoration: underline;
}

/* ============================================
   SIDEBAR CARDS
   ============================================ */
.sidebar-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.sidebar-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A2B48;
    margin: 0 0 0.75rem 0;
}

.sidebar-card__text {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ============================================
   BRAND INFO CARD
   ============================================ */
.brand-info-card {
    background: linear-gradient(135deg, #1A2B48, #2c4063);
    border-radius: 1rem;
    padding: 1.5rem;
    color: #fff;
}

.brand-info-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-info-card__logo {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.375rem;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-info-card__brand {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.brand-info-card__country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.brand-info-card__country svg {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

.brand-info-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-info-card__row:last-of-type {
    border-bottom: none;
}

.brand-info-card__label {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.brand-info-card__value {
    font-size: 0.9375rem;
    font-weight: 600;
}

.brand-info-card__link {
    display: block;
    margin-top: 1.25rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    text-align: center;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.brand-info-card__link:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
    text-align: center;
}

.author-box__image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #e5e7eb;
}

.author-box__name {
    font-size: 1rem;
    font-weight: 700;
    color: #1A2B48;
    margin: 0 0 0.25rem 0;
}

.author-box__title {
    font-size: 0.8125rem;
    color: #2A9D8F;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.author-box__bio {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RELATED REVIEWS
   ============================================ */
.related-reviews {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-reviews li {
    border-bottom: 1px solid #f1f5f9;
}

.related-reviews li:last-child {
    border-bottom: none;
}

.related-reviews a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 0;
    text-decoration: none;
}

.related-reviews a:hover .related-reviews__title {
    color: #2A9D8F;
}

.related-reviews__title {
    font-size: 0.875rem;
    color: #374151;
    transition: color 0.2s ease;
    font-weight: 500;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 0.875rem 0;
    font-size: 0.8125rem;
    color: #64748b;
    background: #f8fafc;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.breadcrumbs__link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
    color: #2A9D8F;
}

.breadcrumbs__separator {
    margin: 0 0.5rem;
    color: #94a3b8;
}

.breadcrumbs__current {
    color: #1A2B48;
    font-weight: 500;
}