/* =============================================================
   Feed Me RSS Reader – Frontend-stilar
   ============================================================= */

/* Wrapper */
.feed-me-rss-reader {
	margin: 1em 0;
	font-family: inherit;
}

/* Lista */
.feed-me-rss-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Enskilt inlägg – kortdesign */
.feed-me-rss-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 12px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feed-me-rss-item:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	border-color: #c7d2fe;
}

/* Sidhuvud: titel + datum */
.feed-me-rss-item-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
}

/* Titel */
.feed-me-rss-item-title {
	font-weight: 600;
	font-size: 1rem;
	color: inherit;
	text-decoration: none;
	line-height: 1.4;
	flex: 1 1 auto;
}

.feed-me-rss-item-title:hover,
.feed-me-rss-item-title:focus {
	color: #0073aa;
	text-decoration: underline;
}

/* Datum */
.feed-me-rss-item-date {
	font-size: 0.78rem;
	color: #718096;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Källmärke */
.feed-me-rss-item-source {
	display: inline-block;
	font-size: 0.72rem;
	background: #e8f4fd;
	color: #0073aa;
	border-radius: 3px;
	padding: 2px 7px;
	margin-left: 8px;
	vertical-align: middle;
}

/* Beskrivning */
.feed-me-rss-description {
	font-size: 0.88rem;
	color: #4a5568;
	margin-top: 8px;
	line-height: 1.6;
}

.feed-me-rss-description p:last-child {
	margin-bottom: 0;
}

.feed-me-rss-description a {
	color: #0073aa;
}

/* Felmeddelanden */
.feed-me-rss-error,
.feed-me-rss-empty {
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	padding: 10px 14px;
	margin: 0;
}

.feed-me-rss-empty {
	color: #6c757d;
	background: #f8f9fa;
	border-color: #dee2e6;
}

/* Källfilter (dropdown) */
.feed-me-source-filter {
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.feed-me-source-filter-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #4a5568;
}

.feed-me-source-select {
	font-size: 0.85rem;
	padding: 4px 10px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.feed-me-source-select:focus {
	outline: 2px solid #0073aa;
	outline-offset: 1px;
}

/* Responsiv layout */
@media (max-width: 600px) {
	.feed-me-rss-item {
		padding: 12px 14px;
	}

	.feed-me-rss-item-header {
		flex-direction: column;
		gap: 4px;
	}

	.feed-me-rss-item-date {
		font-size: 0.73rem;
	}
}
