/*
 Theme Name:   REHub Child - HostOffers
 Theme URI:    https://fiverr.com/skmezan
 Description:  Child theme for REHub (Recompare demo) — HostOffers.com hosting comparison site
 Author:       SK Mezanul Haque
 Author URI:   https://skmezanulhaque.me
 Template:     rehub-theme
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hostoffers
*/

/* ==========================================================================
   NOTE: The "Template" value above MUST match the parent theme's directory name.
   After installing REHub, check wp-content/themes/ for the exact folder name
   and update the Template line accordingly. Common names:
     - rehub-theme
     - flavor-flavor-flavor
   ========================================================================== */

/* ==========================================================================
   HostOffers Custom Styles
   Prefix all custom classes with ho-
   ========================================================================== */

:root {
    --ho-primary: #003366;
    --ho-secondary: #0f172a;
    --ho-accent: #00A859;
    --ho-success: #00A859;
    --ho-danger: #ef4444;
    --ho-text: #1e293b;
    --ho-text-light: #6b7280;
    --ho-bg: #f8fafc;
    --ho-bg-light: #f8fafc;
    --ho-border: #e5e7eb;
    --ho-radius: 8px;
    --ho-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --ho-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.wpsm-button.medium {
  border-radius: 8px;
}

/* --- Affiliate Disclosure Banner --- */
.ho-affiliate-disclosure {
    background: var(--ho-bg-light);
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
    font-size: 0.875rem;
    color: var(--ho-text-light);
    text-align: center;
}

/* --- CTA Box --- */
.ho-cta-box {
    background: linear-gradient(135deg, var(--ho-primary) 0%, var(--ho-secondary) 100%);
    border-radius: var(--ho-radius);
    padding: 32px;
    text-align: center;
    color: #fff;
}

.ho-cta-box h3 {
    color: #fff;
    margin-bottom: 12px;
}

.ho-cta-disclaimer {
    opacity: 0.8;
    margin-top: 12px;
}

/* --- Affiliate CTA Button --- */
.ho-affiliate-btn .wp-block-button__link,
a.ho-card-cta {
    background: var(--ho-accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--ho-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}

.ho-affiliate-btn .wp-block-button__link:hover,
a.ho-card-cta:hover {
    background: #007a40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.35);
}

/* --- Provider Card --- */
.ho-provider-card {
    background: var(--ho-bg);
    border: 1px solid var(--ho-border);
    border-radius: var(--ho-radius);
    margin: 10px 0;
    padding: 24px;
/*    text-align: center; */
    transition: box-shadow 0.25s ease;
}

.ho-provider-card:hover {
    box-shadow: var(--ho-shadow-lg);
}

.ho-card-logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.ho-card-price {
    margin: 12px 0;
}

.ho-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--ho-text-light);
    display: block;
}

.ho-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ho-primary);
}

.ho-card-rating {
    color: var(--ho-accent);
    font-weight: 600;
    margin-bottom: 16px;
}

/* --- Pros / Cons --- */
.ho-pros-cons .ho-pros {
    background: #ecfdf5;
    border-radius: var(--ho-radius);
    padding: 20px;
}

.ho-pros-cons .ho-cons {
    background: #fef2f2;
    border-radius: var(--ho-radius);
    padding: 20px;
}

/* --- Provider Stats Block --- */
.ho-provider-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: var(--ho-bg);
    border: 1px solid var(--ho-border);
    border-radius: var(--ho-radius);
}

.ho-provider-metrics {
    display: flex;
    gap: 32px;
}

.ho-stat {
    text-align: center;
}

.ho-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--ho-text-light);
}

.ho-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ho-text);
}

/* --- Review Updated Badge --- */
.ho-review-updated {
    color: var(--ho-text-light);
    font-size: 0.875rem;
}

/* --- Sticky Disclosure --- */
.ho-sticky-disclosure {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.8rem;
    text-align: center;
    z-index: 998;
}

.ho-sticky-disclosure a {
    color: var(--ho-accent);
    text-decoration: underline;
}

/* --- Quick Compare Table --- */
.ho-quick-compare {
    overflow-x: auto;
    margin: 24px 0;
}

.ho-compare-table {
    width: 100%;
    border-collapse: collapse;
}

.ho-compare-table th,
.ho-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ho-border);
    text-align: left;
}

.ho-compare-table th {
    background: var(--ho-bg-light);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--ho-text-light);
}

.ho-compare-table tr:hover {
    background: var(--ho-bg-light);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .ho-provider-stats {
        flex-direction: column;
        text-align: center;
    }

    .ho-provider-metrics {
        flex-direction: column;
        gap: 16px;
    }

    .ho-cta-box {
        padding: 24px 16px;
    }

    .ho-compare-table {
        font-size: 0.875rem;
    }

    .ho-compare-table th,
    .ho-compare-table td {
        padding: 8px 10px;
    }
}
