/* ==================== Tools Index Page Styles ==================== */

.tool-card {
    border-radius: 14px;
    background: var(--card-bg, #fff);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 1.5rem;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    text-decoration: none;
    color: inherit;
}

.tool-card .tool-ico {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: .9rem;
}

.tool-card .card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: .8rem;
    font-size: .82rem;
    color: #888;
}

.tool-card .card-rating .stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.tool-card .card-rating .count {
    color: #aaa;
}

.tool-card .card-like {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: .85rem;
    color: #ef4444;
}

.tool-card .card-like i {
    margin-right: 3px;
}

.tools-filter-chip {
    padding: .4rem .9rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    background: #F3F4F6;
    color: #6B7280;
    border: none;
}

.tools-filter-chip:hover {
    background: #E0E7FF;
    color: #4F46E5;
}

.tools-filter-chip.active {
    background: #4F46E5;
    color: white;
}

.tool-card .tool-star {
    cursor: pointer;
    color: #d1d5db;
    transition: color .15s;
}

.tool-card .tool-star.active {
    color: #f59e0b;
}

.tool-card .tool-star:hover {
    color: #fbbf24;
}

[data-theme="dark"] .tool-card {
    background: #1E293B;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

[data-theme="dark"] .tool-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

[data-theme="dark"] .tool-card .card-rating {
    color: #94A3B8;
}

[data-theme="dark"] .tool-card .card-rating .count {
    color: #64748B;
}

[data-theme="dark"] .tools-filter-chip {
    background: #334155;
    color: #94A3B8;
}

[data-theme="dark"] .tools-filter-chip:hover {
    background: #475569;
}

[data-theme="dark"] .tools-filter-chip.active {
    background: #818CF8;
    color: #0F172A;
}

[data-theme="dark"] .tool-card .tool-star {
    color: #475569;
}

[data-theme="dark"] .tool-card .tool-star.active {
    color: #FBBF24;
}

[data-theme="dark"] .tool-card .tool-star:hover {
    color: #FDE68A;
}