*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Plus Jakarta Sans',sans-serif;
}

body{

    background:#0d0b14;

    color:#e2e8f0;

    margin:0;

    overflow-x:hidden;
    
}

.container{
    width:100%;
    max-width:1100px;
}

header{

    position:relative;

    overflow:hidden;

    padding:70px 40px;

    border-radius:30px;

    margin-bottom:35px;

    background:
        linear-gradient(
            135deg,
            rgba(168,85,247,0.18),
            rgba(99,102,241,0.08),
            rgba(15,23,42,0.9)
        );

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.35);

    text-align:center;
}

header h1{

    font-size:4rem;

    font-weight:800;

    line-height:1.1;

    letter-spacing:-2px;

    margin-bottom:16px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #c084fc,
            #818cf8
        );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;
}

header p{

    max-width:700px;

    margin:auto;

    color:#cbd5e1;

    font-size:1.1rem;

    line-height:1.8;
}

header::before{

    content:'';

    position:absolute;

    width:350px;

    height:350px;

    background:#a855f7;

    border-radius:50%;

    filter:blur(120px);

    opacity:0.18;

    top:-120px;

    left:-120px;
}

header::after{

    content:'';

    position:absolute;

    width:300px;

    height:300px;

    background:#6366f1;

    border-radius:50%;

    filter:blur(120px);

    opacity:0.15;

    bottom:-120px;

    right:-100px;
}

.controls{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-bottom:40px;
}

.search-bar{
    width:100%;
    padding:16px 20px;
    background:#1a1625;
    border:2px solid #2e2543;
    border-radius:14px;
    color:white;
    font-size:1rem;
    outline:none;
}

.search-bar:focus{
    border-color:#a855f7;
}

.categories{

    display:flex;

    gap:12px;

    overflow-x:auto;

    flex-wrap:nowrap;

    padding-bottom:8px;

    scrollbar-width:none;
}

.categories::-webkit-scrollbar{
    display:none;
}

.category-btn{

    background:rgba(26,22,37,0.75);

    border:1px solid rgba(255,255,255,0.08);

    color:#cbd5e1;

    padding:10px 18px;

    border-radius:999px;

    cursor:pointer;

    white-space:nowrap;

    transition:0.3s ease;

    font-size:0.95rem;

    backdrop-filter:blur(10px);
}

.category-btn:hover{

    transform:translateY(-2px);

    border-color:#a855f7;

    color:white;
}

.category-btn.active{

    background:
        linear-gradient(
            135deg,
            #a855f7,
            #7c3aed
        );

    color:white;

    border-color:transparent;

    box-shadow:
        0 0 18px rgba(168,85,247,0.35);
}

.prompt-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(320px,1fr));

    gap:24px;

    align-items:start;
}

.card{
    position: relative;

    background: rgba(20, 17, 28, 0.72);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 24px;

    padding: 24px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.35);
}

/* Glow gradient tipis */
.card::before{

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(168,85,247,0.12),
            rgba(99,102,241,0.04),
            transparent
        );

    opacity: 0;

    transition: 0.35s ease;

    pointer-events: none;
}

.card:hover{

    transform:
        translateY(-8px)
        scale(1.015);

    border-color:
        rgba(168,85,247,0.55);

    box-shadow:
        0 18px 45px rgba(0,0,0,0.45),
        0 0 25px rgba(168,85,247,0.18);
}

.card:hover::before{

    opacity: 1;
}

.badge{
    background:rgba(168,85,247,0.15);
    color:#c084fc;
    padding:5px 10px;
    border-radius:6px;
    font-size:0.8rem;
    display:inline-block;
    margin-bottom:14px;
}

.card h3{
    margin-bottom:14px;
    color:white;
}

.prompt-text{
    background:#0d0b14;
    border-left:3px solid #6366f1;
    padding:14px;
    border-radius:10px;
    color:#94a3b8;
    line-height:1.7;
    margin-bottom:15px;
    min-height:140px;
}

.view-more-btn{
    background:none;
    border:none;
    color:#a855f7;
    cursor:pointer;
    font-weight:600;
    margin-bottom:15px;
}

