.qingpdf-nav-item {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.qingpdf-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.relative-z-1 {
    position: relative;
    z-index: 1;
}

.section-icon-gradient {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
}

.search-container {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 48px;
    border: 2px solid #E2E8F0;
    border-radius: 9999px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #0D9488;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    color: #94A3B8;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    margin: auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 9999px;
    border: 2px solid #E2E8F0;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #64748B;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: #0D9488;
    color: #0D9488;
}

.filter-tab.is-active {
    border-color: #0D9488;
    background: #0D9488;
    color: white;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card > * {
    position: relative;
    z-index: 1;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(13, 148, 136, 0.15) 45%,
        rgba(20, 184, 166, 0.1) 50%,
        transparent 55%);
    z-index: 0;
    pointer-events: none;
    transition: left 0.6s ease;
}

.tool-card:hover::after {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(13, 148, 136, 0.2),
                0 0 0 2px rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.3);
}

.tool-card .icon-wrapper {
    transition: transform 0.2s ease;
}

.tool-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.tool-card .icon-wrapper svg {
    transition: transform 0.2s ease;
}

.tool-card:hover .icon-wrapper svg {
    transform: translateY(-2px);
}

.tool-card:hover .tool-title {
    color: #0D9488;
}

.tool-card.is-hidden {
    display: none;
}

.popular-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    z-index: 2;
    line-height: 1.4;
    text-align: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(249, 115, 22, 0.5); }
}

.tool-grid {
    display: grid;
    align-items: stretch;
}

.no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}

/* Responsive: keep cards centered at every breakpoint */
@media (max-width: 640px) {
    .tool-card {
        padding: 1.25rem !important;
    }

    .tool-card .icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .tool-card h3 {
        font-size: 1rem;
    }

    .tool-card p {
        font-size: 0.8125rem;
    }

    .popular-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

@media (max-width: 480px) {
    .tool-card {
        padding: 1rem !important;
    }

    .tool-card .icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .tool-card h3 {
        font-size: 0.95rem;
    }

    .tool-card p {
        font-size: 0.75rem;
    }

    .popular-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 0;
}

.faq-item.is-open .faq-body {
    max-height: 600px;
    opacity: 1;
}

.faq-item.is-open svg {
    transform: rotate(180deg);
}

/* Dark mode support */
@media (prefers-color-scheme: dark), .dark, .dark-mode {
    .tool-card {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .tool-card:hover {
        background: rgba(47, 65, 85, 0.9);
        border-color: rgba(13, 148, 136, 0.3);
    }

    .tool-card .tool-title {
        color: #f1f5f9;
    }

    .tool-card:hover .tool-title {
        color: #14B8A6;
    }

    .tool-card p {
        color: #94a3b8;
    }

    .tool-card::after {
        background: linear-gradient(105deg,
            transparent 40%,
            rgba(20, 184, 166, 0.15) 45%,
            rgba(20, 184, 166, 0.1) 50%,
            transparent 55%);
    }

    .filter-tab {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #cbd5e1;
    }

    .filter-tab:hover {
        border-color: #14B8A6;
        color: #14B8A6;
        background: rgba(20, 184, 166, 0.1);
    }

    .filter-tab.is-active {
        background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
        color: white;
    }
}
