/* ==========================================================================
   Tools Section
   ========================================================================== */

.tools-section {
    background: #f8f9fc;
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('../../images/tools-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
}



.tools-section .section-title {
    color: var(--color-text);
}

.tools-section .section-subtitle {
    color: var(--color-text-muted);
}

/* Homepage tools grid - scoped to avoid conflict with tools list page */
.tools-section .tools-grid {
    margin: var(--spacing-3xl) 0;
    /* Fade-out effect on left and right edges - matches Figma mask */
    /* Left 40% fade-in, center 20% visible, right 40% fade-out */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%, black 60%, transparent 100%);
}

.tools-row {
    display: flex;
    gap: 15px;
    padding: 8px 0;
    animation: scroll-left 40s linear infinite;
}

.tools-row:nth-child(2) {
    animation-direction: reverse;
}

.tools-row-reverse {
    animation-direction: reverse;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Homepage tool cards - scoped to tools-section to avoid conflict with tools list page */
.tools-section .tool-card {
    width: 128px;
    height: 128px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(2.25px);
    -webkit-backdrop-filter: blur(2.25px);
    border: 1px solid #fff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 9px;
    gap: 10px;
    flex-shrink: 0;
}

.tools-section .tool-card img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.tools-section .tool-card span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #4d4d4d;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-ctas {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: var(--spacing-xl);
}

