/* Aura Core Styles */

:root {
    /* Design Tokens - Will be overridden by inline styles from WP settings */
    --aura-primary: #ef4444;
    --aura-primary-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    --aura-secondary: #ffffff;
    --aura-text: #1f2937;
    --aura-glass-bg: rgba(255, 255, 255, 0.4);
    --aura-glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --aura-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --aura-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --aura-shimmer-grad: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Floating Bar Container */
.aura-bar {
    position: fixed;
    bottom: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    background: var(--aura-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--aura-radius);
    border: var(--aura-glass-border);
    box-shadow: var(--aura-shadow);
    z-index: 9999;
    transition: var(--aura-transition);
    max-width: 95%;
    width: auto;
}

/* Location Modifiers */
.aura-location-center {
    left: 50%;
    right: auto;
    --aura-h-transform: -50%;
}

.aura-location-left {
    left: 30px;
    right: auto;
    --aura-h-transform: 0;
}

.aura-location-right {
    right: 30px;
    left: auto;
    --aura-h-transform: 0;
}

.aura-bar.visible {
    opacity: 1;
}

@keyframes auraSlideUp {
    to {
        opacity: 1;
        transform: translateX(var(--aura-h-transform, -50%)) translateY(0);
    }
}

/* Visibility Utilities */
.aura-hide-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    .aura-hide-mobile {
        display: none !important;
    }

    .aura-hide-desktop {
        display: flex !important;
    }
}

.aura-progress-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 5;
}

.aura-progress-wrap.aura-progress-bottom {
    top: auto;
    bottom: 0;
}

.aura-progress-bar {
    height: 100%;
    background: var(--aura-primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* Magnetic Wrap & Buttons */
.aura-magnetic-wrap {
    display: inline-block;
    padding: 10px;
    /* Reduced for bar context */
}

.aura-btn {
    position: relative;
    padding: 10px 24px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: var(--aura-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.1s ease-out, background 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.aura-btn-primary {
    background: var(--aura-primary-gradient);
    color: white;
    box-shadow: var(--aura-primary-shadow, 0 4px 6px -1px rgba(239, 68, 68, 0.4));
}

@keyframes aura-gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.aura-gradient-animate {
    background-size: 200% 200% !important;
    animation: aura-gradient-flow 4s ease infinite !important;
}

.aura-shimmer {
    position: relative;
    overflow: hidden;
}

.aura-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: var(--aura-shimmer-grad);
    transform: skewX(-20deg);
    animation: aura-shimmer 8s infinite;
}

@keyframes aura-shimmer {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}


.aura-btn-pulse {
    animation: aura-pulse 3s infinite;
}


.aura-btn-secondary {
    background: white;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* Rolling Text Styles */
.aura-btn-text {
    display: inline-block;
    height: 1.2em;
    line-height: 1.2em;
    overflow: hidden;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.aura-text-inner {
    display: inline-block;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aura-text-inner.duplicate {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

/* Icons */
.aura-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    pointer-events: none;
}

.aura-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

@keyframes aura-pulse {
    0% {
        box-shadow: 0 0 0 0 var(--aura-pulse-color, rgba(239, 68, 68, 0.4));
    }

    70% {
        box-shadow: 0 0 0 10px var(--aura-pulse-color-fade, rgba(239, 68, 68, 0));
    }

    100% {
        box-shadow: 0 0 0 0 var(--aura-pulse-color-fade, rgba(239, 68, 68, 0));
    }
}


/* Close & Recall */
.aura-close {
    position: absolute;
    top: -12px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--aura-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--aura-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: var(--aura-glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 10000;
}

.aura-close.aura-close-bottom {
    top: auto;
    bottom: -12px;
}

.aura-close:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1) translateY(-2px);
    color: var(--aura-primary);
}


.aura-recall {
    position: fixed;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background: var(--aura-primary-gradient);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: var(--aura-shadow);
    color: white;
}

.aura-recall.aura-location-left {
    left: 25px;
}

.aura-recall.aura-location-right,
.aura-recall.aura-location-center {
    right: 25px;
}

.aura-recall svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width: 600px) {
    .aura-bar {
        padding: 10px;
        bottom: 20px;
        gap: 8px;
    }

    .aura-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Glassmorphism Utility Classes */
.aura-glass {
    background: var(--aura-glass-bg-tint, rgba(255, 255, 255, 0.2)) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--aura-radius) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}

.aura-glass-dark {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--aura-radius) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    color: white !important;
}

.aura-glass:hover,
.aura-glass-dark:hover {
    background: var(--aura-glass-bg-tint-hover, rgba(255, 255, 255, 0.25)) !important;
    transform: translateY(-2px);
}

.aura-glass-dark:hover {
    background: rgba(0, 0, 0, 0.4) !important;
}


/* Base style for magnetic interaction trigger */
.aura-magnetic-wrap,
.aura-glass-magnetic,
.aura-glass-dark-magnetic {
    display: inline-block;
}