/* Claude Review Engine — Front-End Review Styles */

/* ── Affiliate Disclosure ── */
.cre-affiliate-disclosure {
    background: #f8f9fa;
    border-left: 3px solid #6c757d;
    padding: 12px 16px;
    margin-bottom: 28px;
    font-size: 0.88em;
    color: #555;
    line-height: 1.5;
}

/* ── CTA Buttons ── */
.cre-cta-button {
    display: inline-block;
    background: #e8540a;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    margin: 8px 0;
}
.cre-cta-button:hover {
    background: #c94808;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.cre-cta-button:active {
    transform: translateY(0);
}

/* Center CTA wrapper */
.cre-cta-wrap {
    text-align: center;
    margin: 24px 0;
}

/* ── TL;DR Box ── */
.cre-tldr,
[class*="tldr"] {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #c2d7f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 32px;
}
.cre-tldr h2,
.cre-tldr h3 {
    margin-top: 0;
    color: #1a3a5c;
}

/* ── Specifications Table ── */
.cre-specs-table,
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
}
.cre-specs-table th,
.cre-specs-table td,
article table th,
article table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.cre-specs-table thead th,
article table thead th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
}
.cre-specs-table tbody tr:nth-child(even),
article table tbody tr:nth-child(even) {
    background: #f8f9fa;
}
.cre-specs-table tbody tr:hover,
article table tbody tr:hover {
    background: #eef3f8;
}

/* ── Pros / Cons ── */
.cre-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}
.cre-pros,
.cre-cons {
    border-radius: 8px;
    padding: 20px;
}
.cre-pros {
    background: #f0faf0;
    border: 1px solid #b8e6b8;
}
.cre-cons {
    background: #fef0f0;
    border: 1px solid #e6b8b8;
}
.cre-pros h3,
.cre-cons h3 {
    margin-top: 0;
    font-size: 1.1em;
}
.cre-pros h3 { color: #1a7a1a; }
.cre-cons h3 { color: #a12020; }

.cre-pros ul,
.cre-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cre-pros li,
.cre-cons li {
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.5;
}
.cre-pros li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #1a7a1a;
    font-weight: bold;
}
.cre-cons li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #a12020;
    font-weight: bold;
}

/* ── Comparison Table ── */
.cre-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.92em;
}
.cre-comparison-table th {
    background: #34495e;
    color: #fff;
    padding: 12px 14px;
    font-weight: 600;
    text-align: center;
}
.cre-comparison-table th:first-child {
    text-align: left;
}
.cre-comparison-table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: center;
}
.cre-comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.cre-comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}
.cre-comparison-table .cre-highlight {
    background: #e8f5e9 !important;
    font-weight: 600;
}

/* ── FAQ Accordion ── */
.cre-faq {
    margin: 24px 0;
}
.cre-faq details {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}
.cre-faq details[open] {
    border-color: #c2d7f0;
}
.cre-faq summary {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.2s;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cre-faq summary::-webkit-details-marker {
    display: none;
}
.cre-faq summary::after {
    content: "+";
    font-size: 1.3em;
    font-weight: 300;
    color: #666;
    transition: transform 0.2s;
}
.cre-faq details[open] summary::after {
    content: "\2212";
}
.cre-faq summary:hover {
    background: #eef3f8;
}
.cre-faq details > div,
.cre-faq details > p {
    padding: 14px 18px;
    line-height: 1.7;
}

/* ── Who Is This For / Not For ── */
.cre-audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}
.cre-for,
.cre-not-for {
    border-radius: 8px;
    padding: 20px;
}
.cre-for {
    background: #f0f7ff;
    border: 1px solid #b8d4e6;
}
.cre-not-for {
    background: #fff8f0;
    border: 1px solid #e6d4b8;
}
.cre-for h3 { color: #1a4a7a; margin-top: 0; }
.cre-not-for h3 { color: #7a4a1a; margin-top: 0; }

/* ── Final Verdict Box ── */
.cre-verdict {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border: 2px solid #2c3e50;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    text-align: center;
}
.cre-verdict h2 {
    margin-top: 0;
}
.cre-rating-badge {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    font-size: 1.8em;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 10px 0;
}

/* ── Image Figures ── */
.cre-image-figure {
    margin: 24px 0;
    text-align: center;
}
.cre-image-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cre-image-figure figcaption {
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cre-pros-cons,
    .cre-audience-grid {
        grid-template-columns: 1fr;
    }
    .cre-cta-button {
        display: block;
        text-align: center;
    }
    .cre-comparison-table {
        font-size: 0.82em;
    }
    .cre-comparison-table th,
    .cre-comparison-table td {
        padding: 8px 6px;
    }
}
