/* ========================================
   User Activity History Styles
   ======================================== */

/* Container */
.blog-tools-activity-history {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Tab Menu - Reuse from user posts manager */
.blog-tools-activity-history .blog-tools-tab-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.blog-tools-activity-history .blog-tools-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.blog-tools-activity-history .blog-tools-tab-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.02);
}

.blog-tools-activity-history .blog-tools-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.blog-tools-activity-history .blog-tools-tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.blog-tools-activity-history .blog-tools-tab-content {
    position: relative;
}

.blog-tools-activity-history .blog-tools-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.blog-tools-activity-history .blog-tools-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.activity-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.activity-loading i {
    font-size: 20px;
}

/* Empty State */
.activity-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.activity-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.activity-empty p {
    font-size: 16px;
    margin: 0;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Activity Item */
.activity-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.activity-link {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.activity-thumbnail-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}

.activity-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 32px;
}

/* Activity Details */
.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.activity-excerpt {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* Rating List Specific */
.rating-list .activity-item {
    padding: 20px;
}

.rating-list .activity-link {
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 24px;
}

.rating-stars .fa-star.filled {
    color: #ffc107;
}

.rating-stars .fa-star {
    color: #e0e0e0;
}

.rating-list .activity-title {
    font-size: 16px;
}

/* Comment List Specific */
.comment-list .activity-item {
    padding: 0;
}

.comment-wrapper {
    display: flex;
    flex-direction: column;
}

.comment-main {
    flex: 1;
}

.comment-main .activity-link {
    padding: 16px;
}

.comment-content {
    flex: 1;
}

.comment-reply-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #667eea;
}

.comment-reply-indicator i {
    font-size: 14px;
}

.comment-text {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-post-title {
    font-size: 13px;
    color: #666;
}

.comment-post-title strong {
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

/* Toggle Replies Button */
.toggle-replies {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: none;
    border-top: 1px solid #e0e0e0;
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.toggle-replies:hover {
    background: #ebebeb;
}

.toggle-replies i {
    transition: transform 0.3s ease;
}

.toggle-replies.active i {
    transform: rotate(180deg);
}

/* Comment Replies */
.comment-replies {
    padding: 16px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.reply-item {
    padding: 12px;
    background: #fff;
    border-left: 3px solid #667eea;
    margin-bottom: 8px;
    border-radius: 4px;
}

.reply-item:last-child {
    margin-bottom: 0;
}

.reply-author {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 6px;
}

.reply-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .blog-tools-activity-history {
        padding: 15px;
    }

    .blog-tools-activity-history .blog-tools-tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .blog-tools-activity-history .blog-tools-tab-btn span {
        display: none;
    }

    .blog-tools-activity-history .blog-tools-tab-btn i {
        font-size: 18px;
    }

    .activity-thumbnail-wrap {
        width: 80px;
        height: 60px;
    }

    .activity-title {
        font-size: 16px;
    }

    .activity-excerpt {
        font-size: 13px;
    }

    .activity-link {
        gap: 12px;
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .activity-thumbnail-wrap {
        width: 60px;
        height: 45px;
    }

    .activity-title {
        font-size: 14px;
    }

    .activity-excerpt {
        display: none;
    }
}

