/**
 * Frontend Styles for Content Time Tracker
 */

/* Tracking Status Indicator */
#ctt-tracker-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(34, 113, 177, 0.9);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#ctt-tracker-status.ctt-tracking {
    background: rgba(40, 167, 69, 0.9);
}

#ctt-tracker-status.ctt-paused {
    background: rgba(255, 193, 7, 0.9);
}

.ctt-time-display {
    font-weight: bold;
    margin-left: 5px;
}

/* E-book Wrapper */
.ctt-ebook-wrapper {
    position: relative;
}

/* Audio Player Enhancements */
.ctt-audio-player {
    width: 100%;
    max-width: 600px;
}

/* Progress Indicator */
.ctt-progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0;
}

.ctt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #50a0d8);
    transition: width 0.3s ease;
}

/* Completion Badge */
.ctt-completion-badge {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 10px;
}

/* Reading Time Display */
.ctt-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}

.ctt-reading-time:before {
    content: "📚";
    font-size: 16px;
}

.ctt-listening-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}

.ctt-listening-time:before {
    content: "🎧";
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    #ctt-tracker-status {
        bottom: 10px;
        right: 10px;
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #ctt-tracker-status {
        background: rgba(34, 113, 177, 0.95);
    }
    
    .ctt-reading-time,
    .ctt-listening-time {
        background: #333;
        color: #ddd;
    }
    
    .ctt-progress-bar {
        background: #444;
    }
}