.copy-btn{
    width:100%;
    border:none;
    padding:13px;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
    color:white;
    background:linear-gradient(135deg,#a855f7,#6366f1);
}

.toast{
    position:fixed;
    bottom:20px;
    right:-300px;
    background:#22c55e;
    color:white;
    padding:15px 25px;
    border-radius:8px;
    transition:0.5s;
}

.toast.show{
    right:20px;
}

.loading{
    text-align:center;
    grid-column:1/-1;
}

@media(max-width:600px){

    body{
        padding:20px 12px;
    }

    header h1{
        font-size:2rem;
    }
}

/* =========================
   LAYOUT
========================= */

.app-layout{

    display:flex;

    width:100%;

    min-height:100vh;

    max-width:1600px;

    margin:auto;

    position:relative;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{

    width:260px;

    min-height:100vh;

    position:sticky;

    top:0;

    padding:30px 20px;

    background:
    linear-gradient(
        180deg,
        #120f1c,
        #181028,
        #0f172a
    );

    border-right:
        1px solid rgba(255,255,255,0.06);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);
}

.sidebar::before{

    content:'';

    position:absolute;

    width:240px;

    height:240px;

    background:#a855f7;

    border-radius:50%;

    filter:blur(100px);

    opacity:0.18;

    top:-80px;

    left:-80px;

    pointer-events:none;
}

.logo{

    font-size:1.7rem;

    font-weight:900;

    margin-bottom:40px;

    color:white;

    letter-spacing:-1px;
}

.sidebar-menu{

    display:flex;

    flex-direction:column;

    gap:12px;
}

.sidebar-item{

    background:none;

    border:none;

    color:#94a3b8;

    text-align:left;

    padding:14px 16px;

    border-radius:14px;

    cursor:pointer;

    transition:0.3s ease;

    font-size:0.96rem;

    width:100%;
}

.sidebar-item:hover{

    background:
        rgba(168,85,247,0.12);

    color:white;

    transform:translateX(4px);
}

.sidebar-item.active{

    background:
        linear-gradient(
            135deg,
            #a855f7,
            #7c3aed
        );

    color:white;

    box-shadow:
        0 0 20px rgba(168,85,247,0.25);
}

/* =========================
   MAIN CONTENT
========================= */

.main-content{

    flex:1;

    padding:40px;
}

/* =========================
   SEARCH BAR MODERN
========================= */

.search-wrapper{

    position:relative;

    margin-bottom:25px;
}

.search-icon{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:#94a3b8;

    font-size:1rem;

    pointer-events:none;
}

.search-bar{

    width:100%;

    padding:
        18px 20px 18px 52px;

    background:
        rgba(26,22,37,0.75);

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius:18px;

    color:white;

    font-size:1rem;

    outline:none;

    transition:0.3s ease;

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);
}

.search-bar:focus{

    border-color:#a855f7;

    box-shadow:
        0 0 25px rgba(168,85,247,0.18);
}

/* =========================
   HEADER IMPROVEMENT
========================= */

header{

    margin-bottom:30px;
}

header h1{

    font-size:3rem;

    line-height:1.1;
}

