/* ==========================================
   DILIP BUILDS - TOOLS DESIGN SYSTEM
========================================== */

:root{
    --primary:#2563EB;
    --primary-hover:#1D4ED8;
    --secondary:#7C3AED;

    --bg:#F8FAFC;
    --card:#FFFFFF;
    --text:#0F172A;
    --muted:#64748B;

    --border:#E2E8F0;

    --shadow-sm:
        0 1px 3px rgba(15,23,42,.05);

    --shadow-md:
        0 10px 30px rgba(15,23,42,.08);

    --shadow-lg:
        0 20px 50px rgba(15,23,42,.12);

    --radius:20px;
}

/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    background:var(--bg);
    color:var(--text);
    line-height:1.6;
    min-height:100vh;
}

/* ==========================================
   BACKGROUND
========================================== */

body::before{
    content:"";
    position:fixed;
    inset:0;

    background:
        radial-gradient(
            circle at top right,
            rgba(37,99,235,.08),
            transparent 35%
        ),

        radial-gradient(
            circle at bottom left,
            rgba(124,58,237,.08),
            transparent 35%
        );

    pointer-events:none;
    z-index:-1;
}

/* ==========================================
   HEADER
========================================== */

.header{

    position:sticky;
    top:0;

    z-index:100;

    background:
        rgba(255,255,255,.85);

    backdrop-filter:blur(16px);

    border-bottom:
        1px solid var(--border);

    padding:16px 30px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.header a{
    text-decoration:none;
}

.brand{
    font-size:20px;
    font-weight:800;
    color:var(--text);
}

.brand span{
    color:var(--primary);
}

/* ==========================================
   PAGE HERO
========================================== */

.tool-hero{

    padding:
        80px 20px 50px;

    text-align:center;
}

.tool-badge{

    display:inline-block;

    background:
        rgba(37,99,235,.08);

    color:
        var(--primary);

    padding:
        8px 16px;

    border-radius:
        999px;

    font-size:13px;

    font-weight:700;

    margin-bottom:20px;
}

.tool-hero h1{

    font-size:
        clamp(
            2rem,
            5vw,
            3.5rem
        );

    line-height:1.1;

    margin-bottom:16px;

    font-weight:800;
}

.tool-hero p{

    max-width:700px;

    margin:auto;

    color:var(--muted);

    font-size:18px;
}

/* ==========================================
   CONTAINER
========================================== */

.container{

    max-width:1100px;

    margin:auto;

    padding:0 20px 60px;
}

/* ==========================================
   TOOL CARD
========================================== */

.tool-card{

    background:
        rgba(255,255,255,.75);

    backdrop-filter:
        blur(20px);

    border:
        1px solid rgba(255,255,255,.8);

    border-radius:
        24px;

    padding:
        32px;

    box-shadow:
        var(--shadow-lg);

    margin-bottom:30px;
}

/* ==========================================
   INPUTS
========================================== */

textarea,
input{

    width:100%;

    padding:16px;

    border-radius:16px;

    border:
        1px solid var(--border);

    background:#fff;

    font-size:15px;

    transition:.2s;
}

textarea{

    min-height:220px;

    resize:vertical;

    font-family:
        "JetBrains Mono",
        monospace;
}

textarea:focus,
input:focus{

    outline:none;

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(37,99,235,.12);
}

/* ==========================================
   BUTTONS
========================================== */

.actions{

    display:flex;
    flex-wrap:wrap;
    gap:12px;

    margin-top:20px;
}

button{

    border:none;

    cursor:pointer;

    padding:
        12px 22px;

    border-radius:
        12px;

    font-weight:700;

    transition:.2s;
}

.btn-primary{

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color:white;
}

.btn-primary:hover{

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(37,99,235,.25);
}

.btn-secondary{

    background:#fff;

    color:var(--text);

    border:
        1px solid var(--border);
}

.btn-secondary:hover{

    background:#F8FAFC;
}

/* ==========================================
   RESULT CARDS
========================================== */

.result-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px,1fr)
        );

    gap:20px;

    margin-top:25px;
}

.result-card{

    background:white;

    border:
        1px solid var(--border);

    border-radius:20px;

    padding:20px;

    box-shadow:
        var(--shadow-sm);
}

.result-title{

    font-size:14px;

    font-weight:800;

    color:var(--primary);

    margin-bottom:12px;

    text-transform:uppercase;

    letter-spacing:.05em;
}

.result-card pre{

    white-space:pre-wrap;
    word-break:break-word;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size:13px;
}

/* ==========================================
   STATUS
========================================== */

.success{

    color:#16A34A;
    font-weight:600;
}

.error{

    color:#DC2626;
    font-weight:600;
}

.info{

    color:var(--primary);
    font-weight:600;
}

/* ==========================================
   FOOTER
========================================== */

.tool-footer{

    text-align:center;

    padding:40px 20px;

    color:var(--muted);

    font-size:14px;
}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:768px){

    .tool-card{
        padding:22px;
    }

    .tool-hero{
        padding-top:50px;
    }

    .actions{
        flex-direction:column;
    }

    button{
        width:100%;
    }

    .result-grid{
        grid-template-columns:1fr;
    }
}
textarea::placeholder,
input::placeholder{
    color: #94A3B8;
    opacity: 1;
}