/**
 * Price History & AI Review Summary Styles
 * File: /wp-content/themes/picks-curated-theme/assets/css/pro-features.css
 */

/* ============================================
   PRICE HISTORY CHART
   ============================================ */
.pc-price-history {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.price-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-history-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.price-history-header h4 svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

/* Price Stats Row */
.price-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.price-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.price-stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.price-stat-value.current { color: #2563eb; }
.price-stat-value.lowest { color: #10b981; }
.price-stat-value.highest { color: #dc2626; }

/* Deal Rating Badge */
.deal-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.deal-rating-badge.great {
    background: #dcfce7;
    color: #16a34a;
}

.deal-rating-badge.good {
    background: #dbeafe;
    color: #2563eb;
}

.deal-rating-badge.average {
    background: #fef3c7;
    color: #d97706;
}

.deal-rating-badge.above-average {
    background: #fee2e2;
    color: #dc2626;
}

/* Chart Container */
.price-chart-container {
    position: relative;
    height: 200px;
}

/* Blurred Preview for Free Users */
.price-history-blur {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    border-radius: 0.75rem;
    overflow: hidden;
}

.price-history-blur-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    filter: blur(8px);
}

.price-history-blur-pattern svg {
    width: 100%;
    height: 100%;
}

.price-history-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 1.5rem;
}

.lock-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.lock-icon svg {
    width: 24px;
    height: 24px;
    color: #64748b;
}

.price-history-lock-overlay h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.price-history-lock-overlay p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem;
    max-width: 250px;
}

.price-history-unlock-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #2563eb;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.price-history-unlock-btn:hover {
    background: #1d4ed8;
    color: white;
}

/* ============================================
   AI REVIEW SUMMARY
   ============================================ */
.pc-ai-review-summary {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin: 1.5rem 0;
}

.review-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.review-summary-header svg {
    width: 20px;
    height: 20px;
    color: #7c3aed;
}

.review-summary-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.review-summary-header span {
    margin-left: auto;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

/* Verdict Card */
.review-verdict-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    margin: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.verdict-score {
    text-align: center;
}

.verdict-score-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #16a34a;
    line-height: 1;
}

.verdict-score-max {
    font-size: 0.875rem;
    color: #64748b;
}

.verdict-text h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.375rem;
}

.verdict-text p {
    font-size: 0.9375rem;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

/* Pros & Cons */
.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1rem 1rem;
}

.pros-section,
.cons-section {
    padding: 1rem;
    border-radius: 0.75rem;
}

.pros-section {
    background: #f0fdf4;
}

.cons-section {
    background: #fef2f2;
}

.pros-section h5,
.cons-section h5 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.pros-section h5 {
    color: #16a34a;
}

.cons-section h5 {
    color: #dc2626;
}

.pros-section ul,
.cons-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-section li,
.cons-section li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    padding: 0.375rem 0;
}

.pros-section li::before {
    content: '✓';
    color: #16a34a;
    font-weight: 700;
}

.cons-section li::before {
    content: '✗';
    color: #dc2626;
    font-weight: 700;
}

/* Key Insights */
.review-insights {
    padding: 0 1rem 1rem;
}

.review-insights h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.insight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.insight-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.insight-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
}

/* Best For Tags */
.review-best-for {
    padding: 0 1rem 1rem;
}

.review-best-for h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.best-for-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.best-for-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* Bottom Line */
.review-bottom-line {
    margin: 0 1rem 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 0.75rem;
}

.review-bottom-line h5 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 0.5rem;
}

.review-bottom-line p {
    font-size: 0.9375rem;
    color: #78350f;
    margin: 0;
    line-height: 1.5;
}

/* Blurred Preview for Free Users */
.review-summary-blur {
    position: relative;
    min-height: 300px;
}

.review-summary-blur-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.review-summary-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.7) 100%);
    text-align: center;
    padding: 2rem;
}

.review-summary-lock-overlay .lock-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    margin-bottom: 1.25rem;
}

.review-summary-lock-overlay .lock-icon svg {
    width: 28px;
    height: 28px;
    color: #2563eb;
}

.review-summary-lock-overlay h5 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.review-summary-lock-overlay p {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 1.25rem;
    max-width: 300px;
}

.review-summary-unlock-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.2s;
}

.review-summary-unlock-btn:hover {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .price-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .review-verdict-card {
        flex-direction: column;
        text-align: center;
    }
}