/* =========================================================================
   Rocheport Wall — front-end styles
   Palette: clay #c1683c | sage #5b7b6f | border #e6dcc9 | text #3b3129
   ========================================================================= */

/* Containers */
.ww-wall-container,
.ww-feed-container {
	max-width: 680px;
	margin: 0 auto;
	font-family: inherit;
	color: #3b3129;
}

/* -------------------------------------------------------------------------
   Compose form
   ------------------------------------------------------------------------- */
.ww-compose {
	background: #fffaf0;
	border: 1px solid #e6dcc9;
	border-radius: 0.5rem;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.ww-compose-field {
	margin-bottom: 0.75rem;
}

.ww-compose-field--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ww-input,
.ww-textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #e6dcc9;
	border-radius: 0.375rem;
	font-size: 0.9375rem;
	font-family: inherit;
	color: #3b3129;
	background: #fffaf0;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.ww-input:focus,
.ww-textarea:focus {
	outline: none;
	border-color: #9d4f28;
}

.ww-textarea {
	resize: vertical;
	rows: 4;
	min-height: 90px;
}

.ww-label {
	font-size: 0.875rem;
	color: #6f6152;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.ww-file-input {
	font-size: 0.8rem;
}

.ww-submit-btn {
	background-color: #9d4f28;
	color: #fff;
	border: none;
	border-radius: 0.375rem;
	padding: 0.5rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.ww-submit-btn:hover {
	background-color: #7a3d1f;
}

/* -------------------------------------------------------------------------
   Post cards
   ------------------------------------------------------------------------- */
.ww-post-card {
	background: #fffaf0;
	border: 1px solid #e6dcc9;
	border-radius: 0.5rem;
	padding: 1rem;
	margin-bottom: 1rem;
}

.ww-post-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
	color: #6f6152;
}

.ww-author-link {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
	color: #9d4f28;
	font-weight: 600;
}

.ww-author-link:hover {
	text-decoration: underline;
}

.ww-avatar {
	border-radius: 50%;
	width: 32px;
	height: 32px;
	object-fit: cover;
}

.ww-post-date {
	margin-left: auto;
}

.ww-post-title {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: #9d4f28;
}

.ww-post-title a {
	color: inherit;
	text-decoration: none;
}

.ww-post-title a:hover {
	text-decoration: underline;
	color: #4a6459;
}

.ww-post-thumb {
	margin-bottom: 0.75rem;
}

.ww-post-thumb img {
	max-width: 100%;
	border-radius: 0.375rem;
	display: block;
}

.ww-post-excerpt {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #3b3129;
	margin-bottom: 0.75rem;
}

.ww-post-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8rem;
	color: #6f6152;
	border-top: 1px solid #f3ecdd;
	padding-top: 0.5rem;
	margin-top: 0.5rem;
}

.ww-view-link {
	color: #4a6459;
	font-weight: 600;
	text-decoration: none;
}

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

/* -------------------------------------------------------------------------
   Follow button
   ------------------------------------------------------------------------- */
.ww-follow-area {
	margin-bottom: 1.25rem;
}

.ww-follow-form {
	display: inline-block;
	margin: 0;
}

.ww-follow-btn {
	background-color: #9d4f28;
	color: #fff;
	border: none;
	border-radius: 0.375rem;
	padding: 0.5rem 1.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ww-follow-btn:hover {
	background-color: #7a3d1f;
}

.ww-follow-btn.ww-following {
	background-color: #e6dcc9;
	color: #3b3129;
}

.ww-follow-btn.ww-following:hover {
	background-color: #d8cdb8;
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */
.ww-pagination {
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.ww-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	background: #fffaf0;
	border: 1px solid #e6dcc9;
	border-radius: 0.25rem;
	color: #9d4f28;
	font-size: 0.875rem;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ww-pagination a:hover,
.ww-pagination a.ww-page-current {
	background-color: #9d4f28;
	color: #fff;
	border-color: #9d4f28;
}

/* -------------------------------------------------------------------------
   Notices / errors
   ------------------------------------------------------------------------- */
.ww-notice {
	padding: 0.75rem 1rem;
	background: #faf6ee;
	border: 1px solid #e6dcc9;
	border-radius: 0.375rem;
	font-size: 0.9375rem;
	color: #6f6152;
}

.ww-error {
	padding: 0.75rem 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 0.375rem;
	font-size: 0.9375rem;
	color: #dc2626;
	margin-bottom: 1rem;
}

.ww-success {
	padding: 0.75rem 1rem;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 0.375rem;
	font-size: 0.9375rem;
	color: #15803d;
	margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------
   Single wall_post — author row
   ------------------------------------------------------------------------- */
.ww-single-author-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.ww-single-author-row img.avatar {
	border-radius: 50%;
}

.ww-back-link {
	display: inline-block;
	margin-top: 1.5rem;
	color: #9d4f28;
	text-decoration: none;
	font-size: 0.9rem;
}

.ww-back-link:hover {
	text-decoration: underline;
}
