

<?php $__env->startSection('title', 'Inve Security - ' . $post->title); ?>
<?php $__env->startSection('description', $post->meta_description ?? $post->excerpt); ?>
<?php if($post->meta_keywords): ?>
    <?php $__env->startSection('keywords', implode(',', $post->meta_keywords)); ?>
<?php endif; ?>

<?php $__env->startSection('content'); ?>
    <!-- LUXURY GOLDEN HERO -->
    <section class="relative pt-32 pb-20 bg-gradient-to-br from-gold-50 via-white to-gold-50/30 dark:from-gray-950 dark:via-gray-900 dark:to-gold-900/10">
        <!-- Animated Background Elements -->
        <div class="absolute inset-0 overflow-hidden">
            <!-- Gradient Orbs -->
            <div class="absolute top-0 -right-40 w-96 h-96 bg-gold-500/20 rounded-full blur-3xl animate-pulse-gold"></div>
            <div class="absolute bottom-0 -left-40 w-80 h-80 bg-gold-600/20 rounded-full blur-3xl animate-pulse-gold" style="animation-delay: 2s"></div>
            
            <!-- Animated Grid Pattern -->
            <div class="absolute inset-0 opacity-20 dark:opacity-10">
                <div class="absolute inset-0 bg-[linear-gradient(90deg,transparent_95%,rgba(250,204,21,0.1)_100%)] animate-shimmer bg-[length:200%_100%]"></div>
                <div class="absolute inset-0 bg-[linear-gradient(rgba(250,204,21,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(250,204,21,0.03)_1px,transparent_1px)] dark:bg-[linear-gradient(rgba(255,255,255,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.03)_1px,transparent_1px)] bg-[size:40px_40px] [mask-image:radial-gradient(ellipse_80%_50%_at_50%_50%,black,transparent)]"></div>
            </div>
        </div>

        <div class="max-w-4xl mx-auto px-6 relative z-10 animate-slide-up">
            <div class="text-center">
                <!-- Premium Breadcrumb -->
                <div class="flex items-center justify-center gap-3 mb-8">
                    <a href="<?php echo e(route('home')); ?>" class="text-gray-600 dark:text-gray-400 hover:text-gold-600 dark:hover:text-gold-500 transition-colors flex items-center gap-2 group">
                        <i class="fas fa-home text-sm"></i>
                        <span><?php echo e(t('home')); ?></span>
                    </a>
                    <span class="text-gray-300 dark:text-gray-600"><i class="fas fa-chevron-right text-xs"></i></span>
                    <a href="<?php echo e(route('blogs')); ?>" class="text-gray-600 dark:text-gray-400 hover:text-gold-600 dark:hover:text-gold-500 transition-colors flex items-center gap-2 group">
                        <i class="fas fa-newspaper text-sm"></i>
                        <span><?php echo e(t('blog')); ?></span>
                    </a>
                    <span class="text-gray-300 dark:text-gray-600"><i class="fas fa-chevron-right text-xs"></i></span>
                    <span class="text-gray-900 dark:text-white font-medium flex items-center gap-2">
                        <span class="truncate max-w-xs"><?php echo e(Str::limit($post->title, 30)); ?></span>
                        <div class="w-2 h-2 bg-gold-500 rounded-full animate-pulse"></div>
                    </span>
                </div>

                <!-- Premium Category Badge -->
                <?php if($post->category): ?>
                    <div class="inline-flex items-center gap-3 px-6 py-3 bg-gradient-to-r from-gold-500/10 to-gold-300/10 dark:from-gold-500/20 dark:to-gold-300/5 border border-gold-500/30 dark:border-gold-500/40 rounded-full mb-8 backdrop-blur-sm group hover:border-gold-500 transition-all duration-300">
                        <div class="w-2 h-2 bg-gradient-to-r from-gold-500 to-gold-300 rounded-full animate-pulse"></div>
                        <span class="text-sm font-semibold text-gold-600 dark:text-gold-400 group-hover:scale-105 transition-transform">
                            <?php echo e($post->category->name); ?>

                        </span>
                        <svg class="w-4 h-4 text-gold-500 opacity-0 group-hover:opacity-100 transition-opacity" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
                        </svg>
                    </div>
                <?php endif; ?>

                <!-- Premium Title -->
                <h1 class="text-5xl lg:text-6xl font-bold mb-8">
                    <span class="block text-gray-900 dark:text-white leading-tight"><?php echo e($post->title); ?></span>
                    <span class="block bg-gradient-to-r from-gold-500 via-gold-400 to-gold-500 bg-clip-text text-transparent animate-gradient-x mt-4 text-2xl">
                        Security Insights
                    </span>
                </h1>

                <!-- Premium Meta Info -->
                <div class="flex flex-wrap items-center justify-center gap-6 mb-8">
                    <div class="flex items-center gap-3 group">
                        <div class="w-12 h-12 rounded-full bg-gradient-to-br from-gold-500/20 to-gold-300/20 dark:from-gold-500/10 dark:to-gold-300/5 flex items-center justify-center group-hover:scale-110 transition-transform duration-300">
                            <?php if($post->author): ?>
                                <span class="font-bold text-gold-600 dark:text-gold-400 text-lg">
                                    <?php echo e(substr($post->author->name, 0, 1)); ?>

                                </span>
                            <?php endif; ?>
                        </div>
                        <div>
                            <div class="font-semibold text-gray-900 dark:text-white">
                                <?php if($post->author): ?>
                                    <?php echo e($post->author->name); ?>

                                <?php else: ?>
                                    <?php echo e(t('unknown_author')); ?>

                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    
                    <div class="flex items-center gap-6 text-gray-600 dark:text-gray-400">
                        <div class="flex items-center gap-2 group">
                            <i class="fas fa-calendar text-gold-500"></i>
                            <span class="group-hover:text-gold-600 dark:group-hover:text-gold-500 transition-colors"><?php echo e($post->published_at->format('F j, Y')); ?></span>
                        </div>
                        <div class="flex items-center gap-2 group">
                            <i class="fas fa-clock text-gold-500"></i>
                            <span class="group-hover:text-gold-600 dark:group-hover:text-gold-500 transition-colors"><?php echo e($post->read_time); ?> <?php echo e(t('min_read')); ?></span>
                        </div>
                        <div class="flex items-center gap-2 group">
                            <i class="fas fa-eye text-gold-500"></i>
                            <span class="group-hover:text-gold-600 dark:group-hover:text-gold-500 transition-colors"><?php echo e($post->views); ?> <?php echo e(t('views')); ?></span>
                        </div>
                    </div>
                </div>

                <!-- Premium Featured Image -->
                <?php if($post->featured_image): ?>
                    <div class="relative rounded-3xl overflow-hidden border-8 border-transparent bg-gradient-to-br from-gold-500 via-gold-400 to-gold-500 p-1 animate-gradient-x mb-8">
                        <div class="w-full h-full rounded-2xl overflow-hidden">
                            <img src="<?php echo e(asset($post->featured_image)); ?>" 
                                 alt="<?php echo e($post->title); ?>"
                                 class="w-full h-auto object-cover transform hover:scale-105 transition-transform duration-700">
                        </div>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </section>

    <!-- CONTENT SECTION -->
    <section class="py-12 bg-gradient-to-b from-transparent via-gold-50/20 to-transparent dark:from-transparent dark:via-gold-900/5 dark:to-transparent">
        <div class="max-w-6xl mx-auto px-6">
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-12">
                <!-- Main Content -->
                <div class="lg:col-span-2">
                    <!-- Premium Article Content -->
                    <article class="prose prose-lg dark:prose-invert max-w-none animate-slide-up">
                        <?php echo $post->content; ?>

                    </article>

                    <!-- Premium Share Buttons -->
                    <div class="mt-12 pt-8 border-t border-gray-100 dark:border-gray-700 animate-slide-up animation-delay-200">
                        <h3 class="text-lg font-semibold text-gray-900 dark:text-white mb-6 flex items-center gap-2">
                            <i class="fas fa-share-alt text-gold-500"></i>
                            <?php echo e(t('share_this_post')); ?>

                        </h3>
                        <div class="flex gap-3">
                            <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(url()->current()); ?>"
                               target="_blank"
                               class="w-12 h-12 bg-gradient-to-r from-blue-600 to-blue-500 text-white rounded-xl flex items-center justify-center hover:shadow-lg hover:shadow-blue-500/30 transition-all duration-300 transform hover:-translate-y-1">
                                <i class="fab fa-facebook-f text-lg"></i>
                            </a>
                            <a href="https://twitter.com/intent/tweet?url=<?php echo e(url()->current()); ?>&text=<?php echo e(urlencode($post->title)); ?>"
                               target="_blank"
                               class="w-12 h-12 bg-gradient-to-r from-sky-500 to-sky-400 text-white rounded-xl flex items-center justify-center hover:shadow-lg hover:shadow-sky-500/30 transition-all duration-300 transform hover:-translate-y-1">
                                <i class="fab fa-twitter text-lg"></i>
                            </a>
                            <a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo e(url()->current()); ?>&title=<?php echo e(urlencode($post->title)); ?>"
                               target="_blank"
                               class="w-12 h-12 bg-gradient-to-r from-blue-700 to-blue-600 text-white rounded-xl flex items-center justify-center hover:shadow-lg hover:shadow-blue-700/30 transition-all duration-300 transform hover:-translate-y-1">
                                <i class="fab fa-linkedin-in text-lg"></i>
                            </a>
                            <button onclick="copyToClipboard('<?php echo e(url()->current()); ?>')"
                                    class="w-12 h-12 bg-gradient-to-r from-gray-600 to-gray-500 text-white rounded-xl flex items-center justify-center hover:shadow-lg hover:shadow-gray-600/30 transition-all duration-300 transform hover:-translate-y-1 group"
                                    title="<?php echo e(t('copy_link')); ?>">
                                <i class="fas fa-link text-lg"></i>
                                <span class="absolute -top-8 left-1/2 transform -translate-x-1/2 bg-gray-800 text-white text-xs px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap">
                                    <?php echo e(t('copy_link')); ?>

                                </span>
                            </button>
                        </div>
                    </div>
                    
                </div>

                <!-- Premium Sidebar -->
                <div class="lg:col-span-1">
                    <!-- Related Posts -->
                    <?php if($relatedPosts->count() > 0): ?>
                        <div class="bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm rounded-2xl border border-gray-100 dark:border-gray-700 p-6 mb-8 animate-slide-up animation-delay-300">
                            <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-6 flex items-center gap-2">
                                <i class="fas fa-newspaper text-gold-500"></i>
                                <?php echo e(t('related_posts')); ?>

                            </h3>
                            <div class="space-y-6">
                                <?php $__currentLoopData = $relatedPosts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $relatedPost): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <a href="<?php echo e(route('blog.show', $relatedPost->slug)); ?>" class="flex gap-4 group animate-fade-in" style="animation-delay: <?php echo e($loop->index * 100); ?>ms">
                                        <div class="w-20 h-20 rounded-xl overflow-hidden flex-shrink-0">
                                            <?php if($relatedPost->featured_image): ?>
                                                <img src="<?php echo e(asset($relatedPost->featured_image)); ?>"
                                                     alt="<?php echo e($relatedPost->title); ?>"
                                                     class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300">
                                            <?php else: ?>
                                                <div class="w-full h-full bg-gradient-to-br from-gray-100 to-gray-200 dark:from-gray-700 dark:to-gray-600 flex items-center justify-center">
                                                    <i class="fas fa-newspaper text-gray-400 dark:text-gray-500"></i>
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                        <div>
                                            <h4 class="font-semibold text-gray-900 dark:text-white group-hover:text-gold-600 dark:group-hover:text-gold-500 transition-colors duration-200 line-clamp-2 mb-2">
                                                <?php echo e(Str::limit($relatedPost->title, 50)); ?>

                                            </h4>
                                            <div class="flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400">
                                                <span><?php echo e($relatedPost->published_at->format('M j')); ?></span>
                                                <span>•</span>
                                                <span><?php echo e($relatedPost->read_time); ?> min</span>
                                            </div>
                                        </div>
                                    </a>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    <?php endif; ?>

                    <!-- Premium Categories -->
                    <div class="bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm rounded-2xl border border-gray-100 dark:border-gray-700 p-6 mb-8 animate-slide-up animation-delay-400">
                        <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-6 flex items-center gap-2">
                            <i class="fas fa-tags text-gold-500"></i>
                            <?php echo e(t('categories_title')); ?>

                        </h3>
                        <div class="space-y-3">
                            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <a href="<?php echo e(route('blogs', ['category' => $category->slug])); ?>" 
                                   class="flex items-center justify-between p-3 rounded-xl hover:bg-gradient-to-r hover:from-gold-500/10 hover:to-transparent dark:hover:from-gold-500/5 dark:hover:to-transparent transition-all duration-300 group animate-fade-in" 
                                   style="animation-delay: <?php echo e($loop->index * 100); ?>ms">
                                    <div class="flex items-center gap-3">
                                        <div class="w-8 h-8 rounded-lg flex items-center justify-center" style="background-color: <?php echo e($category->color); ?>20;">
                                            <i class="fas fa-folder text-xs" style="color: <?php echo e($category->color); ?>;"></i>
                                        </div>
                                        <span class="font-medium text-gray-700 dark:text-gray-300 group-hover:text-gold-600 dark:group-hover:text-gold-500">
                                            <?php echo e($category->name); ?>

                                        </span>
                                    </div>
                                    <span class="px-2 py-1 bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-400 text-sm rounded-full">
                                        <?php echo e($category->posts_count); ?>

                                    </span>
                                </a>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </section>

    <!-- Custom Styles -->
    <style>
        /* Prose Content Styling */
        .prose {
            color: #374151;
        }
        .prose p {
            margin-bottom: 1.5em;
            line-height: 1.8;
            font-size: 1.125rem;
        }
        .prose h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-top: 2.5em;
            margin-bottom: 1em;
            color: #111827;
            position: relative;
            padding-left: 1rem;
        }
        .prose h2:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.2em;
            width: 4px;
            height: 1.2em;
            background: linear-gradient(to bottom, #facc15, #eab308);
            border-radius: 2px;
        }
        .prose h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-top: 2em;
            margin-bottom: 1em;
            color: #1f2937;
        }
        .prose img {
            border-radius: 1rem;
            margin: 2.5em 0;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .prose ul, .prose ol {
            margin-bottom: 1.5em;
            padding-left: 1.5em;
        }
        .prose li {
            margin-bottom: 0.75em;
            position: relative;
        }
        .prose ul li:before {
            content: '•';
            color: #facc15;
            font-weight: bold;
            position: absolute;
            left: -1em;
        }
        .prose blockquote {
            border-left: 4px solid #facc15;
            padding-left: 1.5em;
            font-style: italic;
            margin: 2.5em 0;
            color: #4b5563;
            background: linear-gradient(to right, #fefce8, transparent);
            padding: 1.5em;
            border-radius: 0.5rem;
        }
        .prose pre {
            background-color: #1f2937;
            color: #f3f4f6;
            padding: 1.5em;
            border-radius: 0.75rem;
            overflow-x: auto;
            margin: 2.5em 0;
            border: 1px solid #374151;
        }
        .prose code {
            background-color: #fefce8;
            padding: 0.2em 0.4em;
            border-radius: 0.25rem;
            font-size: 0.875em;
            color: #ca8a04;
            border: 1px solid #fde047;
        }
        .prose a {
            color: #ca8a04;
            text-decoration: none;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }
        .prose a:hover {
            color: #a16207;
            border-bottom-color: #facc15;
        }

        /* Dark Mode Prose */
        .dark .prose {
            color: #d1d5db;
        }
        .dark .prose h2 {
            color: #f3f4f6;
        }
        .dark .prose h3 {
            color: #e5e7eb;
        }
        .dark .prose blockquote {
            background: linear-gradient(to right, rgba(254, 252, 232, 0.1), transparent);
            color: #9ca3af;
        }
        .dark .prose code {
            background-color: rgba(254, 252, 232, 0.1);
            color: #facc15;
            border: 1px solid rgba(250, 204, 21, 0.3);
        }
        .dark .prose a {
            color: #facc15;
        }
        .dark .prose a:hover {
            color: #fef08a;
            border-bottom-color: #fef08a;
        }

        /* Custom Animations */
        @keyframes pulse-gold {
            0%, 100% {
                opacity: 0.7;
            }
            50% {
                opacity: 0.4;
            }
        }

        @keyframes gradient-x {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }

        .animate-pulse-gold {
            animation: pulse-gold 3s ease-in-out infinite;
        }

        .animate-gradient-x {
            background-size: 200% auto;
            animation: gradient-x 3s ease infinite;
        }

        .animate-slide-up {
            animation: slideUp 0.6s ease-out forwards;
            opacity: 0;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in {
            animation: fadeIn 0.8s ease-out forwards;
            opacity: 0;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .animation-delay-200 {
            animation-delay: 200ms;
        }

        .animation-delay-300 {
            animation-delay: 300ms;
        }

        .animation-delay-400 {
            animation-delay: 400ms;
        }

        .animation-delay-500 {
            animation-delay: 500ms;
        }

        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
    </style>

    <script>
        function copyToClipboard(text) {
            navigator.clipboard.writeText(text).then(() => {
                showToast('<?php echo e(t("link_copied")); ?>', 'success');
            });
        }

        function showToast(message, type = 'success') {
            const toast = document.createElement('div');
            toast.className = `fixed bottom-6 right-6 px-6 py-3 rounded-xl shadow-xl z-50 transform transition-all duration-300 backdrop-blur-sm ${type === 'success' ? 'bg-gradient-to-r from-green-500/90 to-green-600/90 border border-green-400/30 text-white' : 'bg-gradient-to-r from-red-500/90 to-red-600/90 border border-red-400/30 text-white'}`;
            toast.innerHTML = `
                <div class="flex items-center gap-3">
                    <i class="fas ${type === 'success' ? 'fa-check-circle' : 'fa-exclamation-circle'}"></i>
                    <span>${message}</span>
                </div>
            `;
            
            document.body.appendChild(toast);
            
            setTimeout(() => {
                toast.style.opacity = '0';
                toast.style.transform = 'translateY(10px)';
                setTimeout(() => toast.remove(), 300);
            }, 3000);
        }
        
        // Add animation to images on load
        document.addEventListener('DOMContentLoaded', () => {
            const images = document.querySelectorAll('.prose img');
            images.forEach((img, index) => {
                img.classList.add('animate-fade-in');
                img.style.animationDelay = `${index * 100}ms`;
            });
        });
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\crm_new\resources\views/frontend/blog-single-view.blade.php ENDPATH**/ ?>