/**
 * Inkora CTA Button Block - Frontend Styles
 * Version: 1.0.0
 */

:root {
    --inkora-cta-primary: #2398bc;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.inkora-cta-wrapper {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    overflow: hidden;
}

.inkora-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ============================================
   BACKGROUND
   ============================================ */
.inkora-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.inkora-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* ============================================
   FLOATING SHAPES
   ============================================ */
.inkora-cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.inkora-cta-shapes .shape {
    position: absolute;
    border-radius: 50%;
}

.inkora-cta-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
    animation: ctaShapeFloat 12s ease-in-out infinite;
}

.inkora-cta-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -60px;
    animation: ctaShapeFloat 15s ease-in-out infinite reverse;
}

.inkora-cta-shapes .shape-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 15%;
    animation: ctaShapeFloat 10s ease-in-out infinite 3s;
}

@keyframes ctaShapeFloat {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, -60px) scale(0.9); }
    75% { transform: translate(40px, -30px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ============================================
   CONTENT
   ============================================ */
.inkora-cta-content {
    position: relative;
    z-index: 2;
}

/* Alignment */
.inkora-cta-align-center .inkora-cta-content {
    text-align: center;
}

.inkora-cta-align-left .inkora-cta-content {
    text-align: left;
}

.inkora-cta-align-right .inkora-cta-content {
    text-align: right;
}

/* ============================================
   TITLE
   ============================================ */
.inkora-cta-title {
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ============================================
   DIVIDER
   ============================================ */
.inkora-cta-divider {
    height: 4px;
    border-radius: 2px;
    margin: 0 0 20px;
}

.inkora-cta-align-center .inkora-cta-divider {
    margin-left: auto;
    margin-right: auto;
}

.inkora-cta-align-right .inkora-cta-divider {
    margin-left: auto;
    margin-right: 0;
}

/* ============================================
   DESCRIPTION
   ============================================ */
.inkora-cta-description {
    line-height: 1.8;
    margin: 0 0 30px;
    max-width: 700px;
    opacity: 0.9;
}

.inkora-cta-align-center .inkora-cta-description {
    margin-left: auto;
    margin-right: auto;
}

.inkora-cta-align-right .inkora-cta-description {
    margin-left: auto;
    margin-right: 0;
}

/* ============================================
   BUTTON
   ============================================ */
.inkora-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 16px 40px;
    font-size: 18px;
    justify-content: center;
}

.inkora-cta-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.inkora-cta-button:hover .dashicons {
    transform: translateX(4px);
}

/* Button Sizes */
.inkora-cta-size-small .inkora-cta-button {
    padding: 10px 24px;
    font-size: 14px;
}

.inkora-cta-size-medium .inkora-cta-button {
    padding: 14px 32px;
    font-size: 16px;
}

.inkora-cta-size-large .inkora-cta-button {
    padding: 18px 48px;
    font-size: 20px;
}

/* ============================================
   DESIGN 1 - Modern Gradient
   ============================================ */
.inkora-cta-design1 .inkora-cta-button {
    background: var(--inkora-cta-primary);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(35, 152, 188, 0.3);
    border-radius: 50px;
}

.inkora-cta-design1 .inkora-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(35, 152, 188, 0.4);
}

/* ============================================
   DESIGN 2 - Outline with Glow
   ============================================ */
.inkora-cta-design2 .inkora-cta-button {
    background: transparent;
    color: var(--inkora-cta-primary);
    border: 2px solid var(--inkora-cta-primary);
    border-radius: 12px;
}

.inkora-cta-design2 .inkora-cta-button:hover {
    background: var(--inkora-cta-primary);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(35, 152, 188, 0.2);
}

/* ============================================
   DESIGN 3 - 3D Effect
   ============================================ */
.inkora-cta-design3 .inkora-cta-button {
    background: var(--inkora-cta-primary);
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 0 var(--inkora-cta-hover, #1a7a9a), 0 12px 30px rgba(35, 152, 188, 0.25);
    transform: translateY(0);
}

.inkora-cta-design3 .inkora-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 var(--inkora-cta-hover, #1a7a9a), 0 16px 40px rgba(35, 152, 188, 0.3);
}

.inkora-cta-design3 .inkora-cta-button:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 var(--inkora-cta-hover, #1a7a9a), 0 8px 20px rgba(35, 152, 188, 0.2);
}

/* ============================================
   CONTENT ANIMATIONS
   ============================================ */
@keyframes ctaFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ctaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ctaSlideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ctaSlideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ctaScaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.inkora-animate-fadeUp .inkora-cta-title {
    opacity: 0;
    animation: ctaFadeUp 0.7s ease forwards;
}
.inkora-animate-fadeUp .inkora-cta-divider {
    opacity: 0;
    animation: ctaFadeUp 0.7s ease 0.1s forwards;
}
.inkora-animate-fadeUp .inkora-cta-description {
    opacity: 0;
    animation: ctaFadeUp 0.7s ease 0.2s forwards;
}
.inkora-animate-fadeUp .inkora-cta-button {
    opacity: 0;
    animation: ctaFadeUp 0.7s ease 0.35s forwards;
}

.inkora-animate-fadeIn .inkora-cta-title {
    opacity: 0;
    animation: ctaFadeIn 0.7s ease forwards;
}
.inkora-animate-fadeIn .inkora-cta-divider {
    opacity: 0;
    animation: ctaFadeIn 0.7s ease 0.1s forwards;
}
.inkora-animate-fadeIn .inkora-cta-description {
    opacity: 0;
    animation: ctaFadeIn 0.7s ease 0.2s forwards;
}
.inkora-animate-fadeIn .inkora-cta-button {
    opacity: 0;
    animation: ctaFadeIn 0.7s ease 0.35s forwards;
}

.inkora-animate-slideLeft .inkora-cta-title {
    opacity: 0;
    animation: ctaSlideLeft 0.7s ease forwards;
}
.inkora-animate-slideLeft .inkora-cta-divider {
    opacity: 0;
    animation: ctaSlideLeft 0.7s ease 0.1s forwards;
}
.inkora-animate-slideLeft .inkora-cta-description {
    opacity: 0;
    animation: ctaSlideLeft 0.7s ease 0.2s forwards;
}
.inkora-animate-slideLeft .inkora-cta-button {
    opacity: 0;
    animation: ctaSlideLeft 0.7s ease 0.35s forwards;
}

.inkora-animate-slideRight .inkora-cta-title {
    opacity: 0;
    animation: ctaSlideRight 0.7s ease forwards;
}
.inkora-animate-slideRight .inkora-cta-divider {
    opacity: 0;
    animation: ctaSlideRight 0.7s ease 0.1s forwards;
}
.inkora-animate-slideRight .inkora-cta-description {
    opacity: 0;
    animation: ctaSlideRight 0.7s ease 0.2s forwards;
}
.inkora-animate-slideRight .inkora-cta-button {
    opacity: 0;
    animation: ctaSlideRight 0.7s ease 0.35s forwards;
}

.inkora-animate-scaleUp .inkora-cta-title {
    opacity: 0;
    animation: ctaScaleUp 0.7s ease forwards;
}
.inkora-animate-scaleUp .inkora-cta-divider {
    opacity: 0;
    animation: ctaScaleUp 0.7s ease 0.1s forwards;
}
.inkora-animate-scaleUp .inkora-cta-description {
    opacity: 0;
    animation: ctaScaleUp 0.7s ease 0.2s forwards;
}
.inkora-animate-scaleUp .inkora-cta-button {
    opacity: 0;
    animation: ctaScaleUp 0.7s ease 0.35s forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .inkora-cta-wrapper {
        padding: 60px 20px;
    }
    
    .inkora-cta-title {
        font-size: 36px !important;
    }
    
    .inkora-cta-shapes .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .inkora-cta-shapes .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .inkora-cta-shapes .shape-3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .inkora-cta-wrapper {
        padding: 50px 16px;
    }
    
    .inkora-cta-title {
        font-size: 30px !important;
    }
    
    .inkora-cta-description {
        font-size: 16px !important;
    }
    
    .inkora-cta-button {
        padding: 14px 32px !important;
        font-size: 16px !important;
    }
    
    .inkora-cta-size-large .inkora-cta-button {
        padding: 16px 36px !important;
        font-size: 18px !important;
    }
    
    .inkora-cta-align-left .inkora-cta-content,
    .inkora-cta-align-right .inkora-cta-content {
        text-align: center;
    }
    
    .inkora-cta-align-left .inkora-cta-divider,
    .inkora-cta-align-right .inkora-cta-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .inkora-cta-align-left .inkora-cta-description,
    .inkora-cta-align-right .inkora-cta-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .inkora-cta-shapes .shape-1 {
        width: 150px;
        height: 150px;
        top: -50px;
        right: -40px;
    }
    
    .inkora-cta-shapes .shape-2 {
        width: 120px;
        height: 120px;
        bottom: -40px;
        left: -30px;
    }
    
    .inkora-cta-shapes .shape-3 {
        display: none;
    }
}

@media (max-width: 576px) {
    .inkora-cta-wrapper {
        padding: 40px 12px;
    }
    
    .inkora-cta-title {
        font-size: 26px !important;
    }
    
    .inkora-cta-description {
        font-size: 15px !important;
    }
    
    .inkora-cta-button {
        padding: 12px 24px !important;
        font-size: 14px !important;
        width: 100%;
        justify-content: center;
    }
    
    .inkora-cta-size-large .inkora-cta-button {
        padding: 14px 28px !important;
        font-size: 16px !important;
    }
    
    .inkora-cta-divider {
        width: 40px !important;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .inkora-cta-title,
    .inkora-cta-divider,
    .inkora-cta-description,
    .inkora-cta-button,
    .inkora-cta-shapes .shape {
        animation: none !important;
        opacity: 1 !important;
    }
    
    .inkora-cta-button:hover {
        transform: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .inkora-cta-wrapper {
        padding: 30px 20px !important;
        background: #fff !important;
    }
    
    .inkora-cta-bg,
    .inkora-cta-overlay,
    .inkora-cta-shapes {
        display: none !important;
    }
    
    .inkora-cta-button {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        color: #000 !important;
        background: #f5f5f5 !important;
    }
}