/* ============================================================
   Global YouTube SEO & Thumbnail Toolkit – Custom Styles
   ============================================================ */

/* ---- Scrollbar ---- */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- Fade-in animation ---- */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* ---- Toast pop-up ---- */
.animate-fade-up {
    animation: fadeUp 0.3s ease-out, fadeOut 0.3s ease-in 1.6s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 16px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

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

/* ---- Hover lift effect on cards ---- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ---- Input focus glow ---- */
input[type="url"]:focus {
    outline: none;
}

/* ---- Smooth section transitions ---- */
section {
    transition: opacity 0.4s ease;
}

/* ---- Responsive thumbnail overlay ---- */
@media (max-width: 640px) {
    .group .absolute {
        opacity: 1 !important;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
        align-items: flex-end !important;
        padding-bottom: 0.75rem;
    }
}

/* ---- Pulse animation for loading ---- */
.pulse-slow {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- Tag hover glow ---- */
#tagsContainer span:hover {
    box-shadow: 0 0 12px rgba(255, 0, 51, 0.15);
}

/* ---- Print styles ---- */
@media print {
    header, footer, .adsbygoogle, button { display: none !important; }
    body { background: white; color: black; }
}
