/*
Theme Name: Kadence Child - Just Like Asking Dad
Template: kadence
Description: Child theme for justlikeaskingdad.com
Author: Cos
Version: 1.0
*/

/* ═══════════════════════════════════════════════════════════════
   Affiliate Disclosure
   ═══════════════════════════════════════════════════════════════ */

.affiliate-disclosure {
    background: #f0f4f8;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.9em;
    margin: 16px 0;
    color: #4a5568;
    line-height: 1.6;
}

.affiliate-disclosure em {
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   Affiliate Product Link Cards
   ═══════════════════════════════════════════════════════════════ */

.affiliate-product-link {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.affiliate-product-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #b8c7d8;
}

.affiliate-product-link .affiliate-link {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.4;
}

.affiliate-product-link .affiliate-link:hover {
    text-decoration: underline;
    color: #1558b0;
}

.affiliate-product-link .affiliate-link::before {
    content: "\2192 ";
}

.affiliate-product-link .affiliate-product-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    float: right;
    margin-left: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.affiliate-product-link .affiliate-meta {
    display: block;
    font-size: 0.9em;
    color: #718096;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   Comparison Tables
   ═══════════════════════════════════════════════════════════════ */

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95em;
}

.entry-content table thead th {
    background: #2d3748;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.entry-content table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.entry-content table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.entry-content table tbody tr:hover {
    background: #edf2f7;
}

/* Responsive table */
@media (max-width: 768px) {
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
