﻿:root {
    --light: #f8f9fa;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #f72585;
    --gray: #adb5bd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

#search {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #4895ef;
}

    .category-header h2 {
        color: #1b263b;
        font-size: 1.5rem;
        margin: 0;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

    .tool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-color: #4895ef;
    }

    .tool-card h3 {
        color: #4361ee;
        margin-bottom: 0.75rem;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
    }

.tool-icon {
    margin-right: 10px;
    color: #4895ef;
    font-size: 1.3rem;
}

.tool-card p {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.tool-links {
    display: flex;
    gap: 10px;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #4361ee;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

    .tool-link:hover {
        background-color: #3f37c9;
        transform: translateY(-2px);
    }

    .tool-link i {
        margin-right: 5px;
    }

.tool-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 5px;
}

    .tool-tag.open-source {
        background-color: rgba(40, 167, 69, 0.1);
        color: #28a745;
    }

    .tool-tag.paid {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

    .tool-tag.cross-platform {
        background-color: rgba(23, 162, 184, 0.1);
        color: #17a2b8;
    }

footer {
    background-color: #1b263b;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1rem 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

    .footer-link:hover {
        color: #4895ef;
    }

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}
