/* assets/css/app.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Utilities */
.text-balance {
    text-wrap: balance;
}

.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


@media (max-width: 480px) {
    .horizontal-scrol {
        max-width: 300px;
    }
}

/* Prevent image saving on mobile */
img[oncontextmenu] {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent long-press menu on images */
@media (pointer: coarse) {
    img[oncontextmenu] {
        -webkit-touch-callout: none !important;
        pointer-events: auto !important;
    }
}

/*Upload CSS Add to your main CSS file */

#fobamiUploadProgress {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#fobamiUploadFill {
    transition: width 0.3s ease-out, background 0.5s ease;
}

@keyframes uploadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fa-cloud-upload-alt.animate-pulse {
    animation: uploadPulse 1.5s ease-in-out infinite;
}


/* ============ POST MUSIC PLAYER STYLES ============ */
.post-music-player {
    position: relative;
    overflow: hidden;
}

.post-music-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: musicShimmer 3s infinite;
}

@keyframes musicShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Music bar animation */
.music-bar-anim {
    animation: musicBarPulse 0.8s ease-in-out infinite;
    min-height: 4px;
}

@keyframes musicBarPulse {
    0%, 100% { 
        height: 30%; 
        opacity: 0.7;
    }
    50% { 
        height: 100%; 
        opacity: 1;
    }
}

/* Playing state CSS*/

.music-play-btn[data-playing="true"] {
    animation: musicPlayPulse 2s ease-in-out infinite;
}

@keyframes musicPlayPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

/* Hover effect on music card */
.post-music-player:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.post-music-player:hover .music-bar-anim {
    animation-duration: 0.4s;
}


/* 2026 — ROYAL SHIMMER LOADING */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
.shimmer-dark {
    background: linear-gradient(90deg, 
        #111 0%, 
        #222 50%, 
        #111 100%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
}


@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}
.animate-heartbeat {
    animation: heartbeat 0.6s ease-in-out;
}

.animate-slideup {
    animation: slideup 0.4s ease-out;
}
@keyframes slideup {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}