/* BlueSky Feed Styles */
/* Using the Voices Ignited color palette */

.bluesky-feed-section {
    padding: 50px 0;
    background: rgb(69, 14, 129);
    color: white;
    overflow-x: hidden;
}

.bluesky-feed-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

#bluesky-feed {
    background: rgb(60, 10, 110);
    border-radius: 12px;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

.loading-container {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #C6953B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.posts-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 0 30px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    width: 100%;
    margin: 0 auto;
}

.posts-container::-webkit-scrollbar {
    height: 8px;
}

.posts-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.posts-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.post {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease;
    width: 300px;
    height: 300px;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin-right: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.display-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}

.handle, .date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.post-content {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
}

.post-content p {
    margin-bottom: 10px;
}

.post-content a {
    color: #C6953B;
    text-decoration: none;
}

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

.post-images {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-images img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 150px;
    transition: transform 0.3s ease;
}

.post-images img:hover {
    transform: scale(1.02);
}

.post-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.view-post {
    color: #C6953B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-post:hover {
    text-decoration: underline;
}

.error-container {
    text-align: center;
    padding: 40px 0;
}

.feed-title {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-title i {
    margin-right: 10px;
    color: #C6953B;
}

.view-all-link {
    margin-left: 15px;
    font-size: 14px;
    color: #C6953B;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Scroll Arrows */
.scroll-arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 10px;
    z-index: 10;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(63, 42, 86, 0.8);
    border: 2px solid #C6953B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-arrow:hover {
    background-color: #C6953B;
    transform: scale(1.1);
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .posts-container {
        padding-bottom: 20px;
    }
    
    .post {
        width: 280px;
        min-width: 280px;
        height: 280px;
    }
}

@media (max-width: 576px) {
    .post {
        width: 260px;
        min-width: 260px;
        height: 260px;
    }
    
    .feed-title {
        font-size: 20px;
    }
}
