/* ── compare-host.site Global Styles ────────────────── */

/* Font smoothing & scroll behavior */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* ── Scroll Animations ──────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Prose (blog / review content) ─────────────────── */
.prose {
    max-width: 76ch;
    color: #374151;
    line-height: 1.85;
}
.prose h1 { font-size: 2.25rem; font-weight: 800; margin: 2rem 0 1rem; color: #111827; }
.prose h2 { font-size: 1.75rem; font-weight: 700; margin: 2rem 0 1rem; color: #111827; }
.prose h3 { font-size: 1.35rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #1e3a8a; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style-type: disc; }
.prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style-type: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose a  { color: #2563eb; text-decoration: underline; font-weight: 600; }
.prose a:hover { color: #1d4ed8; }
.prose strong { font-weight: 700; color: #111827; }
.prose blockquote {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    font-style: italic;
    margin: 1.5rem 0;
}
.prose img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    margin: 2rem 0;
    width: 100%;
    height: auto;
}
.prose code {
    background: #f3f4f6;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.875em;
    color: #be123c;
}
.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.prose pre code { background: none; color: inherit; padding: 0; }

/* ── Animated Banner Ad ─────────────────────────────── */
@keyframes bgSlide {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rh-banner-wrap {
    background: linear-gradient(-45deg, #1e3a8a, #1e40af, #2563eb, #3b82f6, #0ea5e9);
    background-size: 400% 400%;
    animation: bgSlide 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.rh-sweep {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 40%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0.15) 60%,
        transparent 100%
    );
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.rh-banner-wrap:hover .rh-sweep { transform: translateX(100%); }
.rh-logo { transition: transform 0.3s ease; }
.rh-banner-wrap:hover .rh-logo { transform: scale(1.08); }

/* ── Provider / Coupon Card Hover ───────────────────── */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ── Star Rating ────────────────────────────────────── */
.star-rating { color: #f59e0b; letter-spacing: 0.05em; }

/* ── Admin Table ────────────────────────────────────── */
.tbl {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.tbl th, .tbl td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}
.tbl th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #f1f5f9; }

/* ── Admin Form Inputs ──────────────────────────────── */
.admin-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}
.admin-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* ── Badge Pills ────────────────────────────────────── */
.badge-green  { background:#dcfce7; color:#166534; }
.badge-yellow { background:#fef9c3; color:#854d0e; }
.badge-red    { background:#fee2e2; color:#991b1b; }
.badge-blue   { background:#dbeafe; color:#1e40af; }
.badge-gray   { background:#f1f5f9; color:#475569; }

/* ── Gold/Silver/Bronze Rank Ribbons ────────────────── */
.rank-1 { background: linear-gradient(135deg,#ffd700,#ffb300); color:#7c5200; }
.rank-2 { background: linear-gradient(135deg,#e8e8e8,#b0b0b0); color:#3a3a3a; }
.rank-3 { background: linear-gradient(135deg,#cd7f32,#a0522d); color:#fff; }

/* ── Mobile nav transition ──────────────────────────── */
#mobile-nav {
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}
#mobile-nav.open {
    max-height: 400px;
    opacity: 1;
}

/* ── Comparison Table ───────────────────────────────── */
.compare-table th:first-child,
.compare-table td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    min-width: 160px;
}
.compare-table th:first-child { background: #f8fafc; }

/* ── FAQ Accordion ──────────────────────────────────── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer.open { max-height: 400px; }

/* ── Floating Action ────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-8px) rotate(1deg); }
    66%       { transform: translateY(-4px) rotate(-1deg); }
}
.float-anim { animation: float 6s ease-in-out infinite; }

/* ── Gradient Text ──────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero glow ──────────────────────────────────────── */
.hero-glow {
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.25) 0%, transparent 70%);
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
