/**
 * Review Page Styles
 * Styling for betting site review pages (casas-de-apostas)
 *
 * Note: Uses shared breadcrumbs from team-profile.css
 * Note: Uses shared .content-layout, .sidebar from team-profile.css
 */

/* Breadcrumbs adjustment for review pages */
.review-page .breadcrumbs {
    /* Requested: +10px above, -10px below (relative to current review styling) */
    margin-top: calc(-0.25rem + 10px);
    margin-bottom: calc(-0.25rem - 10px);
}

/* Sidebar odds table on review pages: keep it consistent with football widgets (gridlines + contained width) */
.review-page .sidebar .odds-comparison {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.review-page .sidebar .odds-comparison th,
.review-page .sidebar .odds-comparison td {
    border-right: 1px solid #e0e0e0;
}

.review-page .sidebar .odds-comparison th:last-child,
.review-page .sidebar .odds-comparison td:last-child {
    border-right: none;
}

.review-page .sidebar .odds-comparison td {
    border-bottom: 1px solid #e0e0e0;
}

.review-page .sidebar .odds-comparison tr:last-child td {
    border-bottom: none;
}

/* Column sizing: give "Casa" more room so names don't get clipped */
.review-page .sidebar .odds-comparison th:first-child,
.review-page .sidebar .odds-comparison td:first-child {
    width: 46%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-page .sidebar .odds-comparison th:not(:first-child),
.review-page .sidebar .odds-comparison td:not(:first-child) {
    width: 18%;
}

/* Slightly tighter padding on review sidebar to fit better */
.review-page .sidebar .odds-comparison th,
.review-page .sidebar .odds-comparison td {
    padding: 0.5rem 0.6rem;
}

/* Hero Section */
.review-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 2.5rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Ingress */
.review-ingress {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    margin: 0 0 2rem 0;
}

.review-ingress p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* When we prepend excerpt into the body as the first paragraph */
.review-content .review-body-ingress {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-top: 0;
}

.review-hero-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.review-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    line-height: 1;
}

.review-hero-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-hero-content {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

.review-logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.review-logo {
    width: 170px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

.review-hero-rating .stars {
    color: #ffc107;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.review-hero-rating .rating-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.review-bonus-box {
    flex: 1;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.review-highlights-info {
    flex: 1;
    min-width: 220px;
}

.review-highlights-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.review-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-highlights-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.review-highlights-list li::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Legacy bonus styling (kept for backward compatibility) */
.review-bonus-info {
    flex: 1;
    min-width: 200px;
}

.review-bonus-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.review-bonus-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.review-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #f7941e 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    border: none;
}

.review-hero-cta:hover {
    background: linear-gradient(135deg, #e65a2a 0%, #e6860d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Facts Table */
.review-page .review-facts {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.review-page .review-facts-title {
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.review-page .review-facts-table {
    width: 100%;
    border-collapse: collapse;
}

.review-page .review-facts-table tr {
    border-bottom: 1px solid var(--border-color);
}

.review-page .review-facts-table tr:last-child {
    border-bottom: none;
}

.review-page .review-facts-table th,
.review-page .review-facts-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.9375rem;
}

.review-page .review-facts-table th {
    background: var(--bg-light);
    font-weight: 600;
    width: 40%;
    color: var(--text-dark);
}

.review-page .review-facts-table td {
    color: var(--text-dark);
}

/* License Row - Special styling for Brazilian licensing */
.review-page .review-license-row {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.review-page .review-license-row th {
    background: transparent;
    color: #166534;
    font-weight: 700;
}

.review-page .review-license-row td {
    color: #166534;
}

.review-page .review-license-row .license-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.review-page .review-license-row .license-badge {
    display: inline-block;
    margin-top: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: #22c55e;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Category Ratings */
.review-ratings {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.review-ratings-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

.review-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.review-rating-row:last-child {
    border-bottom: none;
}

.review-rating-label {
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.review-rating-stars {
    color: #ffc107;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-rating-stars .empty {
    color: #ddd;
}

/* Pros & Cons */
.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.review-pros,
.review-cons {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.review-pros:hover,
.review-cons:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-pros-header,
.review-cons-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
}

.review-pros-header {
    background: #e8f5e9;
    color: #2e7d32;
    border-bottom: 1px solid #c8e6c9;
}

.review-cons-header {
    background: #ffebee;
    color: #c62828;
    border-bottom: 1px solid #ffcdd2;
}

.review-pros-header svg,
.review-cons-header svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.review-pros-list li,
.review-cons-list li {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

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

.review-pros-list li::before {
    content: "✓";
    color: #2e7d32;
    font-weight: 700;
    flex-shrink: 0;
}

.review-cons-list li::before {
    content: "✗";
    color: #c62828;
    font-weight: 700;
    flex-shrink: 0;
}

/* Content Section */
.review-content {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
    line-height: 1.75;
}

.review-content h2 {
    font-size: 1.625rem;
    margin: 2.5rem 0 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.review-content h2:first-child {
    margin-top: 0;
}

.review-content h3 {
    font-size: 1.375rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.review-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #2d3748;
}

.review-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.review-content ul,
.review-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.review-content li {
    margin-bottom: 0.5rem;
}

/* Payment Methods */
.review-payments {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.review-payments-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

.review-payments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.review-payment-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.review-payment-tag:hover {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Sticky CTA */
.review-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Cleaner (less foggy) than before */
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    padding: 0.6rem 0.9rem;
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.review-sticky-cta.visible {
    transform: translateY(0);
}

.review-sticky-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.review-sticky-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.review-sticky-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 0;
}

.review-sticky-name {
    font-weight: 600;
    font-size: 1rem;
}

.review-sticky-highlight {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.sticky-highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    flex-shrink: 0;
}

.review-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background 0.2s;
    white-space: nowrap;
}

.review-sticky-btn .sticky-btn-short {
    display: none;
}

.review-sticky-btn:hover {
    background: #e55a2b;
}

/* Adjust body padding when sticky CTA is visible */
body.has-sticky-cta {
    padding-bottom: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .review-hero {
        padding: 1.5rem;
    }

    .review-hero-title-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .review-hero h1 {
        font-size: 2.5rem;
        width: 100%;
    }

    .review-hero-rating {
        width: 100%;
        justify-content: center;
    }

    .review-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .review-logo {
        width: 220px;
        max-height: 165px;
    }

    .review-bonus-box {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .review-bonus-info {
        min-width: auto;
    }

    .review-hero-cta {
        width: 100%;
        text-align: center;
    }

    .review-pros-cons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .review-page .review-facts-table th,
    .review-page .review-facts-table td {
        padding: 0.75rem 1rem;
    }

    .review-page .review-facts-table th {
        width: 45%;
    }

    .review-content {
        padding: 1.25rem;
    }

    /* Keep everything on ONE row on mobile */
    .review-sticky-cta {
        padding: 0.5rem 0.75rem;
    }

    .review-sticky-cta-inner {
        flex-direction: row;
        gap: 0.6rem;
    }

    .review-sticky-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .review-sticky-info {
        min-width: 0;
        gap: 0.75rem;
    }

    .review-sticky-info > div {
        min-width: 0;
    }

    .review-sticky-name {
        font-size: 0.95rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 42vw;
    }

    .review-sticky-highlight {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 42vw;
    }

    .sticky-highlight-icon {
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
    }

    .review-sticky-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
    }

    .review-sticky-btn .sticky-btn-full {
        display: none;
    }

    .review-sticky-btn .sticky-btn-short {
        display: inline;
    }

    body.has-sticky-cta {
        padding-bottom: 56px;
    }
}

/* Star Rating Helper */
.stars-5 .stars::after { content: "★★★★★"; }
.stars-4-5 .stars::after { content: "★★★★½"; }
.stars-4 .stars::after { content: "★★★★☆"; }
.stars-3-5 .stars::after { content: "★★★½☆"; }
.stars-3 .stars::after { content: "★★★☆☆"; }
.stars-2-5 .stars::after { content: "★★½☆☆"; }
.stars-2 .stars::after { content: "★★☆☆☆"; }
.stars-1-5 .stars::after { content: "★½☆☆☆"; }
.stars-1 .stars::after { content: "★☆☆☆☆"; }
.stars-0-5 .stars::after { content: "½☆☆☆☆"; }
.stars-0 .stars::after { content: "☆☆☆☆☆"; }

/* FAQ Section */
.review-faq {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.review-faq-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.review-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-faq-item {
    border-bottom: 1px solid var(--border-color);
}

.review-faq-item:last-child {
    border-bottom: none;
}

.review-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.review-faq-question::-webkit-details-marker {
    display: none;
}

.review-faq-question:hover {
    color: var(--accent-color);
}

.review-faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform 0.2s;
}

.review-faq-item[open] .review-faq-icon {
    transform: rotate(180deg);
}

.review-faq-answer {
    padding: 0 0 1.25rem 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* FAQ Mobile */
@media (max-width: 768px) {
    .review-faq {
        padding: 1.25rem;
    }

    .review-faq-title {
        font-size: 1.125rem;
    }

    .review-faq-question {
        font-size: 0.9375rem;
        padding: 0.875rem 0;
    }

    .review-faq-answer {
        font-size: 0.875rem;
    }
}
