/* ==========================================================================
   AFFILIATE CTA COMPONENTS
   Three specialized variants extending the existing sp-cta-box pattern.
   Designed for: Viator (Tours), Booking.com (Lodging), The Dyrt (Camping)
   ========================================================================== */

/* --- Base Affiliate CTA Box --- */
.sp-affiliate-cta {
    position: relative;
    padding: 28px 24px 24px;
    border-radius: 16px;
    margin: 2em 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sp-affiliate-cta:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Disclosure badge - top right */
.sp-affiliate-cta::before {
    content: 'Partner Link';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    opacity: 0.7;
}

.sp-affiliate-cta-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    display: block;
}

.sp-affiliate-cta h4 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.sp-affiliate-cta p {
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.9;
}

.sp-affiliate-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.sp-affiliate-cta-btn::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.sp-affiliate-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sp-affiliate-cta-btn:hover::after {
    transform: translateX(4px);
}

/* Small legal text below button */
.sp-affiliate-cta-note {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    opacity: 0.6;
    font-style: italic;
}


/* ==========================================================================
   VARIANT 1: TOUR CTA (Viator / GetYourGuide)
   Color: Vibrant Teal → captures "adventure" and "discovery"
   ========================================================================== */

.sp-affiliate-cta--tour {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
    color: #ffffff;
    border-left: 5px solid #4db6ac;
}

.sp-affiliate-cta--tour::before {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sp-affiliate-cta--tour h4 {
    color: #ffffff;
}

.sp-affiliate-cta--tour .sp-affiliate-cta-btn {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2f1 100%);
    color: #00695c !important;
}

.sp-affiliate-cta--tour .sp-affiliate-cta-btn:hover {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: #004d40 !important;
    box-shadow: 0 6px 25px rgba(0, 137, 123, 0.4);
}


/* ==========================================================================
   VARIANT 2: LODGE CTA (Booking.com / Hotels)
   Color: Deep Navy → conveys "trust" and "comfort"
   ========================================================================== */

.sp-affiliate-cta--lodge {
    background: linear-gradient(135deg, #1a237e 0%, #0d1b52 100%);
    color: #ffffff;
    border-left: 5px solid #5c6bc0;
}

.sp-affiliate-cta--lodge::before {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.sp-affiliate-cta--lodge h4 {
    color: #ffffff;
}

.sp-affiliate-cta--lodge .sp-affiliate-cta-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #1a237e !important;
}

.sp-affiliate-cta--lodge .sp-affiliate-cta-btn:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    color: #0d1b52 !important;
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.4);
}


/* ==========================================================================
   VARIANT 3: CAMPING CTA (The Dyrt / Reserve America)
   Color: Warm Forest Green → matches brand identity Heritage Green
   ========================================================================== */

.sp-affiliate-cta--camp {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #ffffff;
    border-left: 5px solid #66bb6a;
}

.sp-affiliate-cta--camp::before {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sp-affiliate-cta--camp h4 {
    color: #ffffff;
}

.sp-affiliate-cta--camp .sp-affiliate-cta-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #1b5e20 !important;
}

.sp-affiliate-cta--camp .sp-affiliate-cta-btn:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    color: #0d3311 !important;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}


/* ==========================================================================
   VARIANT 4: GEAR CTA (REI / Amazon)
   Color: Earthy Amber → "outdoor equipment" feel
   ========================================================================== */

.sp-affiliate-cta--gear {
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
    color: #ffffff;
    border-left: 5px solid #ff8a65;
}

.sp-affiliate-cta--gear::before {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.sp-affiliate-cta--gear h4 {
    color: #ffffff;
}

.sp-affiliate-cta--gear .sp-affiliate-cta-btn {
    background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
    color: #bf360c !important;
}

.sp-affiliate-cta--gear .sp-affiliate-cta-btn:hover {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #8d2608 !important;
    box-shadow: 0 6px 25px rgba(230, 81, 0, 0.4);
}


/* ==========================================================================
   INLINE AFFILIATE LINK (for text-flow integration)
   Subtle highlight that doesn't break reading rhythm
   ========================================================================== */

.sp-affiliate-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #00695c !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 105, 92, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.sp-affiliate-inline:hover {
    color: #004d40 !important;
    text-decoration-color: rgba(0, 105, 92, 0.8);
}

.sp-affiliate-inline::after {
    content: '↗';
    font-size: 0.75em;
    opacity: 0.6;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .sp-affiliate-cta {
        padding: 22px 18px 20px;
        margin: 1.5em 0;
    }

    .sp-affiliate-cta h4 {
        font-size: 1.05rem;
        padding-right: 70px; /* Space for disclosure badge */
    }

    .sp-affiliate-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}