header p{

    margin-top:10px;

    font-size:1.05rem;

    color:#94a3b8;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:900px){

    .main-content{

        padding:20px;
    }

    header h1{

        font-size:2.2rem;
    }
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){

    .sidebar{

        width:220px;
    }

    .main-content{

        padding:25px;
    }

    header{

        padding:50px 25px;
    }

    header h1{

        font-size:3rem;
    }

    .prompt-grid{

        grid-template-columns:
            repeat(auto-fill,minmax(280px,1fr));
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    body{

        padding:0;
    }

    .app-layout{

        flex-direction:column;
    }

    /* SIDEBAR */

.sidebar{

    position:fixed;

    top:0;

    left:-280px;

    width:260px;

    height:100vh;

    z-index:999;

    transition:0.35s ease;

    padding:24px 18px;

    background:
        rgba(15,15,20,0.96);

    backdrop-filter:blur(20px);

    border-right:
        1px solid rgba(255,255,255,0.08);

    box-shadow:
        10px 0 40px rgba(0,0,0,0.45);
}

.sidebar.active{

    left:0;
}
    .logo{

        margin-bottom:20px;

        text-align:center;
    }

    .sidebar-menu{

    flex-direction:column;

    gap:12px;

    overflow:visible;
}

    .sidebar-menu::-webkit-scrollbar{

        display:none;
    }

    .sidebar-item{

        white-space:nowrap;

        min-width:max-content;
    }

    /* MAIN */

    .main-content{

        padding:18px;
    }

    /* HEADER */

    header{

        padding:40px 20px;

        border-radius:22px;
    }

    header h1{

        font-size:2.2rem;

        line-height:1.2;
    }

    header p{

        font-size:0.95rem;
    }

    /* SEARCH */

    .search-bar{

        padding:
            16px 18px 16px 48px;

        font-size:0.95rem;
    }

    /* CATEGORY */

    .categories{

        gap:10px;
    }

    .category-btn{

        font-size:0.85rem;

        padding:9px 14px;
    }

    /* GRID */

    .prompt-grid{

        grid-template-columns:1fr;

        gap:18px;
    }

    /* CARD */

    .card{

        padding:20px;

        border-radius:20px;
    }

    .card h3{

        font-size:1.1rem;
    }

    .prompt-text{

        min-height:auto;

        font-size:0.93rem;
    }

    /* BUTTON */

    .copy-btn{

        padding:12px;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media(max-width:480px){

    header h1{

        font-size:1.8rem;
    }

    header{

        padding:35px 18px;
    }

    .search-bar{

        border-radius:14px;
    }

    .card{

        padding:18px;
    }

    .sidebar{

        padding:14px;
    }
}

/* =========================
   MOBILE MENU BUTTON
========================= */

.mobile-menu-btn{

    display:none;

    position:fixed !important;

    top:18px;

    left:18px;

    z-index:2000;

    width:48px;

    height:48px;

    border:none;

    border-radius:14px;

    background:
        rgba(20,17,28,0.92);

    color:white;

    font-size:1.3rem;

    cursor:pointer;

    backdrop-filter:blur(12px);

    -webkit-backdrop-filter:blur(12px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.35);
}

/* =========================
   OVERLAY
========================= */

.sidebar-overlay{

    position:fixed;

    inset:0;

    background:
        rgba(0,0,0,0.5);

    backdrop-filter:blur(3px);

    opacity:0;

    visibility:hidden;

    transition:0.3s ease;

    z-index:998;
}

.sidebar-overlay.active{

    opacity:1;

    visibility:visible;
}

/* =========================
   MOBILE SIDEBAR
========================= */

@media(max-width:768px){

    .mobile-menu-btn{

        display:flex;

        align-items:center;

        justify-content:center;
    }

 .sidebar{

    position:fixed;

    left:-280px;

    top:0;

    width:260px;

    height:100vh;

    z-index:999;

    transition:0.35s ease;

    padding:24px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(15,15,20,0.96),
            rgba(15,15,20,0.92)
        ),
        url('sidebar-bg.jpg');

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    border-right:
        1px solid rgba(255,255,255,0.08);

    box-shadow:
        10px 0 40px rgba(0,0,0,0.45);

    overflow-y:auto;
}

.sidebar::before{

    content:'';

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            180deg,
            rgba(168,85,247,0.10),
            transparent
        );

    pointer-events:none;
}

    .sidebar.active{

        left:0;
    }

    .main-content{

        width:100%;

        padding-top:80px;
    }
}

html{

    overflow-x:hidden;
}

/* =========================
   MOBILE TOPBAR
========================= */

.mobile-topbar{

    display:none;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .mobile-topbar{

        position:fixed;

        top:0;

        left:0;

        width:100%;

        height:70px;

        display:flex;

        align-items:center;

        gap:16px;

        padding:0 18px;

        z-index:2000;

        background:
            rgba(15,15,20,0.82);

        backdrop-filter:blur(20px);

        -webkit-backdrop-filter:blur(20px);

        border-bottom:
            1px solid rgba(255,255,255,0.08);
    }

    .mobile-logo{

        color:rgb(224, 43, 215);

        font-size:1.1rem;

        font-weight:300;
        padding-left:100px;
    }

    .mobile-menu-btn{

        width:44px;

        height:44px;

        border:none;

        border-radius:12px;

        background:
            rgba(168,85,247,0.14);

        color:white;

        font-size:1.2rem;

        cursor:pointer;
    }

    .main-content{

        padding-top:95px;
    }
}

/* =========================
   ARTICLE PAGE
========================= */

.article-bg{

    position:fixed;

    inset:0;

    z-index:-1;

    background:
        radial-gradient(
            circle at top left,
            rgba(168,85,247,0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(99,102,241,0.15),
            transparent 30%
        ),
        #0d0b14;
}

/* =========================
   WRAPPER
========================= */

.article-wrapper{

    width:100%;

    max-width:950px;

    margin:auto;

    padding:40px 20px 80px;
}

/* =========================
   BACK BUTTON
========================= */

.back-button{

    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-bottom:25px;

    padding:12px 18px;

    border-radius:14px;

    text-decoration:none;

    color:white;

    background:
        rgba(20,17,28,0.75);

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter:blur(12px);

    transition:0.3s ease;
}

.back-button:hover{

    transform:translateY(-2px);

    border-color:#a855f7;

    box-shadow:
        0 0 20px rgba(168,85,247,0.2);
}

/* =========================
   ARTICLE CARD
========================= */

.article-card{

    position:relative;

    background:
        rgba(20,17,28,0.78);

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius:32px;

    padding:50px;

    overflow:hidden;

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.4);
}

/* Glow */
.article-card::before{

    content:'';

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(168,85,247,0.08),
            transparent,
            rgba(99,102,241,0.06)
        );

    pointer-events:none;
}

