/* ===================================================
   NAVBAR
=================================================== */

.navbar{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 8%;

    position:sticky;

    top:0;

    z-index:1000;

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(15px);

    -webkit-backdrop-filter:blur(15px);

    border-bottom:1px solid rgba(255,255,255,.25);

}

body.dark .navbar{

    background:rgba(15,23,42,.85);

}

.logo{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:28px;

    font-weight:700;

    color:var(--primary);

}

.logo i{

    font-size:26px;

}

.nav-links{

    display:flex;

    align-items:center;

    gap:35px;

}

.nav-links a{

    font-size:15px;

    font-weight:500;

    color:var(--text);

    transition:.3s;

}

.nav-links a:hover{

    color:var(--primary);

}

.nav-links a.active{

    color:var(--primary);

}

.nav-actions{

    display:flex;

    align-items:center;

    gap:15px;

}

#themeToggle{

    width:45px;

    height:45px;

    border-radius:50%;

    background:var(--card);

    box-shadow:var(--shadow);

    color:var(--primary);

    font-size:18px;

    transition:.3s;

}

#themeToggle:hover{

    transform:rotate(15deg);

}

.login-btn{

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    color:#fff;

    padding:13px 28px;

    border-radius:12px;

    font-weight:600;

    transition:.3s;

}

.login-btn:hover{

    transform:translateY(-3px);

}

/* ===================================================
   HERO
=================================================== */

.hero{

    min-height:88vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:80px 8%;

    background:
    radial-gradient(circle at top left,#8b5cf640 0%,transparent 40%),
    radial-gradient(circle at bottom right,#6366f140 0%,transparent 35%),
    linear-gradient(135deg,#eef2ff,#f8fafc);

}

body.dark .hero{

    background:
    radial-gradient(circle at top left,#6366f130 0%,transparent 40%),
    radial-gradient(circle at bottom right,#8b5cf630 0%,transparent 35%),
    #0f172a;

}

.hero-content{

    max-width:900px;

}

.hero-badge{

    display:inline-block;

    padding:12px 22px;

    border-radius:30px;

    background:white;

    color:var(--primary);

    font-weight:600;

    box-shadow:var(--shadow);

    margin-bottom:30px;

}

body.dark .hero-badge{

    background:var(--card);

}

.hero h1{

    font-size:70px;

    line-height:1.15;

    margin-bottom:25px;

}

.hero h1 span{

    color:var(--primary);

}

.hero p{

    max-width:700px;

    margin:auto;

    font-size:20px;

    line-height:1.9;

}

.hero-search{

    margin-top:45px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:white;

    border-radius:18px;

    overflow:hidden;

    max-width:760px;

    margin-inline:auto;

    box-shadow:var(--shadow);

}

body.dark .hero-search{

    background:var(--card);

}

.hero-search input{

    flex:1;

    padding:20px;

    border:none;

    background:transparent;

    color:var(--text);

    font-size:17px;

}

.hero-search button{

    width:75px;

    height:65px;

    background:var(--primary);

    color:white;

    font-size:20px;

}

/* ===================================================
   STATS
=================================================== */

.stats{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

    margin-top:-70px;

    padding-inline:8%;

}

.stat-card{

    background:var(--card);

    border-radius:20px;

    padding:35px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.3s;

}

.stat-card:hover{

    transform:translateY(-8px);

}

.stat-card h2{

    color:var(--primary);

    margin-bottom:10px;

}

.stat-card p{

    font-size:15px;

}
/* ===================================================
   FILTER SECTION
=================================================== */

.filter-section{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;

    padding:40px 8%;

}

.filter-btn{

    padding:12px 24px;

    border-radius:30px;

    background:var(--card);

    color:var(--text);

    box-shadow:var(--shadow);

    font-weight:500;

    transition:.3s;

}

.filter-btn:hover{

    background:var(--primary);

    color:white;

    transform:translateY(-3px);

}

.filter-btn.active{

    background:var(--primary);

    color:white;

}

/* ===================================================
   FEATURED SECTION
=================================================== */

.featured{

    padding:80px 8%;

}

.prompt-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));

    gap:30px;

    margin-top:45px;

}

/* ===================================================
   PROMPT CARD
=================================================== */

.prompt-card{

    background:var(--card);

    border-radius:20px;

    box-shadow:var(--shadow);

    padding:28px;

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.prompt-card:hover{

    transform:translateY(-10px);

}

.prompt-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:5px;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

}

.card-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.category{

    background:rgba(99,102,241,.12);

    color:var(--primary);

    padding:7px 15px;

    border-radius:25px;

    font-size:13px;

    font-weight:600;

}

.difficulty{

    color:var(--text-light);

    font-size:14px;

    font-weight:500;

}

.prompt-card h3{

    margin-bottom:15px;

    color:var(--text);

}

.prompt-card p{

    margin-bottom:22px;

}

/* ===================================================
   TAGS
=================================================== */

.tags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:25px;

}

.tags span{

    background:#EEF2FF;

    color:var(--primary);

    padding:7px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:500;

}

body.dark .tags span{

    background:#312E81;

    color:white;

}

/* ===================================================
   CARD FOOTER
=================================================== */

.card-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:12px;

    margin-top:10px;

}

