
@layer utilities {
    .clip-path-star {
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }
    
    /* Optimize touch targets for mobile */
    @media (max-width: 640px) {
        .touch-target {
            min-height: 44px;
            min-width: 44px;
        }
    }
    
    /* Prevent content shift on mobile */
    .height-transition {
        transition-property: height, opacity, transform;
        transition-duration: 0.3s;
        transition-timing-function: ease-in-out;
    }
    
    .hero-bg {
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
    
    @media (max-width: 768px) {
        .hero-bg {
            background-attachment: scroll;
        }
    }
    
    .content-image {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .sidebar-sticky {
        position: sticky;
        top: 2rem;
        height: fit-content;
    }
    
    .prose-custom h2 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        margin-top: 3rem;
        line-height: 1.3;
    }
    
    .prose-custom p {
        margin-bottom: 1.5rem;
        line-height: 1.7;
        color: #ccc;
    }
    
    .prose-custom h2:first-child {
        margin-top: 0;
    }
}

/* Additional styles to ensure mobile compatibility */
input, button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Better scrolling on mobile */
* {
    -webkit-overflow-scrolling: touch;
}

/* Blog detail view styles */
.blog-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 1000;
    overflow-y: auto;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.blog-detail-view.active {
    transform: translateY(0);
    opacity: 1;
}

