/* CryptoTube AI Publisher — Frontend Styles */

/* ─── Comparison Tables ─────────────────── */
.ctap-comparison-wrapper {
    overflow-x: auto;
    margin: 24px 0;
}

.ctap-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.ctap-comparison-table thead th {
    background: #1a1a2e;
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.ctap-comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.ctap-comparison-table tbody tr:hover {
    background: #fff8e1;
}

/* ─── Pros & Cons ───────────────────────── */
.ctap-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

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

.ctap-pros, .ctap-cons {
    padding: 20px;
    border-radius: 8px;
}

.ctap-pros {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
}

.ctap-cons {
    background: #fce4ec;
    border-left: 4px solid #e74c3c;
}

.ctap-pros h3, .ctap-cons h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
}

.ctap-pros h3 { color: #2e7d32; }
.ctap-cons h3 { color: #c62828; }

.ctap-pros ul, .ctap-cons ul {
    margin: 0;
    padding-left: 20px;
}

.ctap-pros li, .ctap-cons li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ─── CTA Buttons ───────────────────────── */
.ctap-cta-box {
    text-align: center;
    margin: 28px 0;
}

.ctap-cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #e2b714;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(226, 183, 20, 0.3);
}

.ctap-cta-button:hover {
    background: #f0d060;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(226, 183, 20, 0.4);
}

/* ─── FAQ Section ───────────────────────── */
.ctap-faq {
    margin: 16px 0;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #e2b714;
}

.ctap-faq h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1a1a2e;
}

.ctap-faq p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* ─── Disclaimers ───────────────────────── */
.ctap-disclaimer,
.ctap-disclosure-box {
    margin: 32px 0 16px;
    padding: 16px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.ctap-disclosure-box p {
    margin: 0 0 8px 0;
}

.ctap-disclosure-box p:last-child {
    margin-bottom: 0;
}

/* ─── Ad Placements ─────────────────────── */
.ctap-ad-placeholder,
.ctap-ad-slot {
    margin: 24px 0;
    padding: 16px;
    text-align: center;
    min-height: 90px;
}

/* ─── Affiliate Links in Text ───────────── */
a.ctap-affiliate-link {
    color: #e2b714;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
}

a.ctap-affiliate-link:hover {
    color: #c9a312;
}

/* ─── Related Articles ──────────────────── */
.ctap-related-articles {
    margin: 28px 0;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 8px;
}

.ctap-related-articles h2 {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: #1a1a2e;
}

.ctap-related-articles ul {
    margin: 0;
    padding-left: 20px;
}

.ctap-related-articles li {
    margin-bottom: 8px;
}

.ctap-related-articles a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.ctap-related-articles a:hover {
    text-decoration: underline;
}

/* ─── Rating Box ────────────────────────── */
.ctap-rating-box {
    background: linear-gradient(135deg, rgba(240,180,41,0.1) 0%, rgba(240,180,41,0.03) 100%);
    border: 1px solid rgba(240,180,41,0.2);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.ctap-rating-score {
    font-size: 48px;
    font-weight: 900;
    color: #f0b429;
    line-height: 1;
    margin-bottom: 8px;
}

.ctap-rating-box p {
    font-size: 16px;
    color: #555;
    margin: 0;
}
