/* ================= blog.css ================= */
:root {
    --neon-purple: #bf77ff;
    --neon-purple-glow: rgba(191, 119, 255, 0.4);
    --gold-accent: #f59e0b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #2D1B4D;
    border-radius: 4px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes mesh {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.animate-mesh {
    animation: mesh 12s ease infinite;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes breathing {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}
.animate-breathing-glow {
    animation: breathing 5s ease-in-out infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}
.animate-grid-move {
    animation: gridMove 20s linear infinite;
}

@keyframes pulse-node {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; filter: blur(0.5px); }
}
.animate-pulse-node {
    animation: pulse-node 3s infinite ease-in-out;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-rotate-glow {
    animation: rotate-glow 15s linear infinite;
}

@keyframes reverse-spin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
.animate-reverse-spin {
    animation: reverse-spin 10s linear infinite;
}

@keyframes spin-normal {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-normal {
    animation: spin-normal 8s linear infinite;
}

/* Background overlays */
.mesh-gradient {
    background: linear-gradient(-45deg, #050505, #120c24, #260c4d, #050505);
    background-size: 400% 400%;
}

.tech-grid {
    background-image: 
        linear-gradient(rgba(191, 119, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191, 119, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

.data-particles {
    background-image: radial-gradient(circle, rgba(191, 119, 255, 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
}

.neural-glow {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
}

.floating-element {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), transparent);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.15);
}

/* Text Shadows */
.glow-purple {
    text-shadow: 0 0 20px rgba(191, 119, 255, 0.4);
}

.gradient-text-glow {
    background: linear-gradient(to right, #ffffff 40%, #bf77ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(191, 119, 255, 0.3));
}

.text-glow-purple {
    background: linear-gradient(to right, #a855f7, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.35));
}

/* Search Bar Glow */
.search-glow {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(191, 119, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-glow:hover, .search-glow:focus-within {
    border-color: #bf77ff;
    box-shadow: 0 0 25px rgba(191, 119, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(109, 40, 217, 0.25);
}

.badge-glow {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25), inset 0 0 5px rgba(234, 179, 8, 0.15);
}

/* Category Filter Bar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.fade-edge-right {
    position: relative;
}
.fade-edge-right::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, transparent, #050505);
    pointer-events: none;
    z-index: 10;
}

.active-pill {
    box-shadow: 0 0 20px 2px rgba(124, 58, 237, 0.5);
}

.pill-tap-effect:active {
    background-color: rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(4px);
}

/* ================= Sub-blog Article Specific Styles ================= */
.article-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.8;
}

.blockquote-custom {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    /* border: 1px solid rgba(255, 255, 255, 0.08); */
    border-left: 4px solid #bf77ff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
