/**
 * Frontend Styles for PredictorsBest Reviews
 */

/* Review Box Styles */
.pb-review-box {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pb-review-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pb-review-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.pb-review-image {
    flex-shrink: 0;
}

.pb-review-image img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.pb-review-title-section {
    flex-grow: 1;
}

.pb-review-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1f2937;
}

/* Rating Styles */
.pb-review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pb-stars {
    position: relative;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    color: #fbbf24;
}

.pb-stars-empty {
    color: #d1d5db;
}

.pb-stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #fbbf24;
}

.pb-rating-number {
    font-weight: bold;
    font-size: 18px;
    color: #1f2937;
}

.pb-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pb-rating-inline .pb-stars {
    font-size: 16px;
}

/* Bonus Banner */
.pb-review-bonus {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Content */
.pb-review-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #4b5563;
}

/* Pros & Cons */
.pb-review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pb-review-pros-cons {
        grid-template-columns: 1fr;
    }
}

.pb-review-pros,
.pb-review-cons {
    padding: 16px;
    border-radius: 8px;
}

.pb-review-pros {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.pb-review-cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pb-review-pros h4,
.pb-review-cons h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.pb-review-pros h4 {
    color: #059669;
}

.pb-review-cons h4 {
    color: #dc2626;
}

.pb-review-pros ul,
.pb-review-cons ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.pb-review-pros li,
.pb-review-cons li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 8px;
}

.pb-review-pros li::before {
    content: "✓";
    position: absolute;
    left: -12px;
    color: #059669;
    font-weight: bold;
}

.pb-review-cons li::before {
    content: "✗";
    position: absolute;
    left: -12px;
    color: #dc2626;
    font-weight: bold;
}

/* Verdict */
.pb-review-verdict {
    background: #f9fafb;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.pb-review-verdict h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
}

.pb-review-verdict p {
    margin: 0;
    color: #4b5563;
}

/* CTA Buttons */
.pb-review-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pb-review-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.pb-review-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.pb-review-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.pb-review-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Compact Style */
.pb-review-compact {
    padding: 16px;
}

.pb-review-compact .pb-review-header {
    margin-bottom: 12px;
}

.pb-review-compact .pb-review-image img {
    max-width: 80px;
}

.pb-review-compact .pb-review-title {
    font-size: 18px;
}

/* Comparison Table */
.pb-comparison-table {
    overflow-x: auto;
    margin: 24px 0;
}

.pb-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pb-comparison-table th {
    background: #f9fafb;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
}

.pb-comparison-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.pb-comparison-table tr:last-child td {
    border-bottom: none;
}

.pb-comparison-table tr:hover {
    background: #f9fafb;
}

.pb-platform-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pb-platform-cell img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
}

.pb-cta-button {
    display: inline-block;
    background: #3b82f6;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.pb-cta-button:hover {
    background: #2563eb;
}

.pb-review-link-small {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    margin-left: 8px;
}

.pb-review-link-small:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Latest Reviews Grid */
.pb-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .pb-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Top Rated List */
.pb-reviews-list {
    margin: 24px 0;
}

.pb-top-rated-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.pb-position {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pb-top-rated-item .pb-review-box {
    flex-grow: 1;
    margin: 0;
}

/* CTA Box Styles */
.pb-cta-box {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    gap: 32px;
}

@media (max-width: 768px) {
    .pb-cta-box {
        flex-direction: column;
        gap: 24px;
        padding: 20px;
    }
}

.pb-cta-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .pb-cta-left {
        align-items: center;
        text-align: center;
    }
}

.pb-cta-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .pb-cta-header {
        flex-direction: column;
        align-items: center;
    }
}

.pb-cta-logo {
    flex-shrink: 0;
}

.pb-cta-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

.pb-cta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 768px) {
    .pb-cta-info {
        align-items: center;
    }
}

.pb-cta-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pb-cta-rating-number {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.pb-cta-rating .pb-stars {
    font-size: 14px;
}

.pb-cta-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.pb-cta-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.pb-cta-title a:hover {
    color: #ff6600;
}

.pb-cta-left .pb-cta-button {
    display: block;
    background: #ff6600;
    color: white !important;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.pb-cta-left .pb-cta-button:hover {
    background: #e55a00;
    transform: translateY(-1px);
}

.pb-cta-right {
    border-left: 1px solid #e5e7eb;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    width: 180px;
}

@media (max-width: 768px) {
    .pb-cta-right {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
        width: auto;
    }

    .pb-cta-highlights {
        display: inline-block;
        text-align: left;
    }
}

.pb-cta-highlights-label {
    font-weight: 600;
    color: #ff6600;
    font-size: 15px;
    margin-bottom: 12px;
}

.pb-cta-highlights {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pb-cta-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.pb-cta-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

.pb-cta-highlights li:last-child {
    margin-bottom: 0;
}
