/**
 * Coming Soon Teaser Component
 * 
 * Attractive marketing empty state with animations
 * 
 * @package SawLms
 */

/* ============================================
   BASE STYLES
   ============================================ */
.saw-coming-soon {
    position: relative;
    padding: 48px 32px;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg,
            rgba(2, 78, 116, 0.08) 0%,
            rgba(79, 176, 214, 0.12) 50%,
            rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(79, 176, 214, 0.2);
}

/* Full page variant */
.saw-coming-soon--full {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 40px;
    /* Span full width in grid layouts */
    grid-column: 1 / -1;
    width: 100%;
}

/* Section variant (homepage) */
.saw-coming-soon--section {
    margin: 16px 0;
}

/* ============================================
   BACKGROUND ORBS (Animated)
   ============================================ */
.saw-coming-soon__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.saw-coming-soon__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.saw-coming-soon__orb--1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #024E74 0%, #4FB0D6 100%);
    top: -50px;
    right: -50px;
    animation: orbFloat 8s ease-in-out infinite;
}

.saw-coming-soon__orb--2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #8B5CF6 0%, #4FB0D6 100%);
    bottom: -30px;
    left: -30px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(15px, -10px) scale(1.05);
    }

    66% {
        transform: translate(-10px, 15px) scale(0.95);
    }
}

/* ============================================
   CONTENT
   ============================================ */
.saw-coming-soon__content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

/* Icon */
.saw-coming-soon__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    padding: 18px;
    background: linear-gradient(135deg, #024E74 0%, #4FB0D6 100%);
    border-radius: 20px;
    box-shadow:
        0 8px 24px rgba(2, 78, 116, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: iconPulse 3s ease-in-out infinite;
}

.saw-coming-soon__icon svg {
    width: 100%;
    height: 100%;
    color: #fff;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 8px 24px rgba(2, 78, 116, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 12px 32px rgba(2, 78, 116, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
}

/* Title */
.saw-coming-soon__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--saw-text, #f8fafc);
    margin: 0 0 12px;
    line-height: 1.3;
    background: linear-gradient(135deg, #024E74 0%, #4FB0D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Message */
.saw-coming-soon__message {
    font-size: 1rem;
    color: var(--saw-text-secondary, #94a3b8);
    line-height: 1.7;
    margin: 0 0 28px;
}

/* CTA Button */
.saw-coming-soon__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #024E74 0%, #4FB0D6 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(2, 78, 116, 0.3);
}

.saw-coming-soon__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 78, 116, 0.4);
}

.saw-coming-soon__cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.saw-coming-soon__cta:hover svg {
    transform: translateX(4px);
}

/* Decoration circles */
.saw-coming-soon__decoration {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    color: var(--saw-text-muted, #64748b);
    pointer-events: none;
    z-index: 1;
    animation: decorRotate 30s linear infinite;
}

@keyframes decorRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TYPE VARIANTS (color accents)
   ============================================ */
.saw-coming-soon--events {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.08) 0%,
            rgba(79, 176, 214, 0.12) 50%,
            rgba(2, 78, 116, 0.08) 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

.saw-coming-soon--events .saw-coming-soon__icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.saw-coming-soon--events .saw-coming-soon__orb--1 {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
}

.saw-coming-soon--events .saw-coming-soon__title {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.saw-coming-soon--events .saw-coming-soon__cta {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.saw-coming-soon--events .saw-coming-soon__cta:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] .saw-coming-soon {
    background: linear-gradient(135deg,
            rgba(2, 78, 116, 0.04) 0%,
            rgba(79, 176, 214, 0.08) 50%,
            rgba(139, 92, 246, 0.04) 100%);
    border-color: rgba(2, 78, 116, 0.15);
}

[data-theme="light"] .saw-coming-soon__orb {
    opacity: 0.2;
}

[data-theme="light"] .saw-coming-soon__title {
    color: #024E74;
    -webkit-text-fill-color: initial;
    background: none;
}

[data-theme="light"] .saw-coming-soon--events .saw-coming-soon__title {
    color: #7C3AED;
}

[data-theme="light"] .saw-coming-soon__message {
    color: #64748b;
}

[data-theme="light"] .saw-coming-soon__cta {
    color: #fff;
}

[data-theme="light"] .saw-coming-soon__decoration {
    color: #94a3b8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .saw-coming-soon {
        padding: 36px 20px;
        border-radius: 16px;
    }

    .saw-coming-soon--full {
        padding: 48px 24px;
        min-height: 250px;
    }

    .saw-coming-soon__icon {
        width: 60px;
        height: 60px;
        padding: 14px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .saw-coming-soon__title {
        font-size: 1.25rem;
    }

    .saw-coming-soon__message {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .saw-coming-soon__cta {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .saw-coming-soon__decoration {
        width: 120px;
        height: 120px;
        right: -30px;
        bottom: -30px;
    }

    .saw-coming-soon__orb--1 {
        width: 150px;
        height: 150px;
    }

    .saw-coming-soon__orb--2 {
        width: 100px;
        height: 100px;
    }
}