/* =========================================
PROMPT LIBRARY
========================================= */

.prompt-library-section{

    padding:120px 0;

    position:relative;
}

/* HEADER */

.prompt-library-header{

    text-align:center;

    max-width:850px;

    margin:0 auto 60px;
}

.prompt-badge{

    display:inline-block;

    padding:10px 18px;

    border-radius:100px;

    background:#ffe8e3;

    color:#ff6d6d;

    font-size:13px;

    font-weight:700;

    letter-spacing:2px;

    margin-bottom:22px;
}

.prompt-library-header h2{

    font-size:64px;

    line-height:1.1;

    font-weight:800;

    color:#171717;

    margin-bottom:20px;
}

.prompt-library-header p{

    font-size:20px;

    line-height:1.8;

    color:#666;
}

/* SEARCH */

.prompt-search-wrapper{

    max-width:760px;

    margin:0 auto 34px;
}

.prompt-search-box{

    position:relative;
}

.prompt-search-box input{

    width:100%;

    height:78px;

    border-radius:24px;

    border:none;

    background:#fff;

    padding:0 30px 0 70px;

    font-size:18px;

    box-shadow:
        0 15px 50px rgba(0,0,0,0.05);
}

.prompt-search-box i{

    position:absolute;

    left:28px;
    top:50%;

    transform:translateY(-50%);

    color:#999;

    font-size:20px;
}

/* FILTERS */

.prompt-filters{

    display:flex;

    justify-content:center;

    gap:14px;

    flex-wrap:wrap;

    margin-bottom:60px;
}

.prompt-filter{

    padding:14px 24px;

    border-radius:100px;

    border:none;

    background:#fff;

    font-size:16px;

    font-weight:600;

    transition:.3s;

    cursor:pointer;
}

.prompt-filter.active,
.prompt-filter:hover{

    background:#111;

    color:#fff;
}

/* GRID */

.prompt-grid{

    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:30px;
}

/* CARD */

.prompt-card{

    background:#fff;

    border-radius:30px;

    overflow:hidden;

    transition:.35s;

    cursor:pointer;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.05);
}

.prompt-card:hover{

    transform:translateY(-10px);
}

/* IMAGE */

.prompt-image{

    position:relative;

    height:340px;

    overflow:hidden;
}

.prompt-image img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.5s;
}

.prompt-card:hover img{

    transform:scale(1.08);
}

/* OVERLAY */

.prompt-overlay{

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.7),
            transparent
        );

    opacity:0;

    transition:.3s;

    display:flex;

    align-items:flex-end;

    justify-content:center;

    padding:24px;
}

.prompt-card:hover .prompt-overlay{

    opacity:1;
}

/* BUTTON */

.view-prompt-btn{

    height:52px;

    padding:0 28px;

    border:none;

    border-radius:16px;

    background:#fff;

    font-weight:700;

    cursor:pointer;
}

/* CONTENT */

.prompt-content{

    padding:28px;
}

.prompt-content h3{

    font-size:28px;

    line-height:1.3;

    margin-bottom:12px;

    font-weight:800;
}

.prompt-content span{

    display:inline-block;

    padding:8px 16px;

    border-radius:100px;

    background:#f3f3f3;

    font-size:14px;

    font-weight:600;
}

/* =========================================
MODAL
========================================= */

.prompt-modal{

    position:fixed;

    inset:0;

    background:
        rgba(0,0,0,0.6);

    backdrop-filter:blur(10px);

    z-index:9999;

    display:none;

    align-items:center;

    justify-content:center;

    padding:20px;
}

.prompt-modal.active{

    display:flex;
}

.prompt-modal-box{

    width:100%;

    max-width:1200px;

    background:#fff;

    border-radius:34px;

    padding:40px;

    position:relative;

    animation:popup .3s ease;
}

@keyframes popup{

    from{

        opacity:0;
        transform:translateY(20px);
    }

    to{

        opacity:1;
        transform:none;
    }
}

.prompt-close{

    position:absolute;

    top:24px;
    right:24px;

    width:52px;
    height:52px;

    border:none;

    border-radius:16px;

    background:#f4f4f4;

    cursor:pointer;

    font-size:18px;
}

/* GRID */

.prompt-modal-grid{

    display:grid;

    grid-template-columns:
        480px 1fr;

    gap:50px;
}

/* IMAGE */

.prompt-modal-image img{

    width:100%;

    border-radius:24px;

    height:650px;

    object-fit:cover;
}

/* TAG */

.modal-tag{

    display:inline-block;

    padding:10px 18px;

    border-radius:100px;

    background:#ffe8e3;

    color:#ff6d6d;

    font-size:13px;

    font-weight:700;

    letter-spacing:2px;

    margin-bottom:24px;
}

/* TITLE */

.prompt-modal-content h3{

    font-size:48px;

    line-height:1.15;

    margin-bottom:18px;

    font-weight:800;
}

.modal-description{

    font-size:18px;

    line-height:1.8;

    color:#666;

    margin-bottom:34px;
}

/* PROMPT BOX */

.prompt-box{

    position:relative;

    margin-bottom:30px;
}

.prompt-box textarea{

    width:100%;

    height:220px;

    border:none;

    background:#f7f7f7;

    border-radius:24px;

    padding:28px;

    resize:none;

    font-size:17px;

    line-height:1.8;
}

/* COPY */

#copyPromptBtn{

    position:absolute;

    top:18px;
    right:18px;

    width:52px;
    height:52px;

    border:none;

    border-radius:16px;

    background:#111;

    color:#fff;

    cursor:pointer;
}

/* ACTIONS */

.prompt-actions{

    display:flex;

    gap:18px;
}

.copy-btn,
.use-btn{

    height:60px;

    padding:0 34px;

    border:none;

    border-radius:18px;

    font-size:17px;

    font-weight:700;

    cursor:pointer;
}

.copy-btn{

    background:#111;

    color:#fff;
}

.use-btn{

    background:#62d3b0;

    color:#fff;
}

/* MOBILE */

@media(max-width:991px){

    .prompt-grid{

        grid-template-columns:1fr 1fr;
    }

    .prompt-modal-grid{

        grid-template-columns:1fr;
    }

    .prompt-modal-image img{

        height:420px;
    }
}

@media(max-width:767px){

    .prompt-library-header h2{

        font-size:40px;
    }

    .prompt-grid{

        grid-template-columns:1fr;
    }

    .prompt-modal-box{

        padding:26px;
    }

    .prompt-modal-content h3{

        font-size:34px;
    }

    .prompt-actions{

        flex-direction:column;
    }
}

.prompt-toast{

    position:fixed;

    bottom:30px;
    right:30px;

    background:#111;

    color:#fff;

    padding:16px 24px;

    border-radius:18px;

    font-size:15px;

    font-weight:600;

    z-index:99999;

    opacity:0;

    transform:
        translateY(20px);

    transition:all .3s ease;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.2);
}

.prompt-toast.show{

    opacity:1;

    transform:
        translateY(0);
}

/* MOBILE */

@media(max-width:640px){

    .prompt-toast{

        left:20px;
        right:20px;

        bottom:20px;

        text-align:center;
    }
}