@charset "UTF-8";

/* ========================================
   FRESHVIBES EXTENSION STYLES
   ======================================== */

/* ========================================
   CSS VARIABLES & THEME INTEGRATION
   ======================================== */

:root {
	/* Extension-specific variables with fallbacks from base theme */
	--freshvibes-border-radius: var(--border-radius, 0.25rem);
	--freshvibes-transition-duration: 0.2s;
	--freshvibes-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

	/* Color mappings with fallbacks */
	--freshvibes-background-primary: var(--background-color-dark, var(--background-color-light, var(--main-background, var(--frss-background-color, #fff))));
	--freshvibes-background-secondary: var(--background-color-grey, var(--dropdown-bg, var(--background-color-light-shadowed, var(--background-color-middle, var(--frss-background-color-middle, #f6f6f6)))));
	--freshvibes-background-hover: var(--background-color-hover, var(--background-color-dark, var(--light-bg, var(--background-color-light-shadowed, #f0f0f0))));
	--freshvibes-background-active: var(--background-color-dark, var(--accent-bg, var(--frss-background-color-dark, #333)));

	/* Text colors */
	--freshvibes-text-primary: var(--font-color, var(--font-color-middle, var(--text-default, var(--frss-font-color-dark, var(--accent, #111)))));
	--freshvibes-text-secondary: var(--font-color-grey, var(--font-color-middle, var(--text-accent, var(--frss-font-color-grey-dark, #666))));
	--freshvibes-text-light: var(--font-color-light, var(--text-accent, var(--frss-font-color-light, #fff)));

	/* Border colors */
	--freshvibes-border-color: var(--border-color, var(--accent-border, var(--dark-border-color, var(--frss-border-color, #ddd))));
	--freshvibes-border-shadow: var(--border-color-shadow-side, var(--border-elements, var(--dark-border-color, var(--border-color, #ccc))));

	/* Accent colors */
	--freshvibes-accent-primary: var(--contrast-background-color, var(--accent, var(--link-color, var(--font-color-link, #2980b9))));
	--freshvibes-accent-hover: var(--contrast-background-color-hover, var(--highlight, var(--link-color-hover, #0062be)));
	--freshvibes-accent-active: var(--contrast-background-color-active, var(--accent, #0062be));

	/* Special colors */
	--freshvibes-unread-color: var(--unread-article-border-color, var(--border-color-unread, #ff5300));
	--freshvibes-favorite-color: var(--favorite-article-border-color, var(--border-color-favorite, #ffc300));
	--freshvibes-error-color: var(--error-feed-color, var(--font-color-error, var(--frss-font-color-error, var(--red, #bd362f))));
	--freshvibes-error-color-hover: var(--alert-error-border-color, var(--attention-background-color-active, var(--frss-font-color-error, var(--font-color-error, #c9302c))));
	--freshvibes-highlight-background: var(--accent-bg, var(--background-color-hover, #effcfd));

	/* Button colors */
	--freshvibes-button-text: var(--font-color, var(--font-color-grey, var(--frss-font-color-dark, #111)));
	--freshvibes-button-bg: var(--background-color-light, var(--accent-bg, #fff));
	--freshvibes-button-hover: var(--background-color-grey, var(--dropdown-bg, #f0f0f0));
	--freshvibes-button-active: var(--background-color-grey-button-active, var(--background-color-dark, var(--accent-bg, #eee)));
	--freshvibes-button-important-bg: var(--background-color-button-important, var(--contrast-background-color, var(--accent, #5cb85c)));
	--freshvibes-button-important-hover: var(--background-color-button-important-hover, var(--contrast-background-color-hover, var(--accent, #47a447)));
}

/* Animations */
.freshvibes-view[data-animations="enabled"] .freshvibes-tab:hover {
	transform: translateY(-1px);
}

.freshvibes-view[data-animations="enabled"] .freshvibes-container-content li.entry-item {
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.freshvibes-view[data-animations="enabled"] .entry-item:hover {
	transform: scale(1.01);
}

.freshvibes-view[data-animations="enabled"] .freshvibes-container.display-compact .entry-item:hover,
.freshvibes-view[data-animations="enabled"] .freshvibes-container.display-detailed .entry-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--freshvibes-box-shadow);
	z-index: 5;
	/* Ensures the shadow appears above the next item */
}

.freshvibes-view[data-animations="enabled"] .fv-modal-close:hover {
	transform: rotate(90deg);
}

.freshvibes-view[data-animations="enabled"] .entry-actions {
	transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.freshvibes-view[data-animations="enabled"] .tab-settings-menu {
	opacity: 0;
	/* When hiding, fade out first, then set visibility to hidden after a delay. */
	transition: opacity 0.1s ease-in-out, visibility 0s linear 0.1s;
}

.freshvibes-view[data-animations="enabled"] .tab-settings-menu.active {
	opacity: 1;
	/* When showing, just fade in the opacity. */
	transition: opacity 0.1s ease-in-out;
}

.freshvibes-view[data-animations="enabled"] .freshvibes-tab.menu-is-open:hover {
	transform: none;
}

.freshvibes-view[data-animations="disabled"] {
	--freshvibes-transition-duration: 0s;
}

/* Collapse or hide empty containers*/
/* Collapse content only - shows header but hides the content area */
.freshvibes-view[data-empty-feeds="collapse_content"] .freshvibes-container:has(.no-entries) .freshvibes-container-content {
	display: none;
}

/* Hide completely - hides the entire feed container */
.freshvibes-view[data-empty-feeds="hide_completely"] .freshvibes-container:has(.no-entries) {
	display: none;
}


/* Vertical Layout Styles */
.freshvibes-vertical-container {
	padding: 0 12px;
}

.freshvibes-vertical-section {
	margin-top: 10px;
	border-radius: var(--freshvibes-border-radius);
	overflow: visible;
}

.freshvibes-vertical-section:first-child .freshvibes-section-header {
	justify-content: flex-start;
}

.freshvibes-vertical-section:has(.tab-settings-menu.active) {
	position: relative;
}

.freshvibes-view[data-layout="vertical"] .freshvibes-section-content .freshvibes-columns {
	min-height: 20px;
	align-items: stretch;
}

.freshvibes-section-header {
	display: flex;
	border-bottom: 2px solid var(--freshvibes-border-color);
	align-items: center;
	gap: 4px;
	justify-content: flex-start;
}

.section-unread-count.clickable {
	cursor: pointer;
	transition: all var(--freshvibes-transition-duration) ease;
}

.section-unread-count.clickable:hover {
	background-color: var(--freshvibes-accent-primary);
	color: var(--freshvibes-text-light);
	border-color: var(--freshvibes-accent-primary);
}

.section-settings {
	margin-left: auto;
	position: relative;
}

.section-settings-button {
	padding: 4px 8px;
	background: none;
	color: var(--section-font-color, var(--freshvibes-text-secondary));
	font-size: 0.9em;
	border: none;
	cursor: pointer;
	line-height: 1;
}

.section-settings-button:hover {
	color: var(--section-font-color, var(--freshvibes-text-primary));
}

.section-icon {
	font-size: 1.3em;
	line-height: 1;
}

.section-name {
	flex: 1;
}

.section-unread-count {
	padding: 4px 12px;
	color: var(--freshvibes-text-primary);
	font-size: 0.85em;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: calc(var(--freshvibes-border-radius) * 3);
	background-color: var(--freshvibes-background-primary);
	font-weight: normal;
}

.freshvibes-section-content {
	padding: 10px 0;
	background-color: var(--freshvibes-background-primary);
}

/* Move subscription buttons styling for vertical mode */
.freshvibes-vertical-section:first-child .moved-subscription-buttons {
	margin-left: 8px;
}

.freshvibes-vertical-section:first-child .tab-bulk-button {
	margin-left: 8px;
}

/* Ensure proper spacing in vertical mode */
.freshvibes-view[data-layout="vertical"] .freshvibes-header {
	display: none;
}

/* Remove minimum height for columns in vertical layout */
.freshvibes-view[data-layout="vertical"] .freshvibes-column {
	min-height: 20px;
}

/* Dark mode support */

@media (prefers-color-scheme: dark) {
	:root.darkMode_auto {

		--freshvibes-background-primary: var(--background-color-dark, var(--background-color-light, var(--frss-background-color, #111)));
		--freshvibes-background-secondary: var(--background-color-grey, var(--background-color-middle, var(--frss-background-color-middle, #1f1f1f)));
		--freshvibes-background-hover: var(--background-color-hover, var(--dark-background-color-blue, #212227));
		--freshvibes-text-primary: var(--font-color-light, var(--accent, var(--font-color, var(--frss-font-color-dark, #ccc))));
		--freshvibes-text-secondary: var(--font-color-light, var(--font-color-grey, var(--frss-font-color-grey-dark, #aaa)));
	}
}

/* ========================================
   GENERAL STYLES
   ======================================== */

.freshvibes-view {
	padding-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.element-hidden {
	display: none !important;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

/* Header Container */
.freshvibes-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	border-bottom: 1px solid var(--freshvibes-border-color);
	margin-bottom: 15px;
	flex-wrap: wrap;
	position: relative;
	z-index: 2;
	padding-left: 12px;
}

/* Tab Navigation */
.freshvibes-tabs {
	margin: 0;
	padding: 0;
	display: flex;
	list-style: none;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.freshvibes-tab {
	padding: 8px 15px;
	display: flex;
	color: var(--tab-font-color, var(--freshvibes-button-text));
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: var(--freshvibes-border-radius) var(--freshvibes-border-radius) 0 0;
	cursor: pointer;
	margin-bottom: -1px;
	position: relative;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex: 0 1 auto;
	gap: 8px;
	background-color: var(--tab-bg-color, var(--background-color-grey, var(--freshvibes-background-secondary)));
	transition: all var(--freshvibes-transition-duration) ease;
}

.freshvibes-tab:hover {
	filter: brightness(1.1);
}

.freshvibes-tab.active {
	background-color: var(--tab-bg-color, var(--freshvibes-background-primary));
	border-color: var(--freshvibes-border-color);
	color: var(--tab-font-color, var(--freshvibes-text-primary));
	position: relative;
}

.freshvibes-tab.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 3px;
	background-color: currentColor;
	opacity: 0.8;
}

/* Tab Elements */
.tab-name-input {
	padding: 2px 4px;
	color: var(--freshvibes-text-primary);
	font: inherit;
	border: 1px solid var(--freshvibes-accent-primary);
	background-color: var(--freshvibes-background-primary);
}

.tab-icon {
	color: var(--tab-icon-color, inherit);
	font-size: 1.2em;
	line-height: 1;
}

/* Tab Controls */
.tab-add-button,
.tab-bulk-button {
	padding: 4px 12px;
	color: var(--freshvibes-text-primary);
	font-size: 1.5em;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	font-weight: bold;
	line-height: 1;
	background-color: var(--freshvibes-background-secondary);
	cursor: pointer;
	margin-left: 8px;
	text-align: center;
	flex: 0 1 auto;
}

.tab-add-button:hover {
	background-color: var(--freshvibes-accent-primary);
	border-color: var(--freshvibes-accent-primary);
	color: var(--freshvibes-text-light);
}

.tab-bulk-button {
	background-color: var(--freshvibes-error-color);
	color: var(--freshvibes-text-light);
	min-height: 34px;
}

.tab-bulk-button:hover {
	background-color: var(--freshvibes-error-color-hover);
	border-color: var(--freshvibes-error-color-hover);
}

/* Tab Settings */
.tab-settings {
	position: relative;
}

.tab-settings-button {
	padding: 0 4px;
	background: none;
	color: var(--freshvibes-text-secondary);
	font-size: 1em;
	border: none;
	cursor: pointer;
	line-height: 1;
	margin-left: 5px;
	font-weight: normal;
	position: relative;
	z-index: 2;
}

.freshvibes-tab:hover .tab-settings-button,
.tab-settings-button:focus {
	color: var(--freshvibes-text-primary);
}

/* Tab Settings Menu */
.tab-settings-menu {
	padding: 10px;
	background: var(--freshvibes-background-primary);
	display: flex;
	color: var(--freshvibes-text-primary);
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	box-shadow: var(--freshvibes-box-shadow);
	visibility: hidden;
	position: absolute;
	top: calc(100% + 5px);
	right: -10px;
	z-index: 1000;
	min-width: 200px;
	flex-direction: column;
	gap: 10px;
}

.freshvibes-tab:has(.tab-settings-menu.active) {
	position: relative;
	z-index: 110;
}

.tab-settings-menu.active {
	visibility: visible;
}

.tab-settings-menu .menu-section {
	display: flex;
	flex-direction: column;
	color: var(--freshvibes-text-secondary);
	gap: 5px;
}

.tab-settings-menu label {
	font-size: 0.95em;
	margin-bottom: 4px;
}

/* Icon and Color Settings */
.icon-settings,
.color-settings {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	justify-content: space-between;
}

.icon-settings label,
.color-settings label {
	flex: 1;
	margin-bottom: 0;
}

.icon-settings>div {
	display: flex;
	gap: 4px;
	align-items: center;
}

input.tab-icon-input {
	flex: 0 0 60px;
	width: 60px;
	text-align: center;
}

input[type="color"] {
	padding: 0;
	width: 32px;
	height: 32px;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	cursor: pointer;
	flex-shrink: 0;
	appearance: none;
}

/* Column Selector */
.columns-selector {
	display: flex;
	justify-content: space-between;
	gap: 2px;
}

.columns-selector button {
	padding: 4px 8px;
	color: var(--freshvibes-text-secondary);
	border: 1px solid var(--freshvibes-border-color);
	flex: 1;
	cursor: pointer;
	transition: all var(--freshvibes-transition-duration) ease;
}

.columns-selector button.active {
	background-color: var(--freshvibes-background-active);
	color: var(--freshvibes-accent-primary);
	border-color: var(--freshvibes-accent-primary);
	font-weight: bold;
}

/* Tab Actions */
.tab-action-delete {
	margin-top: 10px;
	padding: 5px;
	text-align: center;
	background-color: var(--freshvibes-error-color);
	color: var(--font-color-light, #fff);
	border: none;
	border-radius: var(--freshvibes-border-radius);
	cursor: pointer;
	transition: all var(--freshvibes-transition-duration) ease;
}

.tab-action-delete:hover {
	background-color: var(--freshvibes-error-color-hover);
}

/* Icon Picker */
.icon-picker {
	padding: 5px;
	background: var(--freshvibes-background-primary);
	display: none;
	max-width: 200px;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	box-shadow: var(--freshvibes-box-shadow);
	position: absolute;
	z-index: 1100;
	flex-wrap: wrap;
	gap: 2px;
}

.icon-picker.active {
	display: flex;
}

.icon-picker span {
	display: flex;
	width: 30px;
	height: 30px;
	font-size: 1.2em;
	border-radius: var(--freshvibes-border-radius);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.icon-picker span:hover {
	background-color: var(--freshvibes-background-secondary);
}

/* ========================================
   PANELS & CONTENT AREAS
   ======================================== */

/* Panel Container */
.freshvibes-panels {
	position: relative;
	flex-grow: 1;
	padding: 0 12px;
	z-index: 1;
}

.freshvibes-panel {
	display: none;
}

.freshvibes-panel.active {
	display: block;
}

/* Column Layout */
.freshvibes-columns {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.freshvibes-column {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-height: calc(100vh - 250px);
	/* Adjust this value based on your header height */
}

/* ========================================
   FEED CONTAINERS
   ======================================== */

.freshvibes-container {
	border: 1px solid var(--freshvibes-border-shadow);
	background-color: var(--background-color-white, var(--frss-background-color-light, var(--freshvibes-background-primary)));
	border-radius: var(--freshvibes-border-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 1;
}

/* Feed Header */
.freshvibes-container-header {
	padding: 0px 12px;
	display: flex;
	color: var(--header-font-color, var(--freshvibes-button-text));
	border-bottom: 1px solid var(--freshvibes-border-color);
	background-color: var(--header-bg-color, var(--background-color-grey, var(--freshvibes-background-secondary)));
	cursor: grab;
	align-items: center;
	gap: 8px;
	font-weight: bold;
}

.freshvibes-container-header .feed-title {
	flex-grow: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: 5px;
}

.feed-title-link {
	color: inherit;
	text-decoration: none;
	flex-grow: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: 5px;
}

.feed-title-link:hover {
	color: var(--freshvibes-accent-primary);
	text-decoration: underline;
}

/* Feed Badges */
.feed-unread-badge,
.tab-unread-count {
	padding: 2px 8px;
	color: var(--freshvibes-button-text);
	font-size: 0.85em;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: calc(var(--freshvibes-border-radius) * 2);
	background-color: var(--freshvibes-background-primary);
	font-weight: normal;
	cursor: pointer;
	flex-shrink: 0;
}

.feed-unread-badge {
	margin-left: auto;
	margin-right: 8px;
}

.tab-unread-count {
	margin-left: 6px;
	display: none;
}

.tab-unread-count.has-count {
	display: inline-block;
}

/* Badge color inversion for custom backgrounds */
.freshvibes-container-header[style*="--header-bg-color"] .feed-unread-badge {
	background-color: var(--header-bg-color, var(--freshvibes-background-secondary));
	color: var(--header-font-color, var(--freshvibes-text-primary));
	border-color: var(--header-font-color, var(--freshvibes-text-primary));
}

.freshvibes-tab.has-custom-color .tab-unread-count {
	color: var(--tab-font-color);
	background-color: transparent;
	border-color: var(--tab-font-color);
}

.feed-unread-badge:hover,
.tab-unread-count:hover {
	background-color: var(--freshvibes-accent-primary);
	color: var(--freshvibes-text-light);
	border-color: var(--freshvibes-accent-primary);
}

/* Feed Settings */
.feed-settings {
	position: relative;
	margin-left: auto;
	flex-shrink: 0;
}

.feed-settings-button {
	padding: 8px 12px;
	background: transparent;
	display: inline-flex;
	color: var(--freshvibes-text-secondary);
	font-size: 1.1em;
	border: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
	min-width: 40px;
	min-height: 32px;
}

.feed-settings-button:hover,
.feed-settings-button:focus {
	color: var(--freshvibes-text-primary);
}

.feed-settings-button svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

/* Feed Settings Editor */
.feed-settings-editor {
	padding: 10px 15px;
	display: none;
	max-width: 90vw;
	width: max-content;
	color: var(--freshvibes-text-primary);
	font-size: 0.95em;
	border: 1px solid var(--freshvibes-border-shadow);
	border-radius: var(--freshvibes-border-radius);
	box-shadow: var(--freshvibes-box-shadow);
	flex-direction: column;
	gap: 10px;
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	background-color: var(--freshvibes-background-primary);
	z-index: 50;
}

.feed-settings-editor,
.feed-settings-editor label,
.bulk-settings-section label {
	color: var(--freshvibes-button-text);
}

.freshvibes-container:has(.feed-settings-editor.active) {
	z-index: 10;
	position: relative;
}

.feed-settings-editor.active {
	display: flex;
}

.feed-settings-editor .setting-row {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}

.feed-settings-editor .setting-row label {
	flex-shrink: 0;
	white-space: nowrap;
	font-size: 0.95em;
}

.feed-maxheight-input {
	padding: 4px 8px;
	width: 100%;
	color: var(--freshvibes-text-primary);
	font-size: inherit;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	background-color: var(--freshvibes-background-primary);
}

.setting-row select {
	flex-grow: 1;
}

/* Feed Move Options */
.feed-move-to {
	border-top: 1px solid var(--freshvibes-border-color);
	margin-top: 8px;
	padding-top: 8px;
}

.feed-move-to label {
	display: block;
	font-size: 0.95em;
	font-weight: bold;
	margin-bottom: 4px;
}

.feed-move-to-list {
	margin: 0;
	padding: 0;
	max-height: 150px;
	list-style: none;
	overflow-y: auto;
}

.feed-move-to-list li button {
	padding: 6px 12px;
	background: var(--freshvibes-button-bg);
	width: 100%;
	color: var(--freshvibes-text-primary);
	font-size: 0.95em;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	text-align: left;
	cursor: pointer;
	transition: all var(--freshvibes-transition-duration) ease;
}

.feed-move-to-list li button:hover {
	background-color: var(--freshvibes-button-hover);
	border-color: var(--freshvibes-accent-primary);
	color: var(--freshvibes-text-primary);
}

/* ========================================
   FEED CONTENT
   ======================================== */

.freshvibes-container-content {
	padding: 0 12px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: var(--frss-font-color-grey-light, #aaa) var(--freshvibes-background-secondary);
}

/* Custom scrollbar styling */
.freshvibes-container-content::-webkit-scrollbar {
	width: 8px;
}

.freshvibes-container-content::-webkit-scrollbar-track {
	background: var(--freshvibes-background-secondary);
	border-radius: var(--freshvibes-border-radius);
}

.freshvibes-container-content::-webkit-scrollbar-thumb {
	background: var(--frss-font-color-grey-light, #aaa);
	border: 1px solid var(--freshvibes-background-secondary);
	border-radius: var(--freshvibes-border-radius);
}

.freshvibes-container-content::-webkit-scrollbar-thumb:hover {
	background: var(--frss-font-color-grey-light, #888);
	filter: brightness(1.2);
}

.freshvibes-container-content ul {
	margin: 0;
	padding: 6px 0;
	list-style: none;
}

.freshvibes-container-content li.entry-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	border-bottom: 1px dashed var(--freshvibes-border-color);
	line-height: 1.4;
	position: relative;
}

.freshvibes-container-content li.entry-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Entry Elements */
.entry-main {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.entry-title {
	font-weight: bold;
	color: var(--font-color, var(--font-color-link-title, var(--freshvibes-text-primary)));
	vertical-align: middle;
}

.entry-title:hover {
	color: var(--freshvibes-text-primary);
	text-decoration: none;
}

.entry-snippet {
	color: var(--freshvibes-text-secondary);
	font-size: 0.95em;
	vertical-align: middle;
}

.entry-snippet:before {
	content: " \2013 ";
}

.entry-snippet:empty {
	display: none;
}

.entry-date,
.entry-excerpt,
.entry-snippet {
	color: var(--font-color-grey, var(--font-color-article, var(--freshvibes-text-secondary)));
}

.entry-date {
	color: var(--freshvibes-text-secondary);
	font-size: 0.85em;
	flex-shrink: 0;
	white-space: nowrap;
}

.entry-link {
	padding: 4px 0;
	display: flex;
	width: 100%;
	color: inherit;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.entry-link:hover {
	text-decoration: none;
	background-color: var(--freshvibes-background-secondary);
	color: var(--freshvibes-text-primary);
}

.entry-link:visited {
	color: inherit;
}

/* Display Modes */
.freshvibes-container.display-compact .entry-item,
.freshvibes-container.display-detailed .entry-item {
	padding: 0px 0;
	display: block;
}

.freshvibes-container.display-compact .entry-wrapper,
.freshvibes-container.display-detailed .entry-wrapper {
	display: flex;
	flex-direction: column;
	gap: 0px;
	width: 100%;
}

.freshvibes-container.display-compact .entry-item .entry-link,
.freshvibes-container.display-detailed .entry-item .entry-link {
	justify-content: flex-start;
	gap: 0px;
}

.freshvibes-container.display-compact .entry-wrapper .entry-title,
.freshvibes-container.display-detailed .entry-wrapper .entry-title {
	padding-left: 0;
}

.freshvibes-container .entry-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	line-height: 1;
}

.freshvibes-container .entry-header .entry-link {
	flex: 1;
	min-width: 0;
}

.freshvibes-container .entry-header .entry-title {
	font-weight: bold;
	color: inherit;
}

.freshvibes-container .entry-excerpt {
	color: var(--freshvibes-text-secondary);
	font-size: 0.95em;
	line-height: 1.4;
	margin-top: 2px;
}

/* Compact mode: smaller excerpt */
.freshvibes-container.display-compact .entry-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Detailed mode: larger excerpt */
.freshvibes-container.display-detailed .entry-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.freshvibes-container.display-compact .entry-link,
.freshvibes-container.display-detailed .entry-link {
	display: flex;
	align-items: flex-start;
	gap: 0.3em;
}

.freshvibes-container.display-compact .entry-favorite-indicator,
.freshvibes-container.display-detailed .entry-favorite-indicator {
	flex-shrink: 0;
	margin-top: 0.15em;
}

/* Hover styles for new layouts */
.freshvibes-container.display-compact .entry-item:hover,
.freshvibes-container.display-detailed .entry-item:hover {
	background-color: var(--freshvibes-background-secondary);
	outline: 1px solid var(--freshvibes-border-color);
	/* Adds a crisp edge without affecting layout */
	outline-offset: -1px;
}

/* Entry Actions */
.entry-actions {
	position: absolute;
	right: -60px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	gap: 4px;
	opacity: 0;
	z-index: 10;
}

.entry-item:hover .entry-actions {
	opacity: 1;
	right: 8px;
}

.freshvibes-container.display-compact .entry-actions,
.freshvibes-container.display-detailed .entry-actions {
	right: -48px;
}

.freshvibes-container.display-compact .entry-item:hover .entry-actions,
.freshvibes-container.display-detailed .entry-item:hover .entry-actions {
	right: 12px;
}

.entry-action-btn {
	padding: 4px 8px;
	background: rgba(var(--frss-background-color-middle, 240, 240, 240), 0.9);
	display: flex;
	font-size: 0.9em;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: all var(--freshvibes-transition-duration) ease;
	align-items: center;
	gap: 4px;
}

.entry-action-btn:hover {
	background: var(--frss-background-color-middle, #eee);
	color: white;
	border-color: var(--frss-background-color-middle, #eee);
}

.entry-action-btn img {
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

/* Action button states */
.entry-action-btn .action-icon-read {
	display: none;
}

.entry-action-btn .action-icon-unread {
	display: inline-block;
}

.entry-action-btn.is-read .action-icon-read {
	display: inline-block;
}

.entry-action-btn.is-read .action-icon-unread {
	display: none;
}

.entry-fav-btn .action-icon-star {
	display: none;
}

.entry-fav-btn .action-icon-unstar {
	display: inline-block;
}

.entry-fav-btn.is-favorite .action-icon-star {
	display: inline-block;
}

.entry-fav-btn.is-favorite .action-icon-unstar {
	display: none;
}

.entry-favorite-indicator {
	display: inline-block;
	vertical-align: middle;
	overflow: hidden;
	max-width: 0;
	transition: max-width 0.1s ease-in-out;
	white-space: nowrap;
	line-height: 1;
	padding-bottom: 1px;
}

.entry-favorite-indicator.is-favorite {
	max-width: 2em;
	margin-right: 0.10em;
}

/* Read/Unread states */
.entry-item:hover {
	background-color: var(--freshvibes-background-secondary);
	color: var(--freshvibes-text-primary);
	text-decoration: none;
}

.entry-item.read {
	opacity: 0.6;
	color: var(--freshvibes-text-primary);
}

.entry-item:not(.read) .entry-title {
	color: var(--freshvibes-text-primary);
}

/* Font size overrides */
.fontsize-small .freshvibes-container-content {
	font-size: 0.8em;
}

.fontsize-large .freshvibes-container-content {
	font-size: 1.1em;
}

.fontsize-xsmall .freshvibes-container-content {
	font-size: 0.7em;
}

.fontsize-xlarge .freshvibes-container-content {
	font-size: 1.3em;
}

/* No entries message */
.no-entries {
	margin: 0.5rem 0 0.5rem;
	padding: 5px 0;
	color: var(--freshvibes-text-secondary);
	text-align: center;
	font-style: italic;
}

/* ========================================
   MODALS & OVERLAYS
   ======================================== */

/* Entry Modal */
.fv-modal {
	background: rgba(0, 0, 0, 0.7);
	display: none;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	backdrop-filter: blur(3px);
}

.fv-modal.active {
	display: flex;
}

.fv-modal-content {
	background: var(--frss-background-color-middle, var(--freshvibes-background-primary));
	display: flex;
	max-width: 800px;
	width: 90%;
	max-height: 85vh;
	color: var(--freshvibes-text-primary);
	border: 1px solid var(--freshvibes-border-color);
	border-radius: calc(var(--freshvibes-border-radius) * 2);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	position: relative;
	flex-direction: column;
}

.fv-modal-close {
	background: var(--freshvibes-background-secondary);
	display: flex;
	width: 36px;
	height: 36px;
	color: var(--freshvibes-text-secondary);
	font-size: 1.5em;
	border: none;
	border-radius: 50%;
	position: absolute;
	top: 15px;
	right: 15px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	z-index: 1;
	transition: all var(--freshvibes-transition-duration);
}

.fv-modal-close:hover {
	background-color: var(--freshvibes-background-active);
	color: var(--freshvibes-text-primary);
}

.fv-modal-article {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.fv-modal-header {
	padding: 30px 30px 20px;
	background: var(--freshvibes-background-secondary);
	border-bottom: 1px solid var(--freshvibes-border-color);
}

.fv-modal-title {
	margin: 0 40px 12px 0;
	color: var(--freshvibes-text-primary);
	font-size: 1.6em;
	line-height: 1.3;
	font-weight: 600;
}

.fv-modal-meta {
	display: flex;
	color: var(--freshvibes-text-secondary);
	font-size: 0.95em;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
}

.fv-modal-meta-left {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.fv-modal-meta-left>*:not(:first-child)::before {
	content: "•";
	margin-right: 12px;
	color: var(--freshvibes-border-color);
	text-decoration: none !important;
}

.fv-modal-feed {
	display: flex;
	color: var(--freshvibes-accent-primary);
	font-weight: 500;
	text-decoration: none;
	align-items: center;
	gap: 4px;
}

.fv-modal-feed,
.fv-modal-author {
	color: var(--freshvibes-accent-primary) !important;
	text-decoration: underline !important;
}

.fv-modal-feed:hover,
.fv-modal-author:hover {
	opacity: 0.8;
}

.fv-modal-feed-icon {
	vertical-align: middle;
}

.fv-modal-author {
	font-style: italic;
	color: var(--freshvibes-accent-primary);
	text-decoration: none;
}

.fv-modal-author-prefix {
	color: var(--freshvibes-text-secondary);
	margin-right: 4px;
}

.fv-modal-author-wrapper {
	font-style: italic;
}

.fv-modal-date {
	margin-left: auto;
	flex-shrink: 0;
}

.fv-modal-body {
	flex: 1;
	overflow-y: auto;
	padding: 25px 30px;
}

.fv-modal-excerpt {
	line-height: 1.7;
	margin: 0;
	color: var(--freshvibes-text-primary);
	font-size: 1.05em;
}

.fv-modal-footer {
	padding: 20px 30px;
	background: var(--freshvibes-background-secondary);
	border-top: 1px solid var(--freshvibes-border-color);
}

.fv-modal-tags-container {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 15px;
}

.fv-modal-tags-label {
	font-weight: 500;
	color: var(--freshvibes-text-secondary);
	flex-shrink: 0;
}

.fv-modal-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.fv-modal-tag {
	padding: 4px 12px;
	background: var(--freshvibes-background-active);
	display: inline-block;
	color: var(--freshvibes-accent-primary);
	font-size: 0.85em;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: calc(var(--freshvibes-border-radius) * 3);
	text-decoration: none;
}

.fv-modal-tag:hover {
	background: var(--freshvibes-background-secondary);
	text-decoration: none;
	border-color: var(--freshvibes-accent-primary);
}

.fv-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.fv-modal-actions .fvbtn {
	padding: 8px 20px;
	background: var(--freshvibes-background-primary);
	display: inline-flex;
	color: var(--freshvibes-text-primary);
	font-size: 0.95em;
	border: 1px solid var(--frss-border-color, var(--freshvibes-border-color));
	border-radius: var(--freshvibes-border-radius);
	text-decoration: none;
	cursor: pointer;
	align-items: center;
	gap: 6px;
	transition: all var(--freshvibes-transition-duration);
	white-space: nowrap;
	min-height: 38px;
}

.fv-modal-actions .fvbtn:hover {
	background: var(--freshvibes-background-secondary);
	border-color: var(--freshvibes-accent-primary);
}

.fv-modal-actions .fvbtn.fvbtn-important {
	background: var(--freshvibes-background-primary);
	color: var(--frss-font-color-dark, var(--freshvibes-text-secondary));
	border-color: var(--frss-border-color, var(--freshvibes-border-color));
}

.fv-modal-actions .fvbtn.fvbtn-important:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Bulk Settings Modal */
#bulk-settings-modal .fv-modal-content {
	display: flex;
	max-width: 600px;
	max-height: 85vh;
	overflow: hidden;
	flex-direction: column;
}

#bulk-settings-modal .fv-modal-header {
	padding: 20px 20px 15px;
}

#bulk-settings-modal .fv-modal-header p {
	margin: 5px 0 0 0;
	color: var(--freshvibes-text-secondary);
	font-size: 0.95em;
}

#bulk-settings-modal .fv-modal-body {
	overflow-y: auto;
	flex: 1;
	min-height: 0;
	padding: 0 20px 20px;
}

.bulk-settings-section {
	padding: 15px;
	background: var(--freshvibes-background-secondary);
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	margin-bottom: 20px;
}

.bulk-settings-section:last-child {
	margin-bottom: 0;
}

.bulk-settings-section h3 {
	margin: 0 0 12px 0;
	color: var(--freshvibes-text-primary);
	font-size: 1.1em;
}

.bulk-settings-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bulk-settings-form .setting-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bulk-settings-form .setting-row label {
	flex: 0 0 120px;
	font-weight: 500;
	font-size: 0.95em;
}

.bulk-settings-form .setting-row select {
	flex: 1;
	max-width: 180px;
}

.bulk-settings-form .color-controls {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	max-width: 180px;
}

.bulk-settings-form .color-controls input[type="color"] {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.bulk-settings-form .color-controls .color-reset {
	flex-shrink: 0;
}

.bulk-actions {
	display: flex;
	gap: 8px;
	margin-top: 15px;
	padding-top: 12px;
	border-top: 1px solid var(--freshvibes-border-color);
}

.bulk-actions .btn {
	flex: 1;
	padding: 6px 12px;
	font-size: 0.95em;
}

/* ========================================
   BUTTONS & CONTROLS
   ======================================== */

/* General Button Styles */
.fvbtn {
	padding: 8px 16px;
	display: inline-flex;
	color: var(--freshvibes-text-primary);
	font-size: 0.95em;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	background-color: var(--freshvibes-background-secondary);
	cursor: pointer;
	transition: all var(--freshvibes-transition-duration) ease;
	align-items: center;
	gap: 6px;
}

.fvbtn:hover {
	background-color: var(--freshvibes-background-hover);
	border-color: var(--freshvibes-accent-primary);
}

.fvbtn.fvbtn-primary {
	background-color: var(--freshvibes-accent-primary);
	color: white;
	border-color: var(--freshvibes-accent-primary);
}

.fvbtn.fvbtn-primary:hover {
	opacity: 0.9;
}

.fvbtn.fvbtn-danger {
	background-color: var(--freshvibes-error-color);
	color: var(--freshvibes-text-light);
	border-color: var(--freshvibes-error-color);
}

.fvbtn.fvbtn-danger:hover {
	background-color: var(--freshvibes-error-color-hover);
}


/* Color Reset Button */
.color-reset {
	padding: 2px 4px;
	background: none;
	display: flex;
	width: 32px;
	height: 32px;
	color: var(--freshvibes-text-secondary);
	font-size: 1em;
	border: none;
	cursor: pointer;
	line-height: 1;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
}

.color-reset:hover {
	color: var(--freshvibes-text-primary);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Visibility */
.hidden {
	display: none !important;
}

/* Dark mode support for specific components */

@media (prefers-color-scheme: dark) {
	.entry-action-btn {
		background: rgba(var(--frss-background-color-middle, 60, 60, 60), 0.9);
	}
}

/* Custom color classes */
.freshvibes-container-header.has-custom-color .feed-unread-badge {
	color: var(--header-font-color);
	background-color: transparent;
	border-color: var(--header-font-color);
}

.freshvibes-container-header.has-custom-color .feed-settings-button {
	color: var(--header-font-color, var(--freshvibes-text-primary));
}

/* ========================================
   SUBSCRIPTION BUTTONS
   ======================================== */

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.moved-subscription-buttons {
	padding: 4px 12px;
	display: flex;
	height: 34px;
	color: var(--font-color-light, var(--freshvibes-text-light));
	border: 1px solid var(--freshvibes-border-color);
	border: 1px solid var(--contrast-border-color, var(--freshvibes-accent-primary));
	border-radius: var(--freshvibes-border-radius);
	position: relative;
	align-items: center;
	background-image: linear-gradient(to bottom, var(--freshvibes-accent-primary), var(--contrast-background-color-gradient, var(--freshvibes-accent-primary)));
	cursor: pointer;
	transition: all var(--freshvibes-transition-duration) ease;
	margin-left: 8px;
	flex: 0 1 auto;
	box-sizing: border-box;
}

.moved-subscription-buttons:hover {
	opacity: 0.9;
}

.subscription-icon {
	display: block;
	font-size: 1.5em;
	font-weight: bold;
	line-height: 1;
}

.subscription-buttons {
	display: none;
	gap: 4px;
}

.moved-subscription-buttons:hover .subscription-icon {
	display: none;
}

.moved-subscription-buttons:hover .subscription-buttons {
	display: flex;
}

.subscription-buttons .btn {
	padding: 2px 8px;
	display: flex;
	height: 26px;
	color: white;
	font-size: 0.9em;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--freshvibes-border-radius);
	white-space: nowrap;
	background-color: rgba(255, 255, 255, 0.2);
	text-decoration: none;
	line-height: 1.2;
	box-sizing: border-box;
	align-items: center;
}

.subscription-buttons .btn:hover {
	background-color: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   SPECIAL COMPONENTS
   ======================================== */

/* Big Mark as Read */
#bigMarkAsRead.big {
	text-align: center;
	text-decoration: none;
	background: var(--freshvibes-highlight-background);
	color: var(--freshvibes-accent-primary);
	transition: all 0.15s ease-in-out;
}

#bigMarkAsRead.big:hover {
	background: var(--freshvibes-accent-primary);
	color: var(--freshvibes-text-light);
}

#bigMarkAsRead.big:hover .bigTick {
	filter: brightness(5);
}

#bigMarkAsRead.big .bigTick {
	margin: 0.5rem 0;
	background: url(icons/tick-color.svg) center no-repeat;
	display: inline-block;
	width: 64px;
	height: 64px;
	text-indent: -9999px;
	white-space: nowrap;
}

/* Day indication */
.day {
	padding: 1rem 0 0 1.25rem;
	color: var(--freshvibes-text-secondary);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 3em;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.day .name {
	padding: 0 1rem 0 1rem;
	color: var(--freshvibes-text-primary);
	font-size: 0.875rem;
	position: relative;
	left: 0;
	text-transform: uppercase;
}

/*
 * Styles for the handle that allows resizing the height of a feed container.
 * This was missing entirely from the new stylesheet.
 */

.fv-resize-handle {
	display: flex;
	width: 100%;
	height: 10px;
	position: absolute;
	bottom: 0;
	left: 0;
	cursor: ns-resize;
	z-index: 2;
	align-items: center;
	justify-content: center;
}

.fv-resize-handle::after {
	content: '...';
	color: var(--freshvibes-border-color);
	font-size: 20px;
	line-height: 0px;
	letter-spacing: 3px;
	font-weight: bold;
}

.fv-native-link-section {
	border-top: 1px solid var(--border-color);
	margin-top: 8px;
	padding-top: 8px;
	text-align: center;
	text-wrap: nowrap;
}

.fv-native-settings-link {
	padding: 4px 8px;
	display: inline-block;
	color: var(--link-color);
	border-radius: var(--border-radius);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.fv-native-settings-link:hover {
	color: var(--link-color);
	background-color: var(--background-color-grey);
	text-decoration: underline;
}

.tab-settings-menu .icon-settings,
.tab-settings-menu .color-settings {
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.tab-settings-menu .icon-settings label,
.tab-settings-menu .color-settings label {
	flex: 1;
	margin-bottom: 0;
}

.height-picker-wrapper {
	position: relative;
	flex-grow: 1;
}

.height-picker-wrapper>input[type="text"] {
	padding: 5px;
	width: 100%;
	color: var(--freshvibes-text-primary);
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	box-sizing: border-box;
	background-color: var(--freshvibes-background-primary);
}

.bulk-settings-form .height-picker-wrapper {
	flex: 1;
	max-width: 180px;
}

.fv-height-picker {
	padding: 5px;
	/* Hides the dropdown by default. */
	display: none;
	border: 1px solid var(--freshvibes-border-color);
	border-radius: var(--freshvibes-border-radius);
	box-shadow: var(--freshvibes-box-shadow);
	/* Positions the dropdown relative to its wrapper, taking it out of the normal flow. */
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 60;
	margin-top: 2px;
	/* Ensures consistent background and border with other popups. */
	background-color: var(--freshvibes-background-secondary);
}

.fv-height-picker.active {
	display: block;
}

.fv-height-picker button {
	padding: 6px 8px;
	background: none;
	display: block;
	width: 100%;
	color: var(--freshvibes-text-primary);
	font-size: 0.95em;
	border: none;
	border-radius: var(--freshvibes-border-radius);
	text-align: left;
	cursor: pointer;
}

.fv-height-picker button:hover {
	background-color: var(--freshvibes-background-hover);
}

.feed-settings-editor .setting-row select,
.feed-settings-editor .height-picker-wrapper {
	flex-grow: 0;
	width: 130px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 600px) {

	/* Tab adjustments */
	.tab-settings-menu {
		max-width: calc(100vw - 40px);
		width: min(280px, calc(100vw - 40px));
		position: fixed !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	.freshvibes-tab:first-child .tab-settings-menu,
	.freshvibes-tab:last-child .tab-settings-menu,
	.freshvibes-tab:nth-last-child(2) .tab-settings-menu {
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	.tab-settings-menu button,
	.columns-selector button {
		padding: 6px 10px;
	}

	/* Header adjustments */
	.freshvibes-header {
		flex-direction: column;
		align-items: stretch;
	}

	.freshvibes-tabs {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		gap: 4px;
	}

	.freshvibes-tab {
		flex: 1 1 auto;
		min-width: 0;
		margin: 2px 0;
		overflow: hidden;
	}

	.freshvibes-tab .tab-name {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 100%;
	}

	.tab-add-button,
	.tab-bulk-button {
		margin: 2px 0;
		width: 40px;
		flex: 0 0 auto;
	}

	.tab-settings-button {
		padding: 8px 12px;
		display: inline-flex;
		font-size: 1.2em;
		min-width: 40px;
		min-height: 40px;
		align-items: center;
		justify-content: center;
	}

	.feed-settings-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* Column layout */
	.freshvibes-columns {
		flex-direction: column;
		width: 100%;
	}

	.freshvibes-column,
	.freshvibes-container {
		width: 100%;
	}

	.freshvibes-column {
		min-height: 0;
	}

	.freshvibes-column:empty {
		display: none;
	}

	/* Entry item mobile layout */
	.freshvibes-container-content li.entry-item {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas: "title title" "snippet date";
		gap: 4px 10px;
	}

	.entry-main {
		display: contents;
	}

	.entry-title {
		grid-area: title;
		display: block;
		width: 100%;
		text-decoration: none;
		color: inherit;
	}

	.entry-snippet {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		grid-area: snippet;
	}

	.entry-snippet:before {
		content: "";
	}

	.entry-date {
		grid-area: date;
		align-self: end;
	}

	/* Modal adjustments */
	.fv-modal {
		position: fixed;
		overflow: hidden;
	}

	.fv-modal-content {
		display: flex;
		width: 95%;
		max-height: 90vh;
		height: 90vh;
		flex-direction: column;
		overflow: hidden;
	}

	.fv-modal-article {
		display: flex;
		flex-direction: column;
		height: 100%;
		overflow: hidden;
	}

	.fv-modal-header {
		flex-shrink: 0;
	}

	.fv-modal-body {
		flex: 1;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		min-height: 0;
		padding: 20px;
	}

	.fv-modal-body::after {
		content: '';
		display: block;
		height: 20px;
	}

	.fv-modal-footer {
		flex-shrink: 0;
	}

	.fv-modal-header,
	.fv-modal-body,
	.fv-modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.fv-modal-title {
		font-size: 1.3em;
	}

	.fv-modal-meta {
		font-size: 0.85em;
	}

	.fv-modal-actions {
		flex-direction: row;
		justify-content: space-between;
	}

	.fv-modal-actions .fvbtn {
		flex: 1;
		justify-content: center;
		padding: 10px 15px;
	}

	body.modal-open {
		overflow: hidden;
		position: fixed;
		width: 100%;
	}

	/* Display mode adjustments */
	.freshvibes-container.display-compact .entry-header,
	.freshvibes-container.display-detailed .entry-header {
		flex-direction: column;
		gap: 2px;
	}

	.freshvibes-container.display-compact .entry-date,
	.freshvibes-container.display-detailed .entry-date {
		align-self: flex-start;
		font-size: 0.85em;
	}

	/* Bulk settings modal */
	#bulk-settings-modal .fv-modal-content {
		max-width: 95%;
		width: 95%;
		max-height: 85vh;
	}

	.bulk-settings-form .setting-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.bulk-settings-form .setting-row label {
		flex: none;
		width: 100%;
	}

	.bulk-settings-form .setting-row select,
	.bulk-settings-form .color-controls {
		max-width: 100%;
		width: 100%;
	}

	.bulk-actions {
		flex-direction: column;
	}

	.bulk-actions .btn {
		width: 100%;
	}

	/* Subscription buttons mobile */
	.moved-subscription-buttons .subscription-icon {
		display: none;
	}

	.moved-subscription-buttons .subscription-buttons {
		display: flex;
		margin-left: 0;
	}

	.moved-subscription-buttons {
		margin: 2px 0;
		width: 100%;
		flex: 1 1 auto;
		justify-content: center;
	}

	.header-actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 4px;
	}
}