* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #0b0e14;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e8edf5;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #f0f5ff;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.page-title-2 {
    font-size: 2;
    font-weight: 600;
    color: #C9FF1A;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.page-title span {
    color: #C9FF1A;
}

*::selection {
  background: #C9FF1A;
  color: #000;
}
*::-moz-selection {
  background: #C9FF1A;
  color: #000;
}
*::-webkit-selection {
  background: #C9FF1A;
  color: #000;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.item-card {
    background: #171e27;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    flex: 1 1 280px;
    max-width: 360px;
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
    border: 1px solid #2a343f;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px #C9FF1A33;
    border-color: #C9FF1A;
}

.item-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.item-name a {
    color: #e8edf5;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    border-bottom: 2px solid transparent;
}

.item-name a:hover {
    color: #C9FF1A;
    border-bottom-color: #C9FF1A;
}

.item-name a:focus-visible {
    outline: 2px solid #C9FF1A;
    outline-offset: 2px;
    border-radius: 4px;
    color: #C9FF1A;
}

.item-description {
    color: #b6c8e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0 1rem 0;
    flex: 1;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #2a343f;
}

.tag {
    background: #212c3a;
    color: #c8d9f0;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
}

.tag:hover {
    background: #2f3d4f;
    color: #C9FF1A;
    border-color: #C9FF1A55;
}

.empty-state {
    text-align: center;
    color: #7a8aa0;
    padding: 3rem 1rem;
    font-size: 1.1rem;
    width: 100%;
}

@media (max-width: 640px) {
    body {
        padding: 1.25rem 0.75rem;
    }

    .page-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .card-grid {
        gap: 1rem;
    }

    .item-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        padding: 1.25rem 1.25rem;
    }

    .item-name {
        font-size: 1.1rem;
    }

    .item-description {
        font-size: 0.9rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.65rem;
    }
}

@media (max-width: 400px) {
    .item-card {
        padding: 1rem 1rem;
    }

    .tag-list {
        gap: 0.35rem 0.5rem;
    }
}