* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255,255,255,0.95);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.logo {
    font-size: 2.2em;
    color: #667eea;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #667eea;
}

.search-box button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #764ba2;
}

/* Main content */
main.container {
    padding-bottom: 60px;
}

/* Category */
.category {
    margin-bottom: 35px;
}

.category-title {
    font-size: 1.4em;
    color: white;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #ffd700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tool-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.tool-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.tool-desc {
    font-size: 0.85em;
    color: #888;
    line-height: 1.4;
}

/* Search result highlight */
.search-result-item {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-item .tool-icon {
    font-size: 1.8em;
    margin: 0;
}

.search-result-item .tool-name {
    margin: 0;
}

.search-result-item .tool-desc {
    margin: 0;
}

/* Footer */
.footer {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .logo { font-size: 1.6em; }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .tool-card { padding: 15px; }
    .tool-icon { font-size: 2em; }
}
