/* ------------------------------------------
   MAIN STYLING (YOUR ORIGINAL CODE INCLUDED)
------------------------------------------- */

.ai-screen {
/*     background-image: url("../public/images/banner-bg.png"); */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.ai-section {
    width: 100%;
    max-width: 850px;
    margin: auto;
}

.ai-section > * {
    padding: 15px;
    text-align: center;
    color: #fff;
}

.ai-header h1 {
    font-size: 40px;
    font-weight: 400;
}

.ai-header p {
    font-size: 20px;
    font-weight: 400;
}

.ai-footer p {
    font-size: 24px;
}

.ai-footer p b {
    font-weight: 900;
}

.ai-section-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-message-box {
    --border-width: 1px;
    --radius: 36px;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: unset;
    position: relative;
    border-radius: var(--radius);
    border: var(--border-width) solid transparent;
}
.ai-message-box-inner {
  position: relative;
  z-index: 1;
}
/* Animated border using masking */
/* 
        @supports not (background: paint(something)) {
          
            .ai-message-box:not(.focus):before {
                background-image: conic-gradient(rgba(255, 255, 255, 0.2) 80%,
                        #fff 88%,
                        #fff 92%,
                        rgba(255, 255, 255, 0.2) 100%);

            }
        } */

        .ai-message-box:not(.focus)::before {
            content: ' ';
            position: absolute;
            inset: -1px;
            border: 1px solid transparent;
            border-radius: inherit;
            background-image: conic-gradient(from var(--angle),
                    #fff var(--percent1),
                    #3339f1 var(--percent2),
                    #3339f1 var(--percent3),
                    #fff var(--percent4));
            background-origin: border-box;
            -webkit-mask: linear-gradient(black, black) content-box,
                linear-gradient(black, black);
            mask: linear-gradient(black, black), linear-gradient(black, black);
            -webkit-mask-clip: content-box, border-box;
            mask-clip: content-box, border-box;
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            animation: spin-ai 5s linear infinite;


        }



        @property --angle {
            syntax: '<angle>';
            inherits: true;
            initial-value: 0turn;
        }

        @property --percent1 {
            syntax: '<percentage>';
            inherits: true;
            initial-value: 74%;
        }

        @property --percent2 {
            syntax: '<percentage>';
            inherits: true;
            initial-value: 81%;
        }

        @property --percent3 {
            syntax: '<percentage>';
            inherits: true;
            initial-value: 94%;
        }

        @property --percent4 {
            syntax: '<percentage>';
            inherits: true;
            initial-value: 100%;
        }

        @keyframes spin-ai {
            100% {
                --angle: 1turn;
            }
        }
/* 
.ai-message-box:before {
    content: " ";
    position: absolute;
    inset: calc(var(--border-width) * 0);
    z-index: -1;
    border: inherit;
    border-radius: inherit;

    background-image: conic-gradient(from var(--angle),
            #ffffff 30%,
            #4353ff 50%,
            #4353ff 90%,
            #ffffff 100%);
    background-origin: border-box;
	animation: spin 3s linear infinite;
    -webkit-mask: linear-gradient(black, black) content-box,
        linear-gradient(black, black);
    mask: linear-gradient(black, black), linear-gradient(black, black);
    -webkit-mask-clip: content-box, border-box;
    mask-clip: content-box, border-box;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    
}
@property --angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

@keyframes spin {
    to {
        --angle: 1turn;
    }
} */
/* @supports not (background: paint(something)) {
    .ai-message-box::before {
        background-image: conic-gradient(#381d6a 80%,
                #e0d1ff 88%,
                #e0d1ff 92%,
                #381d6a 100%);
    }
} */

.ai-message-box:hover::before {
    animation-play-state: paused;
}



.ai-message-box-inner {
    padding: 30px;
}

.ai-message-box-inner textarea {
    width: 100%;
    background: transparent;
    border: none !important;
    outline: none !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 20px;
    color: #fff;
    resize: none;
}

.ai-message-box-inner textarea::placeholder {
    color: #d2d2d2;
}

.ai-message-box-footer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.ai-message-box-footer .suggestion-list {
    flex: 1;
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0 0 5px;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.ai-message-box-footer .suggestion-list-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

/* Gradient edges */
.ai-message-box-footer .suggestion-list-wrapper:before,
.ai-message-box-footer .suggestion-list-wrapper:after {
    content: "";
    height: 100%;
    width: 50px;
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.ai-message-box-footer .suggestion-list-wrapper:before {
    left: 0;
    background: linear-gradient(90deg, #27213f, transparent);
}

.ai-message-box-footer .suggestion-list-wrapper:after {
    right: 0;
    background: linear-gradient(90deg, transparent, #27213f);
}

.ai-message-box-footer .suggestion-list li {
    background: rgb(0 0 0 / 35%);
    padding: 4px 24px;
    border-radius: 50px;
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.ai-message-box-footer .suggestion-list li:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Scrollbar default */
.suggestion-list::-webkit-scrollbar {
    height: 5px;
}

.suggestion-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 50px;
}

.suggestion-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 50px;
}

/* Button */
.ai-message-box-footer button {
    width: 65px;
    min-width: 65px;
    height: 65px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    background: #f0f0f0 !important;
    display: flex;
    align-items: center;
}

.ai-message-box-footer button svg {
    width: 35px;
    height: 35px;
    color: #000000;
}


/* ------------------------------------------
   MOBILE: Make slider more obvious
------------------------------------------- */

@media (max-width: 768px) {

    .suggestion-list-wrapper {
        position: relative;
        padding-bottom: 20px;
        animation: hintSlide 1.2s ease-out 1.5s 1;
    }

    /* Scroll hint animation */
/*     @keyframes hintSlide {
        0% { transform: translateX(0); }
        20% { transform: translateX(-12px); }
        40% { transform: translateX(12px); }
        60% { transform: translateX(-6px); }
        80% { transform: translateX(6px); }
        100% { transform: translateX(0); }
    } */

    /* little scroll indicator bar */
    .suggestion-list-wrapper::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 6px;
        background: rgba(255,255,255,0.4);
        border-radius: 20px;
    }

    /* Stronger gradient edges */
    .ai-message-box-footer .suggestion-list-wrapper:before {
        width: 80px;
    }
    .ai-message-box-footer .suggestion-list-wrapper:after {
        width: 80px;
    }

    /* Larger clickable tags */
    .ai-message-box-footer .suggestion-list li {
        padding: 6px 22px;
        font-size: 15px;
    }
}


/* ------------------------------------------
   DESKTOP: Easier-to-grab scroll bar
------------------------------------------- */
.suggestion-list-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.suggestion-list {
    display: inline-flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    cursor: grab;
}

.suggestion-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    white-space: nowrap;
}

.suggestion-list.dragging {
    cursor: grabbing;
    user-select: none;
}

