/* Raconteur Custom Styles */

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Track list styling */
#track-list .panel-block {
    cursor: pointer;
    border-left: 3px solid transparent;
}

#track-list .panel-block:hover {
    background-color: #f5f5f5;
    border-left-color: #3273dc;
}

#track-list .panel-block.is-active {
    background-color: #3273dc;
    color: white;
    border-left-color: #2366d1;
}

#track-list .panel-block.is-active .tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Audio player styling */
audio {
    width: 100%;
    margin: 1rem 0;
}

/* Progress bar */
.progress {
    height: 0.5rem;
}

/* Online status indicator */
#online-status {
    font-weight: bold;
}

/* Loading states */
.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .navbar-menu {
        display: flex !important;
    }
    
    .image.is-128x128 {
        width: 96px;
        height: 96px;
    }
}

/* PWA install prompt */
.install-prompt {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 300px;
}

/* Offline indicator */
.offline-badge {
    position: fixed;
    top: 60px;
    right: 1rem;
    z-index: 999;
}

/* Collapsible section headers */
.box > div[style*="cursor: pointer"]:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.5rem;
}

/* Smooth collapse animation */
#audiobook-selection-content,
#track-list-container-content {
    transition: all 0.3s ease;
}

/* Filter bar styling */
#audiobook-filter {
    font-size: 1rem;
}

#audiobook-filter:focus {
    border-color: #3273dc;
    box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
}

#filter-clear {
    cursor: pointer;
    opacity: 0.6;
}

#filter-clear:hover {
    opacity: 1;
}

#filter-results {
    color: #7a7a7a;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Audiobook list spacing */
#audiobook-list {
    margin-top: 0.5rem;
}

#audiobook-list .button {
    margin: 0.25rem;
}

/* Author group styling */
.author-group {
    margin-bottom: 1rem;
}

.author-header {
    transition: background-color 0.2s ease;
}

.author-header:hover {
    background-color: #e8e8e8 !important;
}

.author-books {
    transition: all 0.3s ease;
}

/* Audiobook card styling */
.audiobook-card {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.audiobook-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.audiobook-card .media {
    align-items: center;
}

.audiobook-card .media-left {
    margin-right: 1rem;
}

.audiobook-card .image img {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Action buttons - ensure good touch targets for mobile */
.audiobook-card .media-right .button {
    min-width: 44px;
    min-height: 44px;
}

.audiobook-card .media-right .buttons.has-addons .button {
    border-radius: 4px;
}

.audiobook-card .media-right .buttons.has-addons .button:not(:last-child) {
    margin-right: 0.5rem;
}

.audiobook-card.has-background-light {
    background-color: #f5f5f5 !important;
    border-left-color: #dbdbdb;
}

.audiobook-card.has-background-info {
    background-color: #eff5fb !important;
    border-left-color: #3273dc;
}

.audiobook-card.has-background-success {
    background-color: #effaf3 !important;
    border-left-color: #48c774;
}

.audiobook-card.has-background-primary {
    background-color: #eff1fa !important;
    border-left-color: #3273dc;
    box-shadow: 0 2px 4px rgba(50, 115, 220, 0.2);
}

/* Progress bar in cards */
.audiobook-card .progress {
    height: 0.5rem;
    margin-top: 0.5rem;
}

/* Expand/collapse buttons */
.buttons.are-small {
    margin-bottom: 0;
}

.buttons.are-small .button {
    font-size: 0.75rem;
}