.likes{

    display:flex;

    align-items:center;

    gap:8px;

    color:var(--text-light);

    font-weight:500;

}

.likes i{

    color:#EF4444;

}

/* ===================================================
   BUTTON GROUP
=================================================== */

.card-actions{

    display:flex;

    gap:10px;

}

.copy-btn{

    padding:10px 18px;

    border-radius:10px;

    background:var(--primary);

    color:white;

    font-weight:600;

    transition:.3s;

}

.copy-btn:hover{

    background:var(--primary-dark);

}

.bookmark-btn{

    width:42px;

    height:42px;

    border-radius:10px;

    background:#F3F4F6;

    color:var(--text);

    transition:.3s;

}

.bookmark-btn:hover{

    background:var(--warning);

    color:white;

}

body.dark .bookmark-btn{

    background:#334155;

    color:white;

}

/* ===================================================
   EMPTY STATE
=================================================== */

.empty-state{

    width:100%;

    text-align:center;

    padding:80px 20px;

    color:var(--text-light);

}

.empty-state i{

    font-size:70px;

    color:var(--primary);

    margin-bottom:20px;

}

.empty-state h3{

    margin-bottom:12px;

}
/* ===================================================
   PROMPT MODAL
=================================================== */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:2000;

    padding:25px;

}

.modal.active{

    opacity:1;

    visibility:visible;

}

.modal-content{

    background:var(--card);

    width:100%;

    max-width:850px;

    border-radius:20px;

    padding:35px;

    position:relative;

    box-shadow:var(--shadow);

    animation:modalPop .3s ease;

}

.modal-close{

    position:absolute;

    top:18px;

    right:20px;

    width:42px;

    height:42px;

    border-radius:50%;

    background:#F3F4F6;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.3s;

}

.modal-close:hover{

    background:var(--danger);

    color:#fff;

}

.modal-header{

    margin-bottom:25px;

}

.modal-header h2{

    font-size:32px;

    margin-bottom:12px;

}

.modal-meta{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

.modal-meta span{

    padding:8px 14px;

    border-radius:20px;

    background:#EEF2FF;

    color:var(--primary);

    font-size:14px;

}

.modal-body{

    margin-top:25px;

}

.modal-body h3{

    margin-bottom:12px;

}

.prompt-box{

    background:#F8FAFC;

    border-left:5px solid var(--primary);

    border-radius:12px;

    padding:20px;

    margin:20px 0;

    white-space:pre-wrap;

    line-height:1.8;

}

body.dark .prompt-box{

    background:#1E293B;

}

.example-output{

    margin-top:25px;

    padding:20px;

    border-radius:12px;

    background:#ECFDF5;

}

body.dark .example-output{

    background:#0F3D2E;

}

/* ===================================================
   TOAST NOTIFICATION
=================================================== */

#toast{

    position:fixed;

    right:30px;

    bottom:30px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:#fff;

    padding:16px 24px;

    border-radius:12px;

    font-weight:600;

    box-shadow:var(--shadow);

    transform:translateY(100px);

    opacity:0;

    transition:.35s;

    z-index:3000;

}

#toast.show{

    transform:translateY(0);

    opacity:1;

}

/* ===================================================
   LOADING SKELETON
=================================================== */

.skeleton{

    background:var(--card);

    border-radius:20px;

    padding:25px;

    box-shadow:var(--shadow);

}

.skeleton-line{

    width:100%;

    height:14px;

    border-radius:8px;

    background:#E5E7EB;

    margin:12px 0;

    animation:skeletonLoading 1.3s infinite;

}

.skeleton-line.short{

    width:40%;

}

.skeleton-line.medium{

    width:70%;

}

body.dark .skeleton-line{

    background:#334155;

}

/* ===================================================
   GLASS CARD
=================================================== */

.glass{

    background:rgba(255,255,255,.35);

    backdrop-filter:blur(15px);

    -webkit-backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.25);

}

body.dark .glass{

    background:rgba(30,41,59,.35);

}

/* ===================================================
   FOOTER
=================================================== */

footer{

    margin-top:100px;

    background:#111827;

    color:white;

    padding:70px 8%;

}

.footer-container{

    max-width:1200px;

    margin:auto;

    text-align:center;

}

.footer-container h2{

    color:white;

    margin-bottom:18px;

}

.footer-container p{

    color:#D1D5DB;

}

