/* Bluesky Posts Plugin Styles */

/* Wrapper */
.bluesky-posts-wrapper {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Individual post */
.bluesky-post {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

.bluesky-post:last-child {
    border-bottom: none;
}

.bluesky-post:hover {
    background: #f9fafb;
}

/* Avatar */
.bluesky-post-avatar {
    flex-shrink: 0;
    margin-right: 12px;
}

.bluesky-post-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Content area */
.bluesky-post-content {
    flex: 1;
    min-width: 0;
}

/* Author info */
.bluesky-post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.bluesky-post-author strong {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
}

.bluesky-post-handle {
    color: #6b7280;
    font-size: 14px;
}

/* Post text */
.bluesky-post-text {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.bluesky-post-text a {
    color: #3b82f6;
    text-decoration: none;
}

.bluesky-post-text a:hover {
    text-decoration: underline;
}

/* Date */
.bluesky-post-date {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.bluesky-post-date a {
    color: #6b7280;
    text-decoration: none;
}

.bluesky-post-date a:hover {
    text-decoration: underline;
}

/* Stats */
.bluesky-post-stats {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.bluesky-post-likes,
.bluesky-post-reposts {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Error state */
.bluesky-posts-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    color: #dc2626;
    margin: 20px 0;
}

/* Empty state */
.bluesky-posts-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    color: #64748b;
    margin: 20px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    .bluesky-posts-wrapper {
        margin: 10px;
    }
    
    .bluesky-post {
        padding: 12px;
    }
    
    .bluesky-post-avatar img {
        width: 40px;
        height: 40px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bluesky-post {
        background: #1f2937;
        border-bottom-color: #374151;
    }
    
    .bluesky-post:hover {
        background: #111827;
    }
    
    .bluesky-post-author strong {
        color: #f9fafb;
    }
    
    .bluesky-post-handle {
        color: #9ca3af;
    }
    
    .bluesky-post-text {
        color: #e5e7eb;
    }
    
    .bluesky-post-text a {
        color: #60a5fa;
    }
    
    .bluesky-post-date,
    .bluesky-post-date a {
        color: #9ca3af;
    }
    
    .bluesky-post-stats {
        color: #9ca3af;
    }
}

/* Print styles */
@media print {
    .bluesky-posts-wrapper {
        max-width: 100%;
    }
    
    .bluesky-post {
        break-inside: avoid;
    }
    
    .bluesky-post a {
        color: #000;
    }
}
