/* Feed Loader Styles */

.loading-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Loading more posts indicator */
.loading-more-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-radius: 12px;
    margin: 1rem auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    min-height: 80px;
    float: left;
    clear: both;
}

.loading-more-posts.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.loading-more-posts .loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.75rem;
}

.loading-more-posts p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.025em;
}

.loading-more-posts button:hover {
    background: var(--accent-hover) !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #666;
}

.error-state i {
    font-size: 3rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.retry-btn:hover {
    background: #45a049;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Image Zoom Modal */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.image-zoom-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-zoom-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-zoom-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 10001;
}

.image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Poll Styles (feed) - align with dark theme and poll-display.css */
.poll-container {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.poll-question {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.poll-options {
    margin-bottom: 1rem;
}

.poll-option {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.poll-option:hover {
    border-color: #4CAF50;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.poll-option-text {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.poll-option-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    opacity: 0.15;
    border-radius: 8px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.poll-option-stats,
.poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.poll-footer {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.poll-expired {
    color: #ff4757;
    font-weight: 500;
}
