/* Modern Privacy-First CSS */

:root {
    /* Core Colors */
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --accent-color: #27ae60;
    --danger-color: #e74c3c;

    /* Backgrounds & Text */
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --secondary-surface: #e9ecef;
    --text-color: #2c3e50;
    /* Explicit Dark Blue-Grey */
    --text-muted: #7f8c8d;
    --border-color: #ecf0f1;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);

    /* Layout */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --container-width: 1200px;
    --header-height: 70px;

    /* Animation */
    --transition: all 0.2s ease-in-out;
}

[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --surface-color: #16213e;
    --secondary-surface: #0f3460;
    --text-color: #e2e2e2;
    --text-muted: #a0a0a0;
    --border-color: #2a2a40;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(26, 26, 46, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    perspective: 1000px;
    /* Global perspective */
    transition: background-color 0.3s, color 0.3s;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Real 3D Cube Animation */
.hero-scene {
    width: 100px;
    height: 100px;
    perspective: 600px;
    margin-bottom: 40px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-50px);
    cursor: grab;
    touch-action: none;
}

/* Step 2: Internal Core Glow */
/* Step 2: Internal Core Glow - REMOVED per user request */
/* .cube::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(52, 152, 219, 0.5) 40%, transparent 80%);
    box-shadow: 0 0 30px 10px rgba(52, 152, 219, 0.4);
    border-radius: 50%;
    transform: translateZ(0) translate(-50%, -50%);
    top: 50%;
    left: 50%;
    filter: blur(5px);
    pointer-events: none;
} */

/* 
.cube:hover,
.cube.is-paused {
    animation-play-state: paused !important;
} 
*/

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    /* Color set by specific face */
    /* Show inside */
    /* Step 1: External Ambient Glow */
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4), 0 0 30px rgba(52, 152, 219, 0.2) inset;
}

.cube-face a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    /* Keep branding colors */
}

/* Face transforms & Colors */
.cube-face.front {
    transform: rotateY(0deg) translateZ(50px);
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6), 0 0 40px rgba(231, 76, 60, 0.3) inset;
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(50px);
    border-color: #3498db;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.6), 0 0 40px rgba(52, 152, 219, 0.3) inset;
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(50px);
    border-color: #2ecc71;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6), 0 0 40px rgba(46, 204, 113, 0.3) inset;
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(50px);
    border-color: #f39c12;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.6), 0 0 40px rgba(243, 156, 18, 0.3) inset;
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(50px);
    border-color: #9b59b6;
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.6), 0 0 40px rgba(155, 89, 182, 0.3) inset;
    /* Font size handled inline or here */
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(50px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.6), 0 0 40px rgba(52, 152, 219, 0.3) inset;
    font-size: 24px;
}

@keyframes rotateCube {
    0% {
        transform: translateZ(-50px) rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: translateZ(-50px) rotateX(360deg) rotateY(360deg);
    }
}

/* --- Tool UI Enhancement --- */

/* Glass Tool Container */
.tool-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
    max-width: 800px;
    transition: transform 0.3s ease;
}

[data-theme="light"] .tool-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Premium Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    margin-bottom: 1.5rem;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.05);
    transform: scale(1.02);
}

.drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

/* Premium File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    animation: slideIn 0.3s ease;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 1.5rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #e74c3c;
}

/* Steps Indicator (Simple) */
.step-indicator {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.step {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step.active {
    color: var(--primary-color);
}

.tilt-glare {
    /* Ensure glare doesn't block clicks */
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    font-weight: 500;
    color: var(--text-muted);
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-surface);
    color: var(--text-color);
}

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

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- Components --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.tool-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.tool-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px 20px;
    text-align: center;
    background: var(--surface-color);
    transition: var(--transition);
    cursor: pointer;
    margin: 20px 0;
}

.drop-zone:hover,
.drop-zone.highlight {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.05);
}

.drop-zone-icon {
    font-size: 3rem;
}

/* Ambient Visual Effects (Phase 10) */

/* Ambient Light Blobs */
.ambient-light {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    /* Good visibility without being overwhelming */
    z-index: 0;
    pointer-events: none;
    animation: floatLight 20s infinite alternate ease-in-out;
    mix-blend-mode: screen;
    /* Blend nicely with dark/light themes */
}

/* Ensure body doesn't trap fixed elements */
body {
    position: relative;
}

/* Light Positioning */
.ambient-light.one {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

.ambient-light.two {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    animation-delay: -5s;
}

@keyframes floatLight {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 20px) scale(0.9);
    }
}

/* Card Spotlight Effect */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: var(--surface-color);
}

.spotlight-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1),
            /* Subtle but visible glow */
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.spotlight-card:hover::after {
    opacity: 1;
}

/* Inputs */
input,
select,
textarea {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 5px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--surface-color);
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary-color);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: var(--accent-color);
}

.toast-error {
    border-color: var(--danger-color);
}

/* Scroll Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Neon / Cyberpunk Mode (Optional Toggle) */
body.neon-mode {
    --primary-color: #00ffea;
    --primary-dark: #00ccbb;
    --accent-color: #ff00ff;
    --text-color: #e0fbfc;
    --bg-color: #050505;
    --surface-color: #0a0a0a;
    --border-color: #00ffea;
}

