/* Blogger Page Specific Styles */

.blogger-container {
    max-width: 70%;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.back-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    width: 100px;
}

.back-btn:hover {
    color: var(--accent-color);
}

.header-spacer {
    width: 100px; /* Balance the back button */
}

/* Blogger Info */
.blogger-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
}

.blogger-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
}

.blogger-details h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #fff;
}

.blogger-signature {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogger-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #ccc;
}

.blogger-stats span i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #151515;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.toolbar-left {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.extracted-count-label {
    color: var(--accent-color);
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

.btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333;
    color: #666;
    border-color: #444;
}

/* Video Grid */
.video-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: #444;
}

.video-cover {
    width: 100%;
    aspect-ratio: 9/16; /* Portrait for TikTok style, or 16/9 for landscape */
    background: #000;
    position: relative;
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover .video-cover img {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 14px;
    color: #eee;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px; /* 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.publish-time {
    color: var(--accent-color);
}

.btn-row {
    display: flex;
    gap: 5px;
}

.btn-row .view-btn {
    flex: 1;
    padding: 6px;
    font-size: 11px;
}

.btn-row .ai-btn {
    padding: 6px 8px;
    font-size: 11px;
    white-space: nowrap;
}

.view-btn {
    padding: 8px;
    background: #222;
    border: 1px solid #333;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #333;
    color: white;
}

.extraction-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.status-pending { background: rgba(0,0,0,0.6); color: #ccc; }
.status-extracting { background: rgba(0, 119, 255, 0.8); color: white; }
.status-done { background: rgba(0, 230, 118, 0.8); color: black; }
.status-error { background: rgba(255, 87, 87, 0.8); color: white; }

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #444;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 18px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fetch Progress */
.fetch-progress {
    margin-top: 10px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.progress-fill.indeterminate {
    width: 30%;
    animation: indeterminate 1.5s infinite linear;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

@keyframes indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Batch Progress */
.batch-progress {
    background: #1a1a1a;
    border: 1px solid var(--accent-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
}

.batch-progress .progress-info {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.batch-progress .progress-bar {
    flex: 1;
    margin: 0;
}

#batchCount {
    color: var(--accent-color);
    font-weight: bold;
}

/* Modal tweaks */
.publish-time-badge {
    font-size: 12px;
    background: #333;
    padding: 2px 8px;
    border-radius: 10px;
    color: #aaa;
    margin-left: 10px;
}
