/* Base styles */
:root {
    --primary-color: #2563eb;
    --hover-color: #1d4ed8;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --description-color: #64748b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

li {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.tool-description {
    font-size: 0.875rem;
    color: var(--description-color);
    font-weight: normal;
}

a::after {
    content: "→";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

li:hover a::after {
    opacity: 1;
    transform: translate(4px, -50%);
}

/* Media queries for responsive design */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .tool-name {
        font-size: 1rem;
    }

    .tool-description {
        font-size: 0.8125rem;
    }

    a {
        padding: 0.875rem 1.25rem;
    }

    li {
        margin-bottom: 0.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    li:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    a::after {
        opacity: 1;
        transform: translateY(-50%);
    }

    li:active {
        background-color: #f8f9fa;
    }
}