@import "tailwindcss";
@plugin "daisyui";

@plugin "daisyui/theme" {
  name: "hadi";
  default: true;
  prefersdark: false;
  color-scheme: dark;
  --color-base-100: oklch(0% 0 0);
  --color-base-200: oklch(19% 0 0);
  --color-base-300: oklch(22% 0 0);
  --color-base-content: oklch(87.609% 0 0);
  --color-primary: oklch(71% 0.0863 296.59);
  --color-primary-content: oklch(100% 0 0);
  --color-secondary: oklch(35% 0 0);
  --color-secondary-content: oklch(100% 0 0);
  --color-accent: oklch(35% 0 0);
  --color-accent-content: oklch(100% 0 0);
  --color-neutral: oklch(35% 0 0);
  --color-neutral-content: oklch(100% 0 0);
  --color-info: oklch(45.201% 0.313 264.052);
  --color-info-content: oklch(89.04% 0.062 264.052);
  --color-success: oklch(51.975% 0.176 142.495);
  --color-success-content: oklch(90.395% 0.035 142.495);
  --color-warning: oklch(96.798% 0.211 109.769);
  --color-warning-content: oklch(19.359% 0.042 109.769);
  --color-error: oklch(62.795% 0.257 29.233);
  --color-error-content: oklch(12.559% 0.051 29.233);
  --radius-selector: 0.25rem;
  --radius-field: 0.25rem;
  --radius-box: 0.5rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;
}

.drawer-side > aside > astro-island {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.btn:not(.btn-circle):not(.btn-square) {
  @apply rounded-lg;
}

@layer components {
  .link-card {
    display: flex;
    align-items: center;
    padding: 0 0.875rem;
    border-radius: var(--radius-box);
    border: 1px solid oklch(24% 0 0);
    background: transparent;
    color: var(--color-base-content);
    text-decoration: none !important;
    transition:
      background 0.15s ease,
      border-color 0.15s ease;
    margin-block: 0.25rem;
  }
  .link-card::after {
    content: "↗";
    margin-left: auto;
    padding-left: 0.75rem;
    opacity: 0;
    color: var(--color-primary);
    font-size: 0.75rem;
    transition:
      opacity 0.15s ease,
      transform 0.15s ease;
    transform: translate(-4px, 4px);
    flex-shrink: 0;
  }
  .link-card:hover {
    background: var(--color-base-200);
    border-color: var(--color-primary);
  }
  .link-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
  }
  .link-card span {
    display: flex;
    flex-direction: column;
  }
  .link-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    transition: color 0.15s ease;
  }
  .link-card:hover h4 {
    color: var(--color-primary);
  }
  .link-card p {
    font-size: 0.75rem;
    margin: 0;
    line-height: 1;
    color: oklch(52% 0 0);
  }
}
