/* Blog Post Call-to-Action Styling - Glass Umbrella Brand Guidelines */

/* Import brand variables */
:root {
    /* Brand Colors - matching website/css/base/variables.css */
    --brand-purple: #7B44C1;
    --brand-blue: #1E96FC;
    --brand-mint: #9AD5CA;
    --brand-cloud: #EBEBEB;
    --brand-charcoal: #323031;
    
    /* Gradient Colors */
    --gradient-purple-start: #6A3DB3;
    --gradient-purple-end: #7B44C1;
    --gradient-blue-start: #1792F7;
    --gradient-blue-end: #1E96FC;
    
    /* Shadows */
    --shadow-glow-mint: 0px 1px 10px 5px #9AD5CA;
    --shadow-glow-blue: 0px 3px 15px 7px rgba(30, 150, 252, 0.4);
    
    /* Transitions */
    --transition-normal: 0.3s ease;
    
    /* Border Radius */
    --radius-md: 12px;
    
    /* Text Shadow */
    --text-shadow-light: 0px 1px 0px rgba(255, 255, 255, 0.3);
}

/* Base CTA Box Styling */
.cta-box {
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.1), rgba(147, 51, 234, 0.05));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(123, 68, 193, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(123, 68, 193, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(123, 68, 193, 0.25);
    border-color: rgba(123, 68, 193, 0.5);
}

/* Gradient overlay effect */
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 68, 193, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* CTA Content */
.cta-box h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* CTA Button Styles - Matching card-cta from blog-glass-morphism.css */
.cta-button {
    background: #7B44C1;
    border: 1px solid #EBEBEB;
    color: #EBEBEB !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-transform: lowercase;
    display: inline-block;
    font-family: 'Merriweather', Georgia, serif;
    cursor: pointer;
    -webkit-text-fill-color: #EBEBEB !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.cta-button:hover {
    background: linear-gradient(to bottom, #1792F7 5%, #6A3DB3 100%);
    transform: scale(1.05);
    box-shadow: 0px 3px 15px 7px rgba(30, 150, 252, 0.2);
    color: #EBEBEB !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #EBEBEB !important;
    text-shadow: none;
}

/* For consistency, both primary and secondary use same style */
.cta-button.cta-primary,
.cta-button.cta-secondary {
    /* Inherits all styles from .cta-button */
}

.cta-button.cta-primary:hover,
.cta-button.cta-secondary:hover {
    /* Inherits all hover styles from .cta-button:hover */
}

/* Ensure no underlines in any state */
.cta-button:link,
.cta-button:visited,
.cta-button:active,
.cta-button:focus {
    text-decoration: none !important;
}

/* Button ripple effect */
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:active::after {
    width: 300px;
    height: 300px;
}

/* CTA Note */
.cta-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
    font-family: 'Merriweather', Georgia, serif;
}

/* Social Proof Section */
.cta-social-proof {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-social-proof p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    font-family: 'Merriweather', Georgia, serif;
}

.cta-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: 'Merriweather', Georgia, serif;
}

.cta-stats span:not(:nth-child(2n)) {
    color: #7b44c1;
}

/* Specific CTA Variants */
.primary-cta {
    margin-top: 3rem;
}

.smithy-cta {
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.15), rgba(147, 51, 234, 0.08));
    border-color: rgba(123, 68, 193, 0.4);
}

.final-cta {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-box {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cta-box {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .cta-box h3 {
        font-size: 1.3rem;
    }
    
    .cta-stats {
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cta-box {
        background: linear-gradient(135deg, rgba(123, 68, 193, 0.2), rgba(147, 51, 234, 0.1));
    }
}

/* Loading animation for buttons */
.cta-button.loading {
    color: transparent;
    pointer-events: none;
}

.cta-button.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}