* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    line-height: 1.6;
    color: #334155;
}
/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo-img {
    height: 32px;
    width: auto;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #DC2626;
}
.nav-cta {
    background: #DC2626 !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}
.nav-cta:hover {
    background: #B91C1C !important;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
}
/* Tools Section */
.tools-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}
.tools-header {
    text-align: center;
    margin-bottom: 48px;
}
.tools-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}
.tools-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}
/* Search and Filters */
.search-container {
    margin-bottom: 40px;
}
.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 24px;
    transition: border-color 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
    border-color: #DC2626;
    color: #DC2626;
}
.filter-btn.active {
    background: #DC2626;
    border-color: #DC2626;
    color: white;
}
/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
/* Modern Tool Card */
.tool-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #DC2626;
}
.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.tool-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.tool-info {
    flex: 1;
    min-width: 0;
}
.tool-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}
.tool-category {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.tool-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.tool-link-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.tool-card:hover .tool-link-indicator {
    opacity: 1;
}
.tool-link-indicator::after {
    content: '↗';
    font-size: 12px;
    color: #64748b;
}
/* Category-specific icon backgrounds - updated to red-themed colors */
.tool-card[data-category="AI Prototyping & Building"] .tool-icon {
    background: #fef3c7;
}
.tool-card[data-category="AI Coding Assistants"] .tool-icon {
    background: #fee2e2;
}
.tool-card[data-category="AI Assistants"] .tool-icon {
    background: #fce7f3;
}
.tool-card[data-category="Image Generation"] .tool-icon {
    background: #fed7d7;
}
.tool-card[data-category="Video Generation"] .tool-icon {
    background: #fecaca;
}
.tool-card[data-category="Research"] .tool-icon {
    background: #fee2e2;
}
.tool-card[data-category="Writing"] .tool-icon {
    background: #fef3c7;
}
.tool-card[data-category="Productivity"] .tool-icon {
    background: #f0fdf4;
}
.tool-card[data-category="Meeting Assistants"] .tool-icon {
    background: #fef7cd;
}
.tool-card[data-category="Interviews & Jobs"] .tool-icon {
    background: #ede9fe;
}
.tool-card[data-category="Presentations"] .tool-icon {
    background: #fdf2f8;
}
.tool-card[data-category="Creativity"] .tool-icon {
    background: #fef3c7;
}
.tool-card[data-category="Music"] .tool-icon {
    background: #f3e8ff;
}
/* NxtWave specific styling */
.nxtwave-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #DC2626;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}
.tool-card.nxtwave {
    position: relative;
    border: 1px solid #e2e8f0;
}
.tool-card.nxtwave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DC2626, #B91C1C);
    border-radius: 12px 12px 0 0;
}
/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 16px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .tools-title {
        font-size: 2rem;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .filter-buttons {
        justify-content: center;
    }
    .tool-card {
        padding: 16px;
    }
}

/* Hide desktop filter buttons on mobile, show dropdown */
@media (max-width: 768px) {
    #filterButtons {
        display: none !important;
    }
    #mobileCategoryDropdown {
        display: block !important;
    }
}
@media (min-width: 769px) {
    #filterButtons {
        display: flex !important;
    }
    #mobileCategoryDropdown {
        display: none !important;
    }
}
.mobile-category-dropdown {
    position: relative;
    margin-top: 10px;
}
.dropdown-toggle {
    width: 100%;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
}
.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 10;
    border-radius: 4px;
}
.dropdown-menu .filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
}
.dropdown-menu .filter-btn.active {
    background: #e0e7ff;
}
