/* AutoScribe Single Review - Premium Modern Design v2.0.0 */

:root {
    --rv-primary: #6366f1;
    --rv-primary-light: rgba(99, 102, 241, 0.08);
    --rv-green: #22c55e;
    --rv-amber: #f59e0b;
    --rv-red: #ef4444;
    --rv-bg: transparent;
    --rv-card: #ffffff;
    --rv-text: #0f172a;
    --rv-text-2: #475569;
    --rv-text-3: #94a3b8;
    --rv-border: #e2e8f0;
    --rv-border-light: #f1f5f9;
    --rv-surface: #f8fafc;
    --rv-radius: 14px;
    --rv-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    --rv-shadow-hover: 0 8px 30px rgba(0,0,0,.08);
}

@media (prefers-color-scheme: dark) {
    :root:not(.light):not(.light-mode):not([data-theme="light"]) {
        --rv-card: #1e293b;
        --rv-text: #f1f5f9;
        --rv-text-2: #cbd5e1;
        --rv-text-3: #64748b;
        --rv-border: #334155;
        --rv-border-light: #1e293b;
        --rv-surface: #334155;
    }
}
[data-theme="dark"], body.dark-mode, .dark, .nu-dark, .ast-dark-mode {
    --rv-card: #1e293b;
    --rv-text: #f1f5f9;
    --rv-text-2: #cbd5e1;
    --rv-text-3: #64748b;
    --rv-border: #334155;
    --rv-border-light: #1e293b;
    --rv-surface: #334155;
}

.tp-single-review {
    background: var(--rv-bg) !important;
    padding: 40px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--rv-text-2);
    line-height: 1.6;
}

.tp-review-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.tp-review-header {
    background: var(--rv-card) !important;
    padding: 36px 40px;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--rv-border);
}

.tp-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tp-review-category-badge {
    display: inline-flex;
    padding: 5px 16px;
    background: var(--rv-primary);
    color: #fff !important;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.tp-review-meta-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tp-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--rv-text-3) !important;
    background: var(--rv-surface);
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 500;
}

.tp-meta-pill svg {
    opacity: .6;
}

.tp-review-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--rv-text) !important;
    margin: 0 0 20px 0;
    letter-spacing: -.02em;
}

.tp-hero-score-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--rv-border);
}

.tp-hero-score-badge {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    line-height: 1;
    min-width: 56px;
    text-align: center;
}

.tp-hero-score-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tp-hero-stars {
    display: flex;
    gap: 2px;
}

.tp-hero-score-text {
    font-size: 13px;
    color: var(--rv-text-3);
    font-weight: 500;
}

.tp-rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 8px;
    margin-left: auto;
}

/* Featured Image */
.tp-review-featured-image {
    margin-bottom: 24px;
    border-radius: var(--rv-radius);
    overflow: hidden;
    box-shadow: var(--rv-shadow);
    border: 1px solid var(--rv-border);
}

.tp-review-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Verdict Box */
.tp-verdict-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--rv-primary-light);
    padding: 28px 32px;
    border-radius: var(--rv-radius);
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, .12);
}

.tp-verdict-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--rv-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.tp-verdict-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rv-text) !important;
}

.tp-verdict-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--rv-text-2) !important;
}

/* Score Card */
.tp-review-score-card {
    background: var(--rv-card) !important;
    padding: 36px 40px;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--rv-border);
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 36px;
    align-items: center;
}

.tp-score-main {
    text-align: center;
}

.tp-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: conic-gradient(var(--score-color) calc(var(--score-pct) * 3.6deg), var(--rv-surface) 0);
    position: relative;
}

.tp-score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--rv-card);
    border-radius: 50%;
}

.tp-score-number {
    position: relative;
    z-index: 1;
    font-size: 36px;
    font-weight: 800;
    color: var(--rv-text) !important;
    line-height: 1;
}

