/* Custom styles for AudioCover */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Sync status badges */
.badge-synced {
    background-color: #198754;
}

.badge-pending {
    background-color: #ffc107;
    color: #000;
}

.badge-failed {
    background-color: #dc3545;
}

.badge-not-found {
    background-color: #6c757d;
}

/* Loading spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Book card styles */
.book-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sync button animation */
.btn-sync {
    transition: all 0.3s;
}

.btn-sync:disabled {
    cursor: not-allowed;
}

.btn-sync.syncing {
    animation: pulse 1.5s infinite;
}

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

/* Horizontal scroll book rows */
.book-scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.book-scroll-row::-webkit-scrollbar {
    height: 6px;
}

.book-scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.book-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 3px;
}

.book-scroll-row::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5);
}

.book-scroll-card {
    flex: 0 0 180px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.book-scroll-card .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-scroll-card .card-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Podcast parent/episode grouping */
.podcast-parent-row {
    background-color: rgba(13, 202, 240, 0.05);
}

.podcast-parent-row:hover {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.episode-row {
    background-color: rgba(0, 0, 0, 0.02);
}

.episode-toggle-icon {
    display: inline-block;
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

/* Toast notifications positioning */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}
