:root {
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* Semantic Colors */
    --c-blue: #3B82F6;
    --c-blue-light: #EFF6FF;
    --c-green: #10B981;
    --c-green-light: #ECFDF5;
    --c-red: #EF4444;
    --c-red-light: #FEF2F2;
    --c-orange: #F59E0B;
    --c-orange-light: #FFFBEB;
    --c-purple: #8B5CF6;
    --c-purple-light: #F5F3FF;
    --c-cyan: #06B6D4;
    --c-cyan-light: #ECFEFF;
    --c-pink: #EC4899;
    --c-pink-light: #FDF2F8;
    --c-yellow: #EAB308;
    --c-yellow-light: #FEF9C3;
    --c-gray: #64748B;
    --c-gray-light: #F1F5F9;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-card: 0 8px 24px rgba(149, 157, 165, 0.1);
    --shadow-hover: 0 12px 32px rgba(149, 157, 165, 0.15);
    
    --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    --bg-main: #0F172A;
    --bg-card: #1E293B;
    --border-color: #334155;
    
    --c-blue-light: rgba(59, 130, 246, 0.15);
    --c-green-light: rgba(16, 185, 129, 0.15);
    --c-red-light: rgba(239, 68, 68, 0.15);
    --c-orange-light: rgba(245, 158, 11, 0.15);
    --c-purple-light: rgba(139, 92, 246, 0.15);
    --c-cyan-light: rgba(6, 182, 212, 0.15);
    --c-pink-light: rgba(236, 72, 153, 0.15);
    --c-yellow-light: rgba(234, 179, 8, 0.15);
    --c-gray-light: rgba(100, 116, 139, 0.15);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Soft gradient at top */
    background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    background-repeat: no-repeat;
    background-size: 100% 800px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-blue { color: var(--c-blue) !important; }
.text-green { color: var(--c-green) !important; }
.text-red { color: var(--c-red) !important; }
.text-orange { color: var(--c-orange) !important; }
.text-purple { color: var(--c-purple) !important; }
.text-cyan { color: var(--c-cyan) !important; }
.text-pink { color: var(--c-pink) !important; }
.text-yellow { color: var(--c-yellow) !important; }
.text-gray { color: var(--c-gray) !important; }
.text-white { color: #fff !important; }
.text-dark { color: #1E293B !important; }

.bg-blue { background-color: var(--c-blue) !important; }
.bg-green { background-color: var(--c-green) !important; }
.bg-red { background-color: var(--c-red) !important; }
.bg-orange { background-color: var(--c-orange) !important; }
.bg-purple { background-color: var(--c-purple) !important; }
.bg-dark { background-color: #1E293B !important; }
.bg-white { background-color: #ffffff !important; }

.bg-blue-light { background-color: var(--c-blue-light) !important; }
.bg-green-light { background-color: var(--c-green-light) !important; }
.bg-red-light { background-color: var(--c-red-light) !important; }
.bg-orange-light { background-color: var(--c-orange-light) !important; }
.bg-purple-light { background-color: var(--c-purple-light) !important; }
.bg-cyan-light { background-color: var(--c-cyan-light) !important; }
.bg-pink-light { background-color: var(--c-pink-light) !important; }
.bg-yellow-light { background-color: var(--c-yellow-light) !important; }
.bg-gray-light { background-color: var(--c-gray-light) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .header {
    background-color: rgba(30, 41, 59, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
}

.icon-btn:hover {
    background-color: var(--c-gray-light);
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.hero-illustration {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.illustration-center {
    position: relative;
    width: 120px;
    height: 120px;
}

.mascot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--c-blue-light);
}

.floating-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.icon-yt { top: 0; left: -20px; color: var(--c-red); animation-delay: 0s; }
.icon-music { top: 20px; right: -20px; color: var(--c-green); animation-delay: 0.5s; }
.icon-download { bottom: 10px; left: -10px; color: var(--c-blue); animation-delay: 1s; }
.icon-sparkle { bottom: 30px; right: -30px; color: var(--c-yellow); animation-delay: 1.5s; font-size: 20px; background: none; box-shadow: none;}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 40px;
}

.search-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-container {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 24px;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15), 0 0 0 3px var(--c-blue-light);
}

.search-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.search-container input {
    flex: 1;
    border: none;
    background: none;
    padding: 0 16px;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
}

.search-container input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background-color: var(--primary);
    color: #fff;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 600;
}

.search-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.hot-badge {
    background-color: var(--bg-card);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.hot-badge i {
    color: var(--c-red);
    font-size: 18px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.search-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--c-gray-light);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
}

.search-tag:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

.search-tag.tag-blue {
    color: var(--c-blue);
    background-color: var(--c-blue-light);
}
.search-tag.tag-blue:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.cat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--c-blue-light);
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.cat-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cat-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
    height: 34px;
    overflow: hidden;
}

.cat-count {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    background-color: var(--bg-main);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

/* Features Banner */
.features-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 15px;
    font-weight: 700;
}

.feature-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.feature-divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-color);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-card);
    border: 1px solid transparent;
}

