/* ===== RESSOURCES PAGE STYLES ===== */

.tools-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border-radius: 12px;
    border: 1.5px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(50, 228, 255, 0.08);
    box-shadow: 0 0 20px rgba(50, 228, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    font-size: 1.1rem;
    pointer-events: none;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tab {
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    border: 1.5px solid var(--glass-border);
    background: transparent;
    color: var(--muted);
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(50, 228, 255, 0.08);
}

.filter-tab.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(50, 228, 255, 0.15), rgba(122, 60, 255, 0.1));
    color: var(--accent);
    box-shadow: 0 0 15px rgba(50, 228, 255, 0.3);
}

/* ===== TOOLS GRID ===== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 500px;
    animation: slideInUp 0.5s ease-out;
}

.tool-card:hover {
    border-color: var(--accent);
    background: rgba(50, 228, 255, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(50, 228, 255, 0.2);
}

.tool-card.hidden {
    display: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tool-icon {
    font-size: 3rem;
    line-height: 1;
}

.category-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.dev {
    background: rgba(47, 107, 255, 0.2);
    color: #2f6bff;
    border: 1px solid rgba(47, 107, 255, 0.4);
}

.category-badge.design {
    background: rgba(122, 60, 255, 0.2);
    color: #7a3cff;
    border: 1px solid rgba(122, 60, 255, 0.4);
}

.category-badge.media {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.4);
}

.category-badge.tools {
    background: rgba(50, 228, 255, 0.2);
    color: #32e4ff;
    border: 1px solid rgba(50, 228, 255, 0.4);
}

.tool-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.tool-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.tool-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.tool-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.tool-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform::before {
    content: "💻";
    opacity: 0.7;
}

.license::before {
    content: "📜";
    opacity: 0.7;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.stars {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-text {
    padding: 0.3rem 0.8rem;
    background: rgba(50, 228, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(50, 228, 255, 0.1);
}

.download-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.download-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    font-family: "Space Grotesk", sans-serif;
}

.download-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, rgba(50, 228, 255, 0.1), rgba(122, 60, 255, 0.05));
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(50, 228, 255, 0.25), rgba(122, 60, 255, 0.15));
    box-shadow: 0 0 20px rgba(50, 228, 255, 0.4);
    transform: translateY(-2px);
    border-color: #32e4ff;
}

.download-btn.clicked {
    animation: pulse 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(50, 228, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(50, 228, 255, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(50, 228, 255, 0.4);
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .tools-header {
        flex-direction: column;
    }

    .filter-tabs {
        justify-content: flex-start;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-direction: column;
        width: 100%;
    }

    .filter-tab {
        width: 100%;
    }

    .search-input {
        font-size: 16px;
    }
}

/* ===== No Results Message ===== */

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-text {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.no-results-suggest {
    color: var(--muted);
    font-size: 0.95rem;
}