:root {
    --apple-blue: #007AFF;
    --apple-gray: #F5F5F7;
    --apple-text: #1D1D1F;
    --apple-secondary: #86868B;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--apple-text);
    background-color: var(--apple-gray);
}

header {
    background-color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--apple-text);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #D2D2D7;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.category-section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--apple-text);
    position: sticky;
    top: 100px;
    background: var(--apple-gray);
    padding: 1rem 0;
    z-index: 90;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--apple-text);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.site-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 6px;
}

.link-card h3 {
    font-size: 1.2rem;
    color: var(--apple-blue);
    margin: 0;
}

.link-card .description {
    color: var(--apple-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

footer {
    text-align: center;
    padding: 2rem;
    background: white;
    color: var(--apple-secondary);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        top: 80px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .link-card {
        padding: 1rem;
    }

    header {
        padding: 1.5rem 1rem;
    }

    .site-icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }
} 