.tp-score-of {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: var(--rv-text-3);
    font-weight: 600;
}

.tp-score-label {
    font-size: 13px;
    color: var(--rv-text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.tp-score-breakdown {
    display: grid;
    gap: 16px;
}

.tp-score-item {
    display: grid;
    grid-template-columns: 110px 1fr 40px;
    align-items: center;
    gap: 14px;
}

.tp-score-item-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--rv-text-2) !important;
}

.tp-score-item-val {
    text-align: right;
    font-size: 15px;
    font-weight: 800;
}

.tp-score-bar {
    height: 10px;
    background: var(--rv-surface) !important;
    border-radius: 5px;
    overflow: hidden;
}

.tp-score-fill {
    height: 100%;
    border-radius: 5px;
    transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

/* Review Statistics Panel */
.tp-review-stats-panel {
    background: var(--rv-card) !important;
    padding: 32px 36px;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--rv-border);
}

.tp-stats-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--rv-text) !important;
    margin-bottom: 20px;
}

.tp-stats-panel-header svg {
    color: var(--rv-primary);
}

.tp-stats-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.tp-stat-card {
    background: var(--rv-surface) !important;
    padding: 22px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: transform .25s, box-shadow .25s;
    border: 1px solid var(--rv-border-light);
}

.tp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rv-shadow-hover);
}

.tp-stat-card.tp-stat-up {
    border-color: rgba(34, 197, 94, .3);
    background: linear-gradient(135deg, rgba(34, 197, 94, .06), rgba(34, 197, 94, .12)) !important;
}

.tp-stat-card.tp-stat-down {
    border-color: rgba(239, 68, 68, .3);
    background: linear-gradient(135deg, rgba(239, 68, 68, .06), rgba(239, 68, 68, .12)) !important;
}

.tp-stat-card.tp-stat-neutral {
    border-color: rgba(245, 158, 11, .3);
    background: linear-gradient(135deg, rgba(245, 158, 11, .06), rgba(245, 158, 11, .12)) !important;
}

.tp-stat-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.tp-stat-card-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--rv-text) !important;
    margin-bottom: 4px;
}

.tp-stat-card-label {
    font-size: 11px;
    color: var(--rv-text-3) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.tp-stat-card-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
}

.tp-stat-up .tp-stat-card-arrow svg { color: var(--rv-green); }
.tp-stat-down .tp-stat-card-arrow svg { color: var(--rv-red); }

/* Product Info */
.tp-product-info {
    background: var(--rv-card) !important;
    padding: 32px 36px;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--rv-border);
}

.tp-product-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rv-text) !important;
}

.tp-product-info h3 svg {
    color: var(--rv-primary);
}

.tp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tp-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: var(--rv-surface);
    border-radius: 10px;
    border: 1px solid var(--rv-border-light);
}

.tp-info-item.tp-info-full {
    grid-column: 1 / -1;
}

.tp-info-item .label {
    font-size: 11px;
    color: var(--rv-text-3);
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 700;
}

.tp-info-item .value {
    font-size: 16px;
    color: var(--rv-text) !important;
    font-weight: 700;
}

.tp-price-val {
    color: var(--rv-green) !important;
}

.tp-product-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.tp-btn:hover {
    transform: translateY(-2px);
}

.tp-btn-primary {
    background: var(--rv-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .3);
}

.tp-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, .4);
    color: #fff !important;
}

.tp-btn-secondary {
    background: var(--rv-surface) !important;
    color: var(--rv-text-2) !important;
    border: 1px solid var(--rv-border);
}

.tp-btn-secondary:hover {
    background: var(--rv-border-light) !important;
}

/* Content */
.tp-review-content {
    background: var(--rv-card) !important;
    padding: 40px;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--rv-border);
    font-size: 17px;
    line-height: 1.8;
    color: var(--rv-text-2) !important;
}

.tp-review-content * {
    color: var(--rv-text-2) !important;
}

