/* Variáveis de cores */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0055aa;
    --secondary-color: #333;
    --background-light: #f8f9fa;
    --border-color: #ddd;
    --text-color: #333;
    --text-light: #666;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --focus-color: #0095f6;
}

/* Layout principal */
.main-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Coluna principal */
.feed-column {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.feed-filters {
    margin-bottom: 20px;
}

.feed-filters h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-light);
}

/* Feed de entradas */
.feed-entries {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feed-card {
    background-color: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow-color);
    animation: fadeIn 0.5s ease forwards;
}

.feed-card:nth-child(n+2) {
    animation-delay: calc(0.1s * (n - 1));
}

.feed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.author-info {
    display: flex;
    align-items: center;
}

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

.author-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.post-date {
    font-size: 12px;
    color: var(--text-light);
}

.options-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
}

/* Imagem do feed */
.feed-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    overflow: hidden;
}

.feed-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Conteúdo do feed */
.feed-card-content {
    padding: 12px 16px;
}

.feed-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-color);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.action-btn:hover {
    color: var(--text-light);
}

.feed-likes {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.feed-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feed-excerpt {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.feed-comments {
    margin-bottom: 12px;
    font-size: 14px;
}

.view-comments {
    display: block;
    color: var(--text-light);
    margin-top: 4px;
    font-size: 14px;
}

.btn-read-more {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

/* Adicionar comentário */
.add-comment {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
}

.add-comment input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
}

.add-comment button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.add-comment button:hover {
    opacity: 1;
}

/* Barra lateral */
.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.sidebar-user-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.sidebar-user-info p {
    color: var(--text-light);
    font-size: 14px;
}

.sidebar-link {
    margin: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Sugestões */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: center;
}

.suggestion-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.suggestion-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.suggestion-info p {
    color: var(--text-light);
    font-size: 12px;
}

.follow-btn {
    margin: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    background-color: var(--background-light);
    color: var(--text-color);
    font-weight: 500;
    box-shadow: 0 1px 3px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: var(--background-color);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsividade */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .feed-column {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .feed-card {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }

    .feed-entries {
        gap: 0;
    }
}