/**
 * Admin Audio Player Styles
 */

/* Player Container */
.accessibility-audio-tts-container {
    background: #ffffff;
    border-radius: 30px;
    padding: 0.4rem 0.7rem 0.4rem 0.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    flex-wrap: nowrap;
}

/* Play Button */
.aat-play-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: transform 0.2s;
}

.aat-play-button:hover,
.aat-play-button:focus {
    transform: scale(1.05);
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Timeline */
.aat-timeline-container {
    flex: 1;
    min-width: 0;
}

.aat-timeline {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.aat-timeline:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.aat-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #000;
    width: 0%;
}

/* Time Display */
.aat-time {
    font-size: 12px;
    color: #666;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Volume Controls */
.aat-volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.aat-volume-button {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s;
}

.aat-volume-button:hover,
.aat-volume-button:focus {
    transform: scale(1.1);
}

.aat-volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.aat-volume-slider:focus {
    transform: scale(1.05);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.aat-volume-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #000;
    width: 100%;
}

/* Delete Button */
.aat-delete-button {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #6b7280;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s;
}

.aat-delete-button:hover,
.aat-delete-button:focus {
    transform: scale(1.05);
    color: #d63638;
}

/* Post Info */
.accessibility-audio-tts-post {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.aat-admin-post-info {
    margin-bottom: 0.8rem;
}

.aat-admin-post-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.aat-admin-post-title a {
    text-decoration: none;
    color: #1a1a1a;
}

.aat-admin-post-title a:hover {
    color: #2271b1;
    text-decoration: underline;
}

.aat-admin-post-meta {
    font-size: 12px;
    color: #757575;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accessibility-audio-tts-container {
        border-radius: 20px;
        padding: 0.3rem 0.6rem 0.3rem 0.3rem;
        gap: 8px;
    }
    
    .aat-play-button {
        width: 36px;
        height: 36px;
    }
    
    .aat-time {
        min-width: 65px;
        font-size: 11px;
    }
    
    .aat-volume-slider {
        width: 45px;
    }
    
    .aat-volume-button,
    .aat-delete-button {
        width: 24px;
        height: 24px;
    }
} 

/* Admin actions container to hold delete button without shrinking */
.accessibility-audio-tts-admin-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.accessibility-audio-tts-admin-actions .aat-delete-button svg {
    display: block;
} 

/* Content Types icons: prevent baseline gap and clipping */
.content-type-tile .flex-shrink-0 {
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.content-type-tile svg {
    display: block;
    overflow: visible;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

/* Enforce icon size in Content Types grid - override Tailwind */
.content-type-tile .w-5,
.content-type-tile .h-5 {
    width: 20px !important;
    height: 20px !important;
}

/* Ensure SVG viewBox is respected */
.content-type-tile svg[viewBox] {
    width: 20px !important;
    height: 20px !important;
}

/* ===== Meta Box Player (narrow sidebar) ===== */
#aat-meta-box-content .accessibility-audio-tts-container {
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
    max-width: 100%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    justify-content: center;
}

#aat-meta-box-content .aat-play-button {
    width: 36px;
    height: 36px;
}

#aat-meta-box-content .aat-play-button svg {
    width: 18px;
    height: 18px;
}

/* Hide only timeline — no space in sidebar */
#aat-meta-box-content .aat-timeline-container {
    display: none;
}

#aat-meta-box-content .aat-time {
    font-size: 12px;
    min-width: auto;
}

#aat-meta-box-content .aat-volume-container {
    gap: 4px;
}

#aat-meta-box-content .aat-volume-button {
    width: 24px;
    height: 24px;
}

#aat-meta-box-content .aat-volume-slider {
    width: 45px;
} 