/* Custom Scrollbar for a more integrated, app-like feel */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #233554;
    border-radius: 20px;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: #8892B0;
}

/* Base Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-enter {
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

.toast-leave {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Category Toggle Transition */
.category-toggle[aria-expanded="true"] i.ph-caret-down {
    transform: rotate(180deg);
}

/* High Fidelity Video Placeholders */
.video-placeholder {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #0A192F;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #233554;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: #64FFDA;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(100, 255, 218, 0.1);
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.video-placeholder:hover img {
    opacity: 0.7;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(10, 25, 47, 0.8);
    border: 2px solid #64FFDA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.video-placeholder:hover .video-play-btn {
    background-color: #64FFDA;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i {
    color: #64FFDA;
    font-size: 24px;
    margin-left: 4px; /* Optical center for play icon */
    transition: color 0.3s ease;
}

.video-placeholder:hover .video-play-btn i {
    color: #0A192F;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(10, 25, 47, 0.9);
    color: #E6F1FF;
    font-size: 0.7rem;
    font-family: monospace;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #233554;
    z-index: 10;
}
