<script lang="ts">
  export let icon: string;
  export let label: string;
  export let href: string;
</script>

<a {href} class="category-card">
  <span class="card-icon">{icon}</span>
  <span class="card-label">{label}</span>
</a>

<style>
  .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 132px;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
  }
  .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
  }

  .card-icon {
    font-size: 2rem;
    line-height: 1;
  }
  .card-label {
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
  }
</style>