.tp-review-content h1,
.tp-review-content h2,
.tp-review-content h3,
.tp-review-content h4,
.tp-review-content h5,
.tp-review-content h6,
.tp-review-content strong,
.tp-review-content b {
    color: var(--rv-text) !important;
}

.tp-review-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rv-primary);
}

.tp-review-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
}

.tp-review-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--rv-surface) !important;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.tp-review-content th {
    background: var(--rv-border-light) !important;
    color: var(--rv-text) !important;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.tp-review-content td {
    padding: 12px 16px;
    border-top: 1px solid var(--rv-border) !important;
}

.tp-review-content code {
    background: var(--rv-surface) !important;
    color: var(--rv-text) !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .9em;
}

.tp-review-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}

.tp-review-content blockquote {
    border-left: 4px solid var(--rv-primary);
    padding: 16px 24px;
    margin: 20px 0;
    background: var(--rv-primary-light);
    border-radius: 0 10px 10px 0;
}

/* Pros & Cons */
.tp-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.tp-pros,
.tp-cons {
    background: var(--rv-card) !important;
    padding: 28px 32px;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    border: 1px solid var(--rv-border);
}

.tp-pros {
    border-top: 3px solid var(--rv-green);
}

.tp-cons {
    border-top: 3px solid var(--rv-red);
}

.tp-pros h3,
.tp-cons h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rv-text) !important;
}

.tp-pros ul,
.tp-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-pros li,
.tp-cons li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--rv-text-2) !important;
    border-bottom: 1px solid var(--rv-border-light);
    padding-left: 28px;
    position: relative;
}

.tp-pros li:last-child,
.tp-cons li:last-child {
    border-bottom: none;
}

.tp-pros li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: var(--rv-green);
    border-radius: 50%;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='white' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='white' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}

.tp-cons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: var(--rv-red);
    border-radius: 50%;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18' stroke='white' stroke-width='3'/%3E%3Cline x1='6' y1='6' x2='18' y2='18' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center/10px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18' stroke='white' stroke-width='3'/%3E%3Cline x1='6' y1='6' x2='18' y2='18' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Features */
.tp-features {
    background: var(--rv-card) !important;
    padding: 32px 36px;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--rv-border);
}

.tp-features h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rv-text) !important;
}

.tp-features h3 svg {
    color: var(--rv-primary);
}

.tp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.tp-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--rv-text-2) !important;
    padding: 10px 16px;
    background: var(--rv-surface);
    border-radius: 10px;
    border: 1px solid var(--rv-border-light);
}

.tp-feature-item svg {
    flex-shrink: 0;
}

/* Specs */
.tp-specs {
    background: var(--rv-card) !important;
    padding: 32px 36px;
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--rv-border);
}

.tp-specs h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rv-text) !important;
}

.tp-specs h3 svg {
    color: var(--rv-primary);
}

.tp-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.tp-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--rv-surface) !important;
    border-radius: 10px;
    border: 1px solid var(--rv-border-light);
    gap: 12px;
}

.tp-spec-item .label {
    font-size: 13px;
    color: var(--rv-text-3);
    font-weight: 600;
}

.tp-spec-item .value {
    font-size: 14px;
    color: var(--rv-text) !important;
    font-weight: 700;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .tp-review-header {
        padding: 28px 24px;
    }
    
    .tp-review-title {
        font-size: 26px;
    }

    .tp-review-score-card {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
    
    .tp-score-main {
        border-bottom: 1px solid var(--rv-border);
        padding-bottom: 24px;
    }

    .tp-score-item {
        grid-template-columns: 80px 1fr 36px;
        gap: 10px;
    }

    .tp-pros-cons {
        grid-template-columns: 1fr;
    }

    .tp-review-content {
        padding: 24px;
    }

    .tp-verdict-box {
        padding: 20px 24px;
    }

    .tp-rec-badge {
        margin-left: 0;
    }
}