.filter-tab:hover {
    color: var(--text-main);
    background-color: var(--c-gray-light);
}

.filter-tab.active {
    background-color: var(--primary);
    color: #fff;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-pill);
}

.sort-btn {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-btn:hover {
    color: var(--text-main);
}

.sort-btn.active {
    background-color: var(--c-blue-light);
    color: var(--primary);
}

/* Tool Section */
.tool-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 24px;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 800;
}

.view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all:hover {
    color: var(--primary);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tool-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.tool-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.tool-title-area h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}

.tool-title-area p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
    padding-bottom: 16px;
}

.tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.tag-green { color: var(--c-green); background-color: var(--c-green-light); }
.tag-blue { color: var(--c-blue); background-color: var(--c-blue-light); }
.tag-orange { color: var(--c-orange); background-color: var(--c-orange-light); }
.tag-red { color: var(--c-red); background-color: var(--c-red-light); }
.tag-purple { color: var(--c-purple); background-color: var(--c-purple-light); }
.tag-gray { color: var(--text-muted); background-color: var(--c-gray-light); }

.tool-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.tool-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.tool-platforms span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: #fff;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Minimal Card (for latest & open source sections) */
.card-minimal .tool-footer.minimal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: none;
    padding-top: 0;
}

.card-minimal .tool-platforms {
    margin-bottom: 0;
}

.time-ago {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    position: relative;
    background-color: var(--c-blue-light);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    overflow: hidden;
}

[data-theme="dark"] .cta-section {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-color);
}

.cta-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    z-index: 0;
}

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

.cta-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 15px;
    color: var(--text-muted);
}

.cta-btn {
    position: relative;
    z-index: 1;
    width: auto;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-col .logo-text h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.brand-col .logo-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.brand-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--c-gray-light);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-links a:hover {
    background-color: var(--primary);
    color: #fff;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--primary);
}

.subscribe-col p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    font-size: 14px;
    outline: none;
    color: var(--text-main);
}

.subscribe-form input:focus {
    border-color: var(--primary);
}

.subscribe-form button {
    width: auto;
    padding: 10px 20px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-light);
}

.made-with {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--c-gray-light);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease forwards;
}

.empty-state .empty-icon {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 16px;
    background-color: var(--c-gray-light);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.empty-state p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-state button {
    width: auto;
    padding: 10px 24px;
}

/* Card Search Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.tool-card.fade-out {
    animation: fadeOut 0.3s ease forwards;
    pointer-events: none;
}
.tool-card.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .categories, .tool-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .categories, .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav a {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav a:last-child {
        border-bottom: none;
    }
    .main-nav a.active::after {
        display: none;
    }
    .categories, .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .feature-divider {
        width: 100%;
        height: 1px;
    }
    .search-wrapper {
        flex-direction: column;
        width: 100%;
    }
    .search-container {
        width: 100%;
    }
    .search-btn {
        width: 100%;
        margin-top: 10px;
    }
    .hot-badge {
        align-self: center;
    }
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .filter-tabs {
        flex-wrap: wrap;
    }
    .cta-section {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .brand-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .tool-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 32px;
    }
}

/* Card Collapse/Expand Styles */
body:not(.searching-active):not(.filtering-active) .tool-card.collapsed-hidden {
    display: none !important;
}