/* =========================
   BADGE
========================= */

.article-badge{

    display:inline-block;

    padding:10px 18px;

    border-radius:999px;

    background:
        rgba(168,85,247,0.15);

    border:
        1px solid rgba(168,85,247,0.2);

    color:#d8b4fe;

    font-size:0.85rem;

    font-weight:700;

    margin-bottom:25px;
}

/* =========================
   TITLE
========================= */

.article-title{

    font-size:3.4rem;

    line-height:1.15;

    font-weight:800;

    letter-spacing:-2px;

    margin-bottom:18px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #d8b4fe,
            #818cf8
        );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;
}

/* =========================
   META
========================= */

.article-meta{

    color:#94a3b8;

    margin-bottom:35px;

    font-size:0.95rem;
}

/* =========================
   IMAGE
========================= */

.article-image{

    width:100%;

    border-radius:24px;

    margin-bottom:35px;

    border:
        1px solid rgba(255,255,255,0.08);
}

/* =========================
   PARAGRAPH
========================= */

.article-card p{

    color:#cbd5e1;

    line-height:2;

    margin-bottom:22px;

    font-size:1.05rem;
}

/* =========================
   HEADING
========================= */

.article-card h2{

    margin-top:45px;

    margin-bottom:18px;

    color:white;

    font-size:2rem;
}

/* =========================
   QUOTE
========================= */

.article-quote{

    padding:24px;

    border-left:4px solid #a855f7;

    background:
        rgba(168,85,247,0.08);

    border-radius:18px;

    color:#e9d5ff;

    margin:30px 0;

    line-height:1.8;

    font-size:1.05rem;
}

/* =========================
   CODE BLOCK
========================= */

.article-code{

    background:#0b0911;

    border:
        1px solid rgba(255,255,255,0.06);

    padding:24px;

    border-radius:22px;

    overflow:auto;

    color:#c084fc;

    line-height:1.8;

    margin:25px 0;

    font-size:0.95rem;
}

/* =========================
   LIST
========================= */

.article-list{

    margin-top:20px;

    margin-bottom:20px;

    padding-left:22px;
}

.article-list li{

    margin-bottom:14px;

    color:#cbd5e1;

    line-height:1.8;
}

/* =========================
   CTA
========================= */

.article-cta{

    margin-top:60px;

    padding:35px;

    border-radius:28px;

    text-align:center;

    background:
        linear-gradient(
            135deg,
            rgba(168,85,247,0.15),
            rgba(99,102,241,0.12)
        );

    border:
        1px solid rgba(255,255,255,0.08);
}

.article-cta h3{

    font-size:2rem;

    margin-bottom:15px;

    color:white;
}

.article-cta p{

    color:#cbd5e1;

    margin-bottom:25px;
}

/* =========================
   CTA BUTTON
========================= */

.cta-button{

    display:inline-block;

    padding:16px 28px;

    border-radius:16px;

    text-decoration:none;

    font-weight:700;

    color:white;

    background:
        linear-gradient(
            135deg,
            #a855f7,
            #6366f1
        );

    transition:0.3s ease;
}

.cta-button:hover{

    transform:
        translateY(-4px)
        scale(1.02);

    box-shadow:
        0 10px 30px rgba(168,85,247,0.3);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .article-wrapper{

        padding:20px 14px 60px;
    }

    .article-card{

        padding:28px 22px;

        border-radius:24px;
    }

    .article-title{

        font-size:2.2rem;

        line-height:1.2;
    }

    .article-card h2{

        font-size:1.5rem;
    }

    .article-card p{

        font-size:0.97rem;

        line-height:1.9;
    }

    .article-code{

        font-size:0.85rem;

        padding:18px;
    }

    .article-cta{

        padding:28px 20px;
    }

    .article-cta h3{

        font-size:1.5rem;
    }
}

@media(max-width:480px){

    .article-title{

        font-size:1.8rem;
    }

    .article-card{

        padding:24px 18px;
    }

    .back-button{

        width:100%;

        justify-content:center;
    }
}