/**
 * CTA Banners & Enhanced Site Tooltips
 * Beautiful call-to-action banners and contextual guidance tooltips
 */

/* ======================================
   CTA BANNER SECTION
   ====================================== */

.cta-banner-section {
    position: relative;
    padding: 60px 0;
    margin: 40px 0;
    overflow: hidden;
}

.cta-banner {
    position: relative;
    background: linear-gradient(135deg, #1a5f7a 0%, #0d3d4d 50%, #1a5f7a 100%);
    border-radius: 24px;
    padding: 50px 40px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(26, 95, 122, 0.3),
        0 0 0 1px rgba(201, 162, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    transition: all 0.4s ease;
}

.cta-banner:hover {
    transform: translateY(-5px);
    box-shadow:
        0 30px 80px rgba(26, 95, 122, 0.4),
        0 0 0 2px rgba(201, 162, 39, 0.4);
}

/* Animated Background Elements */
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: ctaGlow 8s ease-in-out infinite;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: ctaGlow 6s ease-in-out infinite reverse;
}

@keyframes ctaGlow {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) translate(10px, -10px);
        opacity: 0.8;
    }
}

/* Floating Flames Animation */
.cta-banner-flames {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-flame {
    position: absolute;
    font-size: 24px;
    color: rgba(201, 162, 39, 0.3);
    animation: flameFloat 15s ease-in-out infinite;
}

.cta-flame:nth-child(1) { top: 20%; right: 10%; animation-delay: 0s; }
.cta-flame:nth-child(2) { top: 60%; right: 25%; animation-delay: -3s; font-size: 18px; }
.cta-flame:nth-child(3) { top: 40%; right: 5%; animation-delay: -6s; font-size: 20px; }
.cta-flame:nth-child(4) { bottom: 20%; right: 15%; animation-delay: -9s; font-size: 16px; }

@keyframes flameFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-25px) rotate(3deg);
        opacity: 0.6;
    }
}

/* CTA Content */
.cta-banner-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.cta-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(201, 162, 39, 0.1));
    border: 1px solid rgba(201, 162, 39, 0.5);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #e8d48b;
    margin-bottom: 20px;
    animation: badgePulse 2s ease-in-out infinite;
}

.cta-banner-badge i {
    color: #c9a227;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(201, 162, 39, 0.2); }
}

.cta-banner-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cta-banner-title span {
    color: #c9a227;
    display: inline-block;
}

.cta-banner-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 600px;
}

/* CTA Action Area */
.cta-banner-action {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cta-main-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #c9a227 0%, #e8d48b 50%, #c9a227 100%);
    background-size: 200% 100%;
    color: #1a5f7a;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow:
        0 10px 30px rgba(201, 162, 39, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    animation: ctaButtonShine 3s ease-in-out infinite;
}

.cta-main-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(201, 162, 39, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    background-position: 100% 0;
}

.cta-main-button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.cta-main-button:hover i {
    transform: translateX(-5px);
}

@keyframes ctaButtonShine {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}

.cta-secondary-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-secondary-link:hover {
    color: #c9a227;
}

.cta-secondary-link i {
    margin-right: 5px;
}

/* CTA Banner Variants */
.cta-banner.cta-banner-compact {
    padding: 35px 30px;
}

.cta-banner.cta-banner-compact .cta-banner-title {
    font-size: 1.6rem;
}

.cta-banner.cta-banner-compact .cta-banner-description {
    font-size: 1rem;
}

.cta-banner.cta-banner-compact .cta-main-button {
    padding: 14px 30px;
    font-size: 1.05rem;
}

/* Light Theme Variant */
.cta-banner.cta-banner-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(26, 95, 122, 0.1);
}

.cta-banner.cta-banner-light .cta-banner-title {
    color: #1a5f7a;
}

.cta-banner.cta-banner-light .cta-banner-description {
    color: #555;
}

