/*
Theme Name: MD Tools Hub
Theme URI: https://example.com/
Author: MD Tools
Author URI: https://example.com/
Description: MD Tools Hub - Free online tools website.
Version: 5.1
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: md-tools-hub
*/

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#f5f7fb;
    color:#172033;
    line-height:1.6;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:min(1180px,92%);
    margin:auto;
}

.site-header{
    background:#ffffff;
    border-bottom:1px solid #e5e7eb;
    position:sticky;
    top:0;
    z-index:99;
}

.nav{
    min-height:70px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:25px;
    font-weight:800;
}

.logo span{
    color:#2563eb;
}

.nav-links{
    display:flex;
    gap:25px;
    font-weight:600;
}

.hero{
    padding:70px 0 45px;
    background:linear-gradient(135deg,#eff6ff,#ffffff);
}

.hero h1{
    font-size:clamp(34px,6vw,60px);
    line-height:1.05;
    margin:0 0 18px;
}

.hero p{
    max-width:720px;
    font-size:18px;
    color:#64748b;
}

.search{
    width:100%;
    max-width:750px;
    padding:16px 18px;
    border:1px solid #dbe1ea;
    border-radius:13px;
    font-size:16px;
    outline:none;
    background:#ffffff;
}

.categories{
    padding:30px 0 10px;
}

.category-buttons{
    display:flex;
    gap:9px;
    flex-wrap:wrap;
}

.cat-btn{
    border:1px solid #dbe1ea;
    background:#ffffff;
    padding:9px 15px;
    border-radius:30px;
    cursor:pointer;
    font-weight:600;
}

.cat-btn.active{
    background:#2563eb;
    color:#ffffff;
    border-color:#2563eb;
}

.tools-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    padding:25px 0 70px;
}

.card{
    background:#ffffff;
    border:1px solid #e4e8ef;
    border-radius:18px;
    padding:22px;
    transition:.2s;
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.icon{
    font-size:28px;
    margin-bottom:12px;
}

.card h3{
    margin:0 0 8px;
    font-size:19px;
}

.card p{
    margin:0;
    color:#64748b;
    font-size:14px;
}

.badge{
    display:inline-block;
    margin-top:14px;
    background:#eef2ff;
    color:#3730a3;
    padding:5px 9px;
    border-radius:7px;
    font-size:12px;
    font-weight:700;
}

.tool-page{
    padding:55px 0 80px;
}

.tool-box{
    background:#ffffff;
    border:1px solid #e4e8ef;
    border-radius:20px;
    padding:28px;
}

.tool-box textarea,
#toolInput{
    width:100%;
    min-height:220px;
    padding:15px;
    border:1px solid #dbe1ea;
    border-radius:12px;
    font:inherit;
    resize:vertical;
}

.btn{
    border:0;
    background:#2563eb;
    color:#ffffff;
    padding:12px 18px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
    margin:6px 4px 6px 0;
}

.btn.secondary{
    background:#eef2ff;
    color:#1d4ed8;
}

.result{
    margin-top:20px;
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    border-radius:12px;
    padding:18px;
    white-space:pre-wrap;
    word-break:break-word;
    min-height:70px;
}

.ad{
    height:90px;
    border:1px dashed #cbd5e1;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#94a3b8;
    margin:25px 0;
}

.site-footer{
    background:#111827;
    color:#dbe3ef;
    padding:45px 0;
}

@media(max-width:900px){

    .tools-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:600px){

    .nav-links{
        display:none;
    }

    .tools-grid{
        grid-template-columns:1fr;
    }

    .hero{
        padding-top:50px;
    }

}
