/* css/publication-feed.css */

/* --- СТИЛИ ДЛЯ ЛЕНТЫ ПУБЛИКАЦИЙ --- */
.publications-feed-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.publications-header {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

.publications-header h2 {
    text-align: center;
    margin: 0;
    color: var(--dark-green);
}

.publications-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f2f2f2;
    flex-shrink: 0;
}

.publications-controls .control-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.publications-controls label {
    font-weight: bold;
    font-size: 14px;
}

.publications-controls select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
}

.post-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #e9ebee;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    margin-bottom: 20px;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.post-author-info {
    flex-grow: 1;
}

.post-author-name {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.post-timestamp {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.post-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.post-badge.bonus {
    background-color: var(--secondary-color);
}

.post-badge.free-gps {
    background-color: #3498db;
}

.post-content {
    padding: 0 15px 15px 15px;
}

.post-text {
    margin-bottom: 10px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.post-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
    margin-top: 10px;
}

.post-image-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    padding: 8px;
    border-top: 1px solid #eee;
}

.action-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #606770;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-button:hover {
    background-color: #f2f2f2;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    font-size: 14px;
    color: #888;
    border-top: 1px solid #eee;
}

.post-comments-section {
    display: none;
    padding: 0 15px 15px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.comment {
    display: flex;
    margin-top: 10px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.comment-content {
    background-color: #f0f2f5;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.comment-author {
    font-weight: bold;
    margin-right: 5px;
}

.comment-input-area {
    display: flex;
    padding: 10px 0;
    margin-top: 10px;
}

.comment-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
}

