/* Bluesky Feed Styles - Matching site aesthetic */
.bluesky-feed-container {
    width: 100%;
    margin: 10px 0;
}

.bluesky-feed {
    padding: 15px;
}

.bluesky-feed h2 {
    font-family: RubikDistressed, Arial, sans-serif;
    color: var(--text-accent, rgb(0, 128, 145));
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 24px;
    padding: 6px 0;
}

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

/* Row: avatar + bubble side by side */
.feed-post-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Circular profile pic */
.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--text-primary, #493478);
    flex-shrink: 0;
    margin-top: 8px;
    object-fit: cover;
    background-color: #000080;
}

/* Speech bubble */
.feed-post {
    position: relative;
    background-color: var(--panel-base, #f0f0ff);
    padding: 12px;
    border: 2px solid var(--text-primary, #493478);
    border-radius: 8px;
    box-shadow: var(--panel-shadow, 0 0 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
    flex: 1;
    min-width: 0;
}

/* Speech bubble triangle pointing left toward the avatar */
.feed-post::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid var(--text-primary, #493478);
}

.feed-post::after {
    content: '';
    position: absolute;
    top: 17px;
    left: -7px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 8px solid var(--panel-base, #f0f0ff);
}

.feed-post:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(73, 52, 120, 0.2);
}

.post-date {
    display: block;
    font-size: 0.8em;
    color: var(--text-primary, #493478);
    font-style: italic;
    margin-top: 4px;
    opacity: 0.7;
}

.post-content {
    margin: 4px 0;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
}

/* Post body: thumbnail + text side by side */
.post-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.post-body .post-content {
    flex: 1;
    min-width: 0;
}

/* Thumbnail for posts with images */
.post-thumbnail {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--text-primary, #493478);
    flex-shrink: 0;
}

/* Image-only posts: center the thumbnail */
.post-body.image-only {
    justify-content: center;
}

.post-body.image-only .post-thumbnail {
    width: 120px;
    height: 120px;
}

.read-more {
    display: inline-block;
    color: var(--text-primary, #493478);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-top: 8px;
    padding: 4px 8px;
    background-color: rgba(166, 166, 238, 0.25);
    border: 1px solid var(--text-primary, #493478);
    transition: all 0.2s ease;
}

.read-more:hover {
    background-color: var(--text-primary, #493478);
    color: #ccccff;
    text-decoration: none;
}

.feed-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 12px;
}

.follow-link {
    display: inline-block;
    color: #493478;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 16px;
    background-color: #ccccff;
    border: 2px solid #493478;
    border-radius: 0;
    transition: all 0.2s ease;
}

.follow-link:hover {
    background-color: #493478;
    color: #ccccff;
    text-decoration: none;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
    .bluesky-feed {
        padding: 12px;
        margin: 8px 0;
    }

    .bluesky-feed h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .feed-post-row {
        gap: 8px;
    }

    .feed-avatar {
        width: 36px;
        height: 36px;
    }

    .feed-post {
        padding: 10px;
    }

    .post-date {
        font-size: 0.75em;
    }

    .post-thumbnail {
        width: 56px;
        height: 56px;
    }

    .post-content {
        font-size: 13px;
        line-height: 1.4;
    }

    .follow-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Loading state */
.feed-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Error state */
.feed-error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 0;
}

/* Feed note styling */
.feed-note {
    background-color: rgba(166, 166, 238, 0.2) !important;
    font-style: italic;
}

.feed-note::after {
    border-right-color: rgba(166, 166, 238, 0.2) !important;
}

.feed-note .post-content {
    color: var(--text-primary, #493478);
    text-align: center;
}