﻿/* AI FULLSCREEN OVERLAY */

.ai-loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: white;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
    overflow: hidden;
}

    /* ACTIVE */

    .ai-loader-wrapper.active {
        visibility: visible;
        opacity: 1;
    }

/* SPINNER */

.ai-loader {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: transparent;
    animation: ai-loader-rotate 2s linear infinite;
    z-index: 0;
}

/* ROTATION */

@keyframes ai-loader-rotate {

    0% {
        transform: rotate(90deg);
        box-shadow: 0 10px 20px 0 #fff inset, 0 20px 30px 0 #ad5fff inset, 0 60px 60px 0 #471eec inset;
    }

    50% {
        transform: rotate(270deg);
        box-shadow: 0 10px 20px 0 #fff inset, 0 20px 10px 0 #d60a47 inset, 0 40px 60px 0 #311e80 inset;
    }

    100% {
        transform: rotate(450deg);
        box-shadow: 0 10px 20px 0 #fff inset, 0 20px 30px 0 #ad5fff inset, 0 60px 60px 0 #471eec inset;
    }
}

/* LETTERS */

.ai-loader-letter {
    position: relative;
    z-index: 2;
    display: inline-block;
    opacity: .35;
    animation: ai-loader-letter-anim 2s infinite;
    pointer-events: none;
}

    /* LETTER DELAYS */

    .ai-loader-letter:nth-child(1) {
        animation-delay: 0s;
    }

    .ai-loader-letter:nth-child(2) {
        animation-delay: 0.1s;
    }

    .ai-loader-letter:nth-child(3) {
        animation-delay: 0.2s;
    }

    .ai-loader-letter:nth-child(4) {
        animation-delay: 0.3s;
    }

    .ai-loader-letter:nth-child(5) {
        animation-delay: 0.4s;
    }

    .ai-loader-letter:nth-child(6) {
        animation-delay: 0.5s;
    }

    .ai-loader-letter:nth-child(7) {
        animation-delay: 0.6s;
    }

    .ai-loader-letter:nth-child(8) {
        animation-delay: 0.7s;
    }

    .ai-loader-letter:nth-child(9) {
        animation-delay: 0.8s;
    }

    .ai-loader-letter:nth-child(10) {
        animation-delay: 0.9s;
    }

/* LETTER ANIMATION */

@keyframes ai-loader-letter-anim {

    0%,100% {
        opacity: .35;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
        transform: scale(1.15);
    }

    40% {
        opacity: .6;
        transform: translateY(0);
    }
}




.ai-generator-card {
    margin-bottom: 6px;
}

.ai-generator-header {
    min-height: 34px !important;
    height: 34px;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    display: flex;
    align-items: center;
}

    .ai-generator-header h6 {
        font-size: 13px;
        line-height: 1.2;
    }

.ai-generator-card .card-body {
    padding: 10px !important;
}

.ai-input-wrapper {
    position: relative;
}

.ai-prompt-box {
    min-height: 78px !important;
    max-height: 78px;
    resize: none;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 52px 10px 12px !important;
    border-radius: 16px;
}

#generateAiButton {
    border: none;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 5;
    width: 134px;
    height: 34px;
    border-radius: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 350ms ease-in-out;
    background: linear-gradient( 135deg, #f4c542, #e0a800 );
    box-shadow: 0 4px 12px rgba(224, 168, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.35);
    color: #fff;
}

    #generateAiButton,
    #generateAiButton *,
    #generateAiButton:hover,
    #generateAiButton:hover * {
        cursor: pointer !important;
    }

        #generateAiButton i {
            margin: 0;
        }

.sparkle {
    fill: rgba(255,255,255,0.92);
    transition: all 400ms ease;
}

.text {
    font-weight: 600;
    color: white;
    font-size: 14px;
    letter-spacing: 0.2px;
}

#generateAiButton:hover {
    background: linear-gradient( 135deg, #ffd95c, #f0b400 );
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(224, 168, 0, 0.4), 0 0 24px rgba(255, 204, 0, 0.35);
    cursor: pointer;
}

    #generateAiButton:hover .sparkle {
        transform: scale(1.15) rotate(8deg);
        fill: white;
    }

#generateAiButton:active {
    transform: scale(0.98);
}

#generateAiButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

