
/* HERO */
.prompt-hero{
    background:linear-gradient(135deg,#7c3aed,#4f46e5);
    padding:100px 20px;
    text-align:center;
    color:white;
    border-radius:0 0 40px 40px;
}

.prompt-hero h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:15px;
}

.prompt-hero p{
    max-width:800px;
    margin:auto;
    font-size:18px;
    line-height:1.8;
    opacity:.95;
}

/* MAIN */

.prompt-wrapper{
    max-width:1450px;
    margin:50px auto;
    padding:0 20px;

    display:grid;
    grid-template-columns:280px 1fr;
    gap:30px;
}

/* SIDEBAR */

.category-sidebar{
    background:white;
    border-radius:20px;
    padding:25px;
    box-shadow:0 10px 40px rgba(0,0,0,.06);

    position:sticky;
    top:20px;
    height:fit-content;
}

.sidebar-title{
    font-size:24px;
    margin-bottom:25px;
    font-weight:700;
}

.category-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.category-btn{
    border:none;
    background:#f3f4f6;
    padding:14px 18px;
    border-radius:14px;
    font-size:15px;
    font-weight:600;
    text-align:left;
    cursor:pointer;
    transition:.3s;
}

.category-btn:hover{
    background:#6366f1;
    color:white;
}

.category-btn.active{
    background:#6366f1;
    color:white;
}

/* CONTENT */

.prompt-content{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}


/* CARD */

.prompt-card{
    background:white;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,.06);
    transition:.3s;
}

.prompt-card:hover{
    transform:translateY(-6px);
}

.prompt-image{
    width:100%;
    object-fit:cover;
}

.prompt-body{
    padding:22px;
}

.prompt-tag{
    display:inline-block;
    background:#ede9fe;
    color:#6d28d9;
    padding:7px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
    margin-bottom:15px;
}

.prompt-body h3{
    font-size:24px;
    margin-bottom:12px;
    color:#111827;
}

.prompt-body p{
    color:#6b7280;
    font-size:15px;
    line-height:1.8;
    margin-bottom:18px;
}

.prompt-box{
    width:100%;
    height:140px;
    border:none;
    background:#f3f4f6;
    border-radius:14px;
    padding:16px;
    resize:none;
    font-size:14px;
    line-height:1.7;
    margin-bottom:18px;
}

.copy-btn{
    width:100%;
    border:none;
    background:#6366f1;
    color:white;
    padding:14px;
    border-radius:14px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.copy-btn:hover{
    background:#4f46e5;
}

/* =========================
   RESPONSIVE IMPROVEMENTS
========================= */



/* IMAGE */

.prompt-image{
    width:100%;
    object-fit:cover;
    display:block;
}

/* TABLET */

@media(max-width:991px){

    .prompt-wrapper{
        grid-template-columns:1fr;
        margin:30px auto;
    }

    .category-sidebar{
        position:relative;
        top:0;
        padding:18px;
    }

    .category-list{
        overflow-x:auto;
        gap:10px;
        padding-bottom:5px;

        scrollbar-width:none;
    }

    .category-list::-webkit-scrollbar{
        display:none;
    }

    .category-btn{
        white-space:nowrap;
        flex-shrink:0;
        padding:12px 16px;
    }

    .prompt-content{
        grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    }
}

/* MOBILE */

@media(max-width:768px){

    .prompt-hero{
        padding:70px 20px;
        border-radius:0 0 25px 25px;
    }

    .prompt-hero h1{
        font-size:32px;
        line-height:1.2;
    }

    .prompt-hero p{
        font-size:15px;
        line-height:1.7;
    }

    .prompt-content{
        grid-template-columns:1fr;
        gap:20px;
    }

    .prompt-card{
        border-radius:18px;
    }


    .prompt-body{
        padding:18px;
    }

    .prompt-body h3{
        font-size:20px;
    }

    .prompt-box{
        height:120px;
        font-size:13px;
    }

    .copy-btn{
        padding:12px;
    }

}

/* SMALL PHONES */

@media(max-width:480px){

    .prompt-wrapper{
        padding:0 12px;
    }

    .prompt-hero{
        padding:60px 15px;
    }

    .prompt-hero h1{
        font-size:28px;
    }

    .prompt-hero p{
        font-size:14px;
    }

    .sidebar-title{
        font-size:20px;
    }

    .category-sidebar{
        padding:15px;
        border-radius:15px;
    }

    .category-btn{
        font-size:14px;
        padding:10px 14px;
    }

    .prompt-body{
        padding:15px;
    }

    .prompt-body h3{
        font-size:18px;
    }

    .prompt-tag{
        font-size:12px;
    }

    .prompt-box{
        height:110px;
        padding:12px;
    }

    .copy-btn{
        font-size:14px;
        padding:12px;
    }

}
