/* ==========================================================
   TrueVitaHub Directory
========================================================== */

.tvh-directory{
    padding:80px 0;
    background:#f8fafc;
    min-height:100vh;
}

/* ==========================================================
   Header
========================================================== */

.tvh-directory-header{
    text-align:center;
    margin-bottom:50px;
}

.tvh-directory-header h1{
    margin:0 0 15px;
    font-size:48px;
    font-weight:800;
    color:#0f172a;
}

.tvh-directory-header p{
    max-width:720px;
    margin:0 auto;
    font-size:18px;
    color:#64748b;
    line-height:1.7;
}

/* ==========================================================
   Layout
========================================================== */

.tvh-directory-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:40px;
    align-items:start;
}

/* ==========================================================
   Sidebar
========================================================== */

.tvh-directory-sidebar{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:25px;
    position:sticky;
    top:110px;
}

/* ==========================================================
   Grid
========================================================== */

.tvh-tool-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:28px;
}

/* ==========================================================
   Card
========================================================== */

.tvh-card{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:20px;
    padding:24px;
    transition:.3s;
    display:flex;
    flex-direction:column;
    height:100%;
}

.tvh-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(15,23,42,.08);
    border-color:#2563eb;
}

/* ==========================================================
   Top
========================================================== */

.tvh-card-top{
    display:flex;
    gap:16px;
    align-items:center;
    margin-bottom:20px;
}

.tvh-card-logo img{
    width:64px;
    height:64px;
    object-fit:contain;
    border-radius:14px;
    background:#f8fafc;
    padding:8px;
}

.tvh-card-placeholder{
    width:64px;
    height:64px;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:700;
}

.tvh-card-info h3{
    margin:0 0 8px;
    font-size:20px;
    line-height:1.3;
}

.tvh-card-info h3 a{
    color:#0f172a;
    text-decoration:none;
}

.tvh-card-info h3 a:hover{
    color:#2563eb;
}

/* ==========================================================
   Category
========================================================== */

.tvh-category{
    display:inline-block;
    padding:6px 12px;
    border-radius:50px;
    background:#eff6ff;
    color:#2563eb;
    font-size:13px;
    font-weight:600;
}

/* ==========================================================
   Description
========================================================== */

.tvh-description{
    color:#64748b;
    line-height:1.8;
    margin:0 0 24px;
    flex:1;
}

/* ==========================================================
   Meta
========================================================== */

.tvh-card-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
}

.tvh-rating{
    font-weight:700;
    color:#0f172a;
}

.tvh-pricing{
    background:#ecfdf5;
    color:#047857;
    padding:6px 12px;
    border-radius:50px;
    font-size:13px;
    font-weight:700;
}

/* ==========================================================
   Buttons
========================================================== */

.tvh-card-actions{
    display:flex;
    gap:12px;
}

.tvh-card-actions a{
    flex:1;
    text-align:center;
    text-decoration:none;
    padding:12px 16px;
    border-radius:12px;
    font-weight:600;
    transition:.25s;
}

.tvh-btn-outline{
    border:1px solid #dbe4f0;
    color:#0f172a;
    background:#fff;
}

.tvh-btn-outline:hover{
    background:#f8fafc;
}

.tvh-btn-primary{
    background:#2563eb;
    color:#fff;
}

.tvh-btn-primary:hover{
    background:#1d4ed8;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width:1024px){

    .tvh-directory-layout{
        grid-template-columns:1fr;
    }

    .tvh-directory-sidebar{
        position:relative;
        top:auto;
    }

}

@media (max-width:768px){

    .tvh-directory{
        padding:60px 0;
    }

    .tvh-directory-header h1{
        font-size:36px;
    }

    .tvh-tool-grid{
        grid-template-columns:1fr;
    }

    .tvh-card-actions{
        flex-direction:column;
    }

}

@media (max-width:480px){

    .tvh-directory-header h1{
        font-size:30px;
    }

    .tvh-directory-header p{
        font-size:16px;
    }

    .tvh-card{
        padding:20px;
    }

}

/* ==========================================================
   Pagination
========================================================== */

.tvh-pagination{

    margin-top:60px;

    display:flex;

    justify-content:center;

}

.tvh-pagination ul{

    display:flex;

    gap:12px;

    list-style:none;

    margin:0;

    padding:0;

}

.tvh-pagination li{

    margin:0;

}

