/* ==========================================
   ToolNova - Contador de Palabras
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#0f172a;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.container{

    width:100%;
    max-width:1100px;

    background:#1e293b;

    border-radius:20px;

    padding:40px;

    box-shadow:0 20px 50px rgba(0,0,0,.35);

}

h1{

    text-align:center;

    color:white;

    font-size:36px;

    margin-bottom:10px;

}

p{

    text-align:center;

    color:#94a3b8;

    margin-bottom:35px;

}

textarea{

    width:100%;

    height:260px;

    resize:vertical;

    border:none;

    outline:none;

    border-radius:15px;

    background:#0f172a;

    color:white;

    padding:20px;

    font-size:17px;

    line-height:1.7;

}

textarea::placeholder{

    color:#64748b;

}

.buttons{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

    margin-top:25px;

    margin-bottom:35px;

}

button{

    border:none;

    cursor:pointer;

    padding:15px;

    border-radius:12px;

    color:white;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

button:hover{

    transform:translateY(-3px);

}

#copy{

    background:#3b82f6;

}

#copy:hover{

    background:#2563eb;

}

#download{

    background:#10b981;

}

#download:hover{

    background:#059669;

}

#clear{

    background:#ef4444;

}

#clear:hover{

    background:#dc2626;

}

.stats{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

}

.card{

    background:#0f172a;

    padding:25px;

    border-radius:15px;

    text-align:center;

    transition:.3s;

    border:1px solid #334155;

}

.card:hover{

    transform:translateY(-5px);

    border-color:#3b82f6;

}

.card h3{

    color:#22c55e;

    font-size:34px;

    margin-bottom:10px;

}

.card span{

    color:#cbd5e1;

    font-size:15px;

}

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#475569;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:transparent;

}

@media(max-width:768px){

.container{

    padding:25px;

}

h1{

    font-size:28px;

}

.buttons{

    grid-template-columns:1fr;

}

textarea{

    height:220px;

}

.stats{

    grid-template-columns:1fr;

}

.card h3{

    font-size:28px;

}

}