/**
 * Custom CSS for DramaTv Theme - Mobile First
 *
 * @package DramaTv
 */

/* Additional custom styles that complement style.css */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Safe area insets for mobile devices */
.mobile-app {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.bottom-nav {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* Touch feedback */
.tab-btn:active,
.nav-item:active,
.search-btn:active {
    opacity: 0.7;
}

/* Series card hover effect */
@media (hover: hover) {
    .series-card:hover {
        transform: translateY(-4px);
        transition: transform 0.3s ease;
    }
}

/* Featured carousel animations */
.carousel-slide {
    animation: fadeIn 0.5s ease;
}

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

/* Custom scrollbar for tabs */
.tabs-wrapper {
    padding-bottom: 4px;
}

/* Responsive text sizes */
@media (max-width: 375px) {
    .app-title {
        font-size: 18px;
    }

    .featured-title {
        font-size: 24px;
    }

    .card-title {
        font-size: 13px;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-medium);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--accent-color) 25%, var(--gray-light) 50%, var(--accent-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-image {
    width: 100%;
    height: 100%;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}
