/* Sofia Frontend Styles - God Tier V1 */

.sofia-content {
    /* Base container logic */
    display: block;
    width: 100%;
}

/* ── Tables ──────────────────────────────────────────────────────── */

.sofia-content table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    /* Rounded corners */
    overflow: hidden;
    width: 100%;
}

.sofia-content thead tr {
    background-color: #2c3e50;
    /* Elegant Dark Blue-Grey */
    color: #ffffff;
    text-align: left;
    font-weight: 600;
}

.sofia-content th,
.sofia-content td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    /* Subtle borders */
}

.sofia-content tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.2s ease;
}

.sofia-content tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
    /* Light grey stripe */
}

.sofia-content tbody tr:hover {
    background-color: #f1f1f1;
    /* Hover effect */
    cursor: default;
}

.sofia-content tbody tr:last-of-type {
    border-bottom: 2px solid #2c3e50;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    .sofia-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ── Freshness Box ────────────────────────────────────────────────── */

.sofia-freshness-box {
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sofia-freshness-box strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.sofia-freshness-box ul {
    margin: 0;
    padding-left: 20px;
}

.sofia-freshness-box li {
    margin-bottom: 6px;
    color: #555;
}

/* ── Amazon Product Page Layout ─────────────────────────────────── */

/* Product images */
.sofia-amazon-product-img {
    margin: 30px 0;
    text-align: center;
}

.sofia-amazon-product-img img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Comparison section */
.sofia-amazon-comparison {
    margin: 30px 0;
}

/* Verdict section */
.sofia-amazon-verdict {
    background: #f8f9fa;
    border-left: 4px solid #FF9900;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 30px 0;
}

.sofia-amazon-verdict h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3em;
}

/* ── Amazon Buy Button (.sofia-amazon-btn) ──────────────────────── */
/* Easy to override: just target .sofia-amazon-btn in your theme */

.sofia-amazon-cta {
    margin: 30px 0;
    text-align: center;
}

.sofia-amazon-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sofia-amazon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 153, 0, 0.5);
    color: #ffffff !important;
    text-decoration: none !important;
}

.sofia-amazon-btn:active {
    transform: translateY(0);
}

.sofia-amazon-btn-icon {
    font-size: 1.2em;
}

.sofia-amazon-btn-label {
    white-space: nowrap;
}

.sofia-amazon-btn-price {
    display: inline-block;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 800;
    margin-left: 4px;
}

/* ── Product CTA Button (.sofia-product-btn) ────────────────────── */
/* Used for non-Amazon product links (manufacturer, retailer, etc.) */

.sofia-product-cta {
    margin: 30px 0;
    text-align: center;
}

.sofia-product-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #0073aa;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.05em;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 115, 170, 0.3);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sofia-product-btn:hover {
    background: #005f8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 115, 170, 0.45);
    color: #ffffff !important;
    text-decoration: none !important;
}

.sofia-product-btn:active {
    transform: translateY(0);
}

/* ── Amazon Responsive ──────────────────────────────────────────── */

@media screen and (max-width: 768px) {
    .sofia-amazon-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .sofia-amazon-product-img img {
        max-height: 350px;
    }
}