.tvh-pagination a,
.tvh-pagination span{

    width:46px;

    height:46px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    border-radius:12px;

    border:1px solid #dbe4f0;

    color:#0f172a;

    transition:.25s;

    background:#ffffff;

}

.tvh-pagination a:hover{

    background:#2563eb;

    color:#ffffff;

    border-color:#2563eb;

}

.tvh-pagination .current{

    background:#2563eb;

    color:#ffffff;

    border-color:#2563eb;

}

.tvh-pagination .prev,
.tvh-pagination .next{

    width:auto;

    padding:0 20px;

}

/* ==========================================================
   Empty State
========================================================== */

.tvh-empty{

    background:#ffffff;

    border:1px solid #e2e8f0;

    border-radius:20px;

    padding:70px 40px;

    text-align:center;

}

.tvh-empty-icon{

    font-size:64px;

    margin-bottom:25px;

}

.tvh-empty h2{

    margin:0 0 15px;

    font-size:34px;

    color:#0f172a;

}

.tvh-empty p{

    max-width:560px;

    margin:0 auto 35px;

    color:#64748b;

    line-height:1.8;

    font-size:17px;

}

.tvh-empty-actions{

    display:flex;

    justify-content:center;

}

.tvh-empty-actions .tvh-btn-primary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 28px;

    border-radius:12px;

    background:#2563eb;

    color:#ffffff;

    text-decoration:none;

    font-weight:600;

    transition:.25s;

}

.tvh-empty-actions .tvh-btn-primary:hover{

    background:#1d4ed8;

}

/* ==========================================================
   Reset Filters
========================================================== */

#tvh-reset-filters{

    width:100%;

    margin-top:25px;

    cursor:pointer;

}

/*======================================
Premium Tool Card
======================================*/

.tvh-tool-card{
background:#fff;
border:1px solid #e8edf5;
border-radius:18px;
padding:22px;
transition:.25s;
box-shadow:0 10px 30px rgba(18,38,63,.05);
display:flex;
flex-direction:column;
height:100%;
}

.tvh-tool-card:hover{
transform:translateY(-4px);
box-shadow:0 20px 40px rgba(18,38,63,.10);
}

.tvh-tool-card__top{
display:flex;
gap:18px;
align-items:flex-start;
margin-bottom:18px;
}

.tvh-tool-card__logo img{
width:64px;
height:64px;
border-radius:14px;
object-fit:cover;
background:#f6f8fc;
}

.tvh-tool-card__meta{
flex:1;
}

.tvh-tool-card__title{
margin:0;
font-size:22px;
font-weight:700;
line-height:1.3;
}

.tvh-tool-card__title a{
color:#101828;
text-decoration:none;
}

.tvh-tool-card__title a:hover{
color:#2952e3;
}

.tvh-tool-card__placeholder{
margin-top:10px;
font-size:14px;
line-height:1.7;
color:#667085;
}

.tvh-tool-card__badges{
display:flex;
gap:8px;
margin:10px 0 20px;
flex-wrap:wrap;
}

.tvh-badge{
display:inline-flex;
align-items:center;
padding:6px 12px;
background:#eef4ff;
color:#2952e3;
border-radius:999px;
font-size:12px;
font-weight:600;
}

.tvh-tool-card__footer{
margin-top:auto;
}

.tvh-btn{
display:flex;
justify-content:center;
align-items:center;
padding:12px 18px;
border-radius:12px;
font-weight:600;
text-decoration:none;
transition:.25s;
}

.tvh-btn-primary{
background:#2952e3;
color:#fff;
}

.tvh-btn-primary:hover{
background:#1f43c7;
color:#fff;
}

/*======================================
Rating
======================================*/

.tvh-tool-card__rating{
text-align:right;
min-width:70px;
}

.tvh-stars{
color:#f59e0b;
font-size:16px;
letter-spacing:2px;
margin-bottom:4px;
}

.tvh-rating-number{
font-size:13px;
font-weight:700;
color:#667085;
}

.tvh-tool-card__footer{
display:flex;
gap:12px;
margin-top:auto;
}

.tvh-btn{
flex:1;
}

.tvh-btn-secondary{
background:#fff;
border:1px solid #dbe3ef;
color:#2952e3;
}

.tvh-btn-secondary:hover{
background:#2952e3;
color:#fff;
}