body.neon-mode .tool-card {
    box-shadow: 0 0 10px var(--primary-color), inset 0 0 20px rgba(0, 255, 234, 0.1);
    border: 1px solid var(--primary-color);
}

body.neon-mode .btn-primary {
    box-shadow: 0 0 15px var(--primary-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    font-weight: 800;
    letter-spacing: 1px;
}

body.neon-mode h1,
body.neon-mode h2,
body.neon-mode h3 {
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--accent-color);
}

/* Responsive & Mobile Menu */
@media (max-width: 850px) {
    :root {
        --header-height: 60px;
        --container-width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    /* Fixed Header Stacking Context */
    header {
        z-index: 1001;
        /* Above overlay */
        position: sticky;
        top: 0;
    }

    /* Typography */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Layout Spacing */
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tool-container {
        padding: 1.5rem;
        width: 100%;
        margin: 1rem 0;
    }

    .drop-zone {
        padding: 2rem 1rem;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1002;
        padding: 10px;
        margin-right: 10px;
        min-width: 44px;
        min-height: 44px;
    }

    nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        height: 100dvh;
        /* Dynamic Viewport Height for Mobile */
        background: var(--surface-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding: 80px 20px;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        /* Top level */
        will-change: transform;
        overflow-y: auto;
        /* Allow menu internal scroll */
    }

    nav.nav-active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        width: 100%;
    }

    nav a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        /* Below Header */
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        backdrop-filter: blur(4px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hide hamburger on larger screens */
@media (min-width: 851px) {
    .mobile-menu-btn {
        display: none !important;
    }

    /* --- Home Page V2 Styles --- */

    /* Search Container */
    .search-container {
        position: relative;
        max-width: 600px;
        margin: 0 auto 10px;
        z-index: 10;
        width: 100%;
    }

    .search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        background: var(--surface-color);
        border-radius: 50px;
        padding: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .search-input-wrapper:focus-within {
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }

    .search-icon {
        position: absolute;
        left: 20px;
        color: var(--text-muted);
        font-size: 1.1rem;
        pointer-events: none;
    }

    #tool-search {
        width: 100%;
        padding: 15px 50px 15px 45px;
        font-size: 1.1rem;
        border: none;
        background: transparent;
        color: var(--text-color);
        outline: none;
        /* create distinct stacking context */
        border-radius: 50px;
    }

    .search-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        margin-right: 5px;
        flex-shrink: 0;
    }

    .search-btn:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }

    .search-shortcut {
        display: none;
        /* Hide shortcut hint to clean up UI */
    }



    /* Filter Tabs - Horizontal Scrollbar Style */
    .filter-tabs {
        display: flex;
        justify-content: center;
        /* Center on desktop */
        gap: 10px;
        margin-bottom: 40px;
        padding: 5px;
        overflow-x: auto;
        /* Allow scroll on mobile */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        flex-wrap: nowrap;
        /* Prevent wrapping */
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .filter-tab {
        padding: 10px 25px;
        border-radius: 30px;
        border: 1px solid var(--border-color);
        background: var(--surface-color);
        cursor: pointer;
        font-weight: 600;
        white-space: nowrap;
        /* Prevent wrap */
        transition: all 0.3s ease;
        color: var(--text-muted);
        font-size: 0.95rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    }

    .filter-tab:hover {
        background: var(--secondary-surface);
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .filter-tab.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
        transform: scale(1.05);
    }

}

/* New Tool Card Style */
.tool-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    /* Remove gap, handle via padding in children */
    padding: 0;
    /* Remove padding from card itself */
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    overflow: hidden;
    height: 100px;
    /* Fixed height for consistency */
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.tool-thumb {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 3rem;
    /* Much larger icon */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    /* No background box */
    margin-left: 5px;
}

.tool-card:hover .tool-thumb {
    transform: scale(1.15) rotate(5deg);
    /* playful hover */
}

.tool-info {
    padding: 15px 15px 15px 5px;
    /* Less left padding since thumb is open */
    flex-grow: 1;
    overflow: hidden;
    /* Keep hidden for height safety but ensure content fits */
    min-width: 0;
    position: relative;
    /* Ensure z-index works */
    z-index: 2;
}

.tool-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    /* white-space: nowrap;  Removed to allow wrapping if tight */
    line-height: 1.2;
    /* overflow: hidden; Removed to ensure visibility */
}

.tool-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-arrow {
    margin-left: auto;
    padding-right: 20px;
    color: var(--border-color);
    transition: transform 0.3s, color 0.3s;
}

.tool-card:hover .tool-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.3s forwards;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px;
    display: none;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

/* Responsive Grid overrides */
@media (max-width: 600px) {
    .tool-card {
        flex-direction: row;
        /* Keep row on mobile for media object look */
        align-items: center;
        height: auto;
        /* Dynamic height on mobile if needed */
        min-height: 80px;
    }

    .tool-thumb {
        width: 80px;
        /* Smaller thumb */
        height: 80px;
        font-size: 1.8rem;
    }

    .tool-info {
        padding: 10px 15px;
    }

    .tool-arrow {
        position: relative;
        top: auto;
        right: auto;
        padding-right: 15px;
    }
}