{{-- Blog Post Card Component - Reusable dark card with hover effect and accent color transitions --}} {{-- Link wrapper: Block display, group class for hover effects on child elements --}} {{-- Card Container: Dark card background (#1a1a1a), rounded corners, overflow hidden, border with hover accent color, smooth transitions, shadow on hover --}}
{{-- Featured Image Section: Conditional rendering if post has featured image --}} @if($post->featured_image) {{-- Image Container: 16:9 aspect ratio, full width, overflow hidden, dark background fallback --}}
{{-- Post Image: Full width/height, object-cover for proper scaling, scale on hover (group-hover), smooth transition --}} {{ $post->title }}
@else {{-- Placeholder: Gradient background from dark blue to accent cyan, centered content with emoji --}}
📝
@endif {{-- Card Content Section: Padding (p-6 = 1.5rem) for spacing --}}
{{-- Category Badge: Conditional rendering, inline-block, small padding, accent color text and background, rounded-full, bottom margin --}} @if($post->category) {{ $post->category }} @endif {{-- Post Title: Large text (xl), bold weight, heading font, light text color, hover accent color, bottom margin, line clamp to 2 lines --}}

{{ $post->title }}

{{-- Excerpt: Conditional rendering, muted text (70% opacity), small text, bottom margin, line clamp to 3 lines --}} @if($post->excerpt)

{{ $post->excerpt }}

@endif {{-- Meta Info Section: Flex layout, centered items, extra small text, dimmed text color (50% opacity) --}}
{{-- Calendar Icon: Small size (w-4 h-4), right margin --}} {{-- Publication Date: Formatted date, fallback to creation date if not published --}} {{ $post->published_at?->format('M d, Y') ?? $post->created_at->format('M d, Y') }}