/**
 * React Components WP - Tailwind Variant Styles
 */

/* Base component styles */
.react-component-placeholder {
    min-height: 20px;
    position: relative;
    display: block;
}

/* Loading state */
.react-component-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    color: #6b7280;
    font-style: italic;
}

/* Error styles */
.react-component-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.react-component-error strong {
    font-weight: 600;
}

/* Counter component styles */
.counter-component {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    line-height: 1;
}

/* Card component styles */
.bounce-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.bounce-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
}

.bounce-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Spotlight card styles */
.spotlight-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
}

.spotlight-card:hover {
    transform: scale(1.02);
}

/* Text reveal animation */
.text-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Click spark animation */
.click-spark-container {
    position: relative;
    display: inline-block;
    user-select: none;
}

.spark {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkAnimation 1s ease-out forwards;
}

@keyframes sparkAnimation {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
}

/* Blob cursor */
.blob-cursor {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

/* Debug mode styles */
[data-debug="true"] {
    border: 2px dashed #3b82f6;
    position: relative;
}

[data-debug="true"]::before {
    content: attr(data-component-name);
    position: absolute;
    top: -20px;
    left: 0;
    background: #3b82f6;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    font-family: monospace;
    z-index: 1000;
}

/* Lazy loading styles */
.react-component-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.react-component-lazy.loaded {
    opacity: 1;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .bounce-cards-container {
        flex-direction: column;
    }
    
    .bounce-card {
        width: 100% !important;
    }
    
    .counter-component {
        font-size: 0.8em;
    }
} 