/* TOOLS HUB — MindCare Design System */

.tool-card-v2 {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--mc-border, #e2e8f0);
    border-radius: var(--mc-radius-md, 10px);
    background: var(--mc-surface, #ffffff);
    box-shadow: var(--mc-shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow 0.15s ease;
}

.tool-card-v2:hover {
    box-shadow: var(--mc-shadow-md, 0 4px 6px -1px rgba(0,0,0,0.08));
}

.tool-image-container {
    width: 100%;
    height: 180px;
    background: var(--mc-surface-muted, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--mc-border, #e2e8f0);
}

.tool-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-content {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.tool-icon-v2 {
    width: 48px;
    height: 48px;
    border-radius: var(--mc-radius-sm, 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--mc-primary-light, #f0fdfa);
    color: var(--mc-primary-dark, #0f766e);
    margin-bottom: 4px;
}

.tool-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mc-text-primary, #0f172a);
    margin: 0;
}

.tool-header p {
    font-size: 0.85rem;
    color: var(--mc-text-secondary, #475569);
    line-height: 1.5;
    max-width: 90%;
    margin: 2px 0 0;
}

/* Unified Tool Action Button */
.btn-tool,
.btn-lavender,
.btn-teal,
.btn-pink,
.btn-orange,
.btn-indigo,
.btn-green {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--mc-radius-sm, 6px);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--mc-primary, #0F766E);
    color: #ffffff;
    box-shadow: none;
    text-decoration: none;
}

.btn-tool:hover,
.btn-lavender:hover,
.btn-teal:hover,
.btn-pink:hover,
.btn-orange:hover,
.btn-indigo:hover,
.btn-green:hover {
    background: var(--mc-primary-dark, #0f766e);
    box-shadow: none;
    transform: none;
    filter: none;
}

/* Compact Tool Cards */
.tool-card-v2.compact {
    border-radius: var(--mc-radius-md, 10px);
}

.tool-card-v2.compact .tool-content {
    padding: 16px;
}

.tool-card-v2.compact .tool-header {
    margin-bottom: 14px;
}

.tool-card-v2.compact .tool-icon-v2 {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
}

/* Dark Theme Support */
body.theme-charcoal .tool-card-v2 {
    background: #1e293b;
    border-color: #334155;
}

body.theme-charcoal .tool-header h3 {
    color: #f1f5f9;
}

body.theme-charcoal .tool-header p {
    color: #94a3b8;
}

body.theme-charcoal .tool-icon-v2 {
    background: #0f172a;
    color: var(--mc-primary, #0F766E);
}