.cta-banner.cta-banner-light .cta-banner-badge {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.15), rgba(26, 95, 122, 0.05));
    border-color: rgba(26, 95, 122, 0.3);
    color: #1a5f7a;
}

/* ======================================
   INLINE SITE TOOLTIPS (Enhanced)
   ====================================== */

.site-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.05));
    border: 1px dashed rgba(201, 162, 39, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    color: #1a5f7a;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: tooltipGentlePulse 3s ease-in-out infinite;
}

.site-tooltip:hover {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.1));
    border-color: rgba(201, 162, 39, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 162, 39, 0.2);
}

.site-tooltip i {
    color: #c9a227;
    font-size: 0.85rem;
}

@keyframes tooltipGentlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
    }
    50% {
        box-shadow: 0 0 10px 2px rgba(201, 162, 39, 0.15);
    }
}

/* Arrow Tooltip - Points to Elements */
.arrow-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff9e6, #fff5d6);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 10px 18px;
    border-radius: 12px;
    color: #1a5f7a;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
}

.arrow-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.arrow-tooltip.arrow-right::before {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent #fff5d6;
}

.arrow-tooltip.arrow-left::before {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 10px 8px 0;
    border-color: transparent #fff5d6 transparent transparent;
}

.arrow-tooltip.arrow-up::before {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 10px 8px;
    border-color: transparent transparent #fff5d6 transparent;
}

.arrow-tooltip.arrow-down::before {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 8px 0 8px;
    border-color: #fff5d6 transparent transparent transparent;
}

.arrow-tooltip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.25);
    background: linear-gradient(135deg, #fff, #fff9e6);
}

.arrow-tooltip .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #c9a227, #e8d48b);
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

/* Contextual Help Bubble */
.help-bubble {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(26, 95, 122, 0.15);
    border-radius: 16px;
    padding: 15px 20px;
    max-width: 320px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin: 10px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.help-bubble:hover {
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.15);
    transform: translateY(-2px);
}

.help-bubble-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a5f7a, #2980b9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.help-bubble-content {
    flex: 1;
}

.help-bubble-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a5f7a;
    margin-bottom: 4px;
}

.help-bubble-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.help-bubble-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c9a227;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    text-decoration: none;
}

.help-bubble-link i {
    transition: transform 0.3s ease;
}

.help-bubble:hover .help-bubble-link i {
    transform: translateX(-5px);
}

/* Step Indicator Tooltip */
.step-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a5f7a, #0d3d4d);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(26, 95, 122, 0.3);
    transition: all 0.3s ease;
}

.step-tooltip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 95, 122, 0.4);
}

.step-tooltip .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #c9a227, #e8d48b);
    border-radius: 50%;
    color: #1a5f7a;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Floating Guide Element */
.floating-guide {
    position: fixed;
    z-index: 999;
    background: #fff;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(201, 162, 39, 0.2);
    max-width: 280px;
    animation: floatingGuideEntry 0.5s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.floating-guide::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
}

.floating-guide.point-right::before {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

.floating-guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.floating-guide-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #c9a227, #e8d48b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.floating-guide-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a5f7a;
}

.floating-guide-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.floating-guide-dismiss {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
    transition: all 0.3s ease;
}

.floating-guide-dismiss:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

@keyframes floatingGuideEntry {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 992px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .cta-banner-content {
        text-align: center;
    }

    .cta-banner-description {
        max-width: 100%;
    }

    .cta-banner-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .cta-banner-section {
        padding: 40px 0;
        margin: 20px 0;
    }

    .cta-banner {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .cta-banner-title {
        font-size: 1.5rem;
    }

    .cta-banner-description {
        font-size: 1rem;
    }

    .cta-main-button {
        padding: 14px 28px;
        font-size: 1.05rem;
    }

    .help-bubble {
        max-width: 100%;
    }

    .floating-guide {
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .cta-banner-title {
        font-size: 1.3rem;
    }

    .cta-main-button {
        width: 100%;
        justify-content: center;
    }
}