.footer-icons{

    display:flex;

    justify-content:center;

    gap:20px;

    margin:30px 0;

}

.footer-icons i{

    width:50px;

    height:50px;

    border-radius:50%;

    background:#1F2937;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.3s;

    font-size:20px;

}

.footer-icons i:hover{

    background:var(--primary);

    transform:translateY(-6px);

}

/* ===================================================
   SECTION SPACING HELPERS
=================================================== */

.mt-5{

    margin-top:50px;

}

.mb-5{

    margin-bottom:50px;

}

.py-5{

    padding:80px 0;

}
/* ===================================================
   SCROLL TO TOP BUTTON
=================================================== */

.scroll-top{

    position:fixed;

    right:25px;

    bottom:100px;

    width:55px;

    height:55px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:20px;

    cursor:pointer;

    box-shadow:var(--shadow);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:999;

}

.scroll-top.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.scroll-top:hover{

    transform:translateY(-6px);

}

/* ===================================================
   BADGES
=================================================== */

.badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 15px;

    border-radius:25px;

    background:#EEF2FF;

    color:var(--primary);

    font-size:13px;

    font-weight:600;

}

.badge.success{

    background:#DCFCE7;

    color:#15803D;

}

.badge.warning{

    background:#FEF3C7;

    color:#B45309;

}

.badge.danger{

    background:#FEE2E2;

    color:#DC2626;

}

/* ===================================================
   ICON BUTTONS
=================================================== */

.icon-btn{

    width:42px;

    height:42px;

    border-radius:12px;

    background:var(--card);

    display:flex;

    justify-content:center;

    align-items:center;

    color:var(--text);

    box-shadow:var(--shadow);

    transition:.3s;

}

.icon-btn:hover{

    background:var(--primary);

    color:white;

}

/* ===================================================
   SIMPLE DROPDOWN
=================================================== */

.dropdown{

    position:relative;

}

.dropdown-menu{

    position:absolute;

    top:55px;

    right:0;

    min-width:220px;

    background:var(--card);

    border-radius:15px;

    box-shadow:var(--shadow);

    padding:12px;

    display:none;

    z-index:100;

}

.dropdown:hover .dropdown-menu{

    display:block;

}

.dropdown-menu a{

    display:block;

    padding:12px 15px;

    border-radius:10px;

    transition:.3s;

}

.dropdown-menu a:hover{

    background:#EEF2FF;

    color:var(--primary);

}

/* ===================================================
   FORM ELEMENTS
=================================================== */

.form-group{

    margin-bottom:22px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:var(--text);

}

.form-group input,
.form-group textarea,
.form-group select{

    width:100%;

    padding:15px;

    border:1px solid var(--border);

    border-radius:12px;

    background:var(--card);

    color:var(--text);

    transition:.3s;

}

.form-group textarea{

    resize:vertical;

    min-height:140px;

}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(99,102,241,.15);

}

/* ===================================================
   ALERTS
=================================================== */

.alert{

    padding:16px 20px;

    border-radius:12px;

    margin-bottom:20px;

    font-weight:500;

}

.alert.success{

    background:#DCFCE7;

    color:#166534;

}

.alert.error{

    background:#FEE2E2;

    color:#991B1B;

}

.alert.info{

    background:#DBEAFE;

    color:#1D4ED8;

}

/* ===================================================
   LOADER
=================================================== */

.loader{

    width:50px;

    height:50px;

    border:5px solid #E5E7EB;

    border-top:5px solid var(--primary);

    border-radius:50%;

    animation:spin 1s linear infinite;

    margin:40px auto;

}

/* ===================================================
   HOVER UTILITIES
=================================================== */

.hover-lift{

    transition:.3s;

}

.hover-lift:hover{

    transform:translateY(-8px);

}

.hover-scale{

    transition:.3s;

}

.hover-scale:hover{

    transform:scale(1.04);

}

/* ===================================================
   SHADOW UTILITIES
=================================================== */

.shadow-sm{

    box-shadow:0 5px 12px rgba(0,0,0,.08);

}

.shadow-md{

    box-shadow:0 12px 25px rgba(0,0,0,.12);

}

.shadow-lg{

    box-shadow:0 18px 45px rgba(0,0,0,.18);

}

/* ===================================================
   GRADIENT BACKGROUNDS
=================================================== */

.gradient-primary{

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:#fff;

}

.gradient-light{

    background:linear-gradient(
        135deg,
        #EEF2FF,
        #FFFFFF
    );

}

/* ===================================================
   MOBILE NAV PLACEHOLDER
   (Used with responsive.css)
=================================================== */

.menu-toggle{

    display:none;

    font-size:24px;

    cursor:pointer;

    color:var(--text);

}

/* ===================================================
   END OF COMPONENTS
=================================================== */