/**
 * Theme Name: ChuanFly
 * Theme URI: https://chuanfly.com
 * Description: Rehub child theme for chuanfly.com affiliate marketing
 * Author: ChuanFly Team
 * Template: rehub-theme
 * Version: 1.0.0
 */

/* ===== Import parent theme styles ===== */
/* Rehub handles this automatically */

/* ===== Custom Properties ===== */
:root {
    --cf-primary: #2563eb;
    --cf-primary-hover: #1d4ed8;
    --cf-gold: #f59e0b;
    --cf-green: #10b981;
    --cf-blue: #3b82f6;
    --cf-gray: #6b7280;
    --cf-bg-light: #f9fafb;
    --cf-border: #e5e7eb;
    --cf-score-exceptional: #f59e0b;
    --cf-score-excellent: #10b981;
    --cf-score-verygood: #3b82f6;
    --cf-score-good: #6b7280;
}

/* ===== Score Badge ===== */
.cf-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.cf-score-exceptional { background: var(--cf-score-exceptional); }
.cf-score-excellent   { background: var(--cf-score-excellent); }
.cf-score-verygood    { background: var(--cf-score-verygood); }
.cf-score-good        { background: var(--cf-score-good); }

.cf-score-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== Ranked Card ===== */
.cf-ranked-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--cf-border);
    border-radius: 12px;
    transition: box-shadow 0.2s;
}
.cf-ranked-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cf-ranked-card .cf-rank-num {
    flex: 0 0 48px;
    font-size: 32px;
    font-weight: 800;
    color: #d1d5db;
    text-align: center;
}
.cf-ranked-card.cf-rank-1 .cf-rank-num { color: var(--cf-gold); }
.cf-ranked-card.cf-rank-2 .cf-rank-num { color: #94a3b8; }
.cf-ranked-card.cf-rank-3 .cf-rank-num { color: #cd853f; }

.cf-ranked-card .cf-card-img {
    flex: 0 0 80px;
    height: 80px;
    object-fit: contain;
}
.cf-ranked-card .cf-card-body {
    flex: 1;
    min-width: 0;
}
.cf-ranked-card .cf-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.cf-ranked-card .cf-card-bestfor {
    font-size: 13px;
    color: var(--cf-blue);
    font-weight: 600;
    margin-bottom: 6px;
}
.cf-ranked-card .cf-card-desc {
    font-size: 14px;
    color: var(--cf-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cf-ranked-card .cf-card-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* ===== CTA Button ===== */
.cf-btn-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--cf-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s;
    white-space: nowrap;
}
.cf-btn-cta:hover {
    background: var(--cf-primary-hover);
    color: #fff !important;
}
.cf-btn-read-review {
    font-size: 13px;
    color: var(--cf-gray);
    text-decoration: underline;
}

/* ===== Pros/Cons Columns ===== */
.cf-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}
.cf-pros,
.cf-cons {
    padding: 20px;
    border-radius: 10px;
}
.cf-pros {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.cf-cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.cf-pros h4 { color: #059669; }
.cf-cons h4 { color: #dc2626; }
.cf-pros ul,
.cf-cons ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.cf-pros li::before { content: "✓ "; color: #10b981; font-weight: bold; }
.cf-cons li::before { content: "✗ "; color: #ef4444; font-weight: bold; }
.cf-pros li,
.cf-cons li {
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Comparison Table ===== */
.cf-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.cf-compare-table th {
    background: #f8fafc;
    padding: 14px 12px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--cf-border);
    white-space: nowrap;
}
.cf-compare-table td {
    padding: 12px;
    border-bottom: 1px solid var(--cf-border);
    vertical-align: middle;
}
.cf-compare-table tr:hover td {
    background: #f8fafc;
}

/* ===== Methodology Box ===== */
.cf-methodology {
    background: var(--cf-bg-light);
    border-left: 4px solid var(--cf-primary);
    padding: 24px;
    border-radius: 0 10px 10px 0;
    margin: 32px 0;
}
.cf-methodology h3 { margin-bottom: 12px; }
.cf-methodology ol { margin-left: 20px; }
.cf-methodology li { padding: 4px 0; }

/* ===== Rating Breakdown ===== */
.cf-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.cf-rating-label {
    flex: 0 0 120px;
    font-size: 13px;
    font-weight: 600;
}
.cf-rating-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.cf-rating-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--cf-primary);
    transition: width 0.6s ease;
}
.cf-rating-score {
    flex: 0 0 36px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .cf-ranked-card {
        flex-direction: column;
        text-align: center;
    }
    .cf-proscons {
        grid-template-columns: 1fr;
    }
    .cf-compare-table {
        font-size: 12px;
    }
    .cf-ranked-card .cf-card-actions {
        flex-direction: row;
    }
}

/* ===== Disclosure ===== */
.cf-affiliate-disclosure {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    padding: 12px;
    margin-top: 24px;
    border-top: 1px solid var(--cf-border);
}

/* ===== Author Box ===== */
.cf-author-box {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: var(--cf-bg-light);
    border-radius: 10px;
    margin: 24px 0;
}
.cf-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.cf-author-info h5 { margin-bottom: 4px; }
.cf-author-info p { font-size: 13px; color: var(--cf-gray); margin: 0; }