/* ==========================================================================
   Lighthouse Downloads Manager — Front-end styles
   Professional dark navy blue theme
   ========================================================================== */

.lhdm-wrapper {
	--lhdm-radius: 10px;
	font-family: inherit;
	color: #1c2b3a;
}

/* Toolbar --------------------------------------------------------------- */
.lhdm-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--lhdm-primary, #0b2545);
	background: linear-gradient(135deg, var(--lhdm-primary, #0b2545) 0%, var(--lhdm-primary-dark, #071a33) 100%);
	padding: 20px 24px;
	border-radius: var(--lhdm-radius);
	margin-bottom: 24px;
}

.lhdm-search {
	position: relative;
	flex: 1 1 260px;
	max-width: 340px;
}

.lhdm-search .dashicons {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.6);
}

.lhdm-search input[type="text"] {
	width: 100%;
	padding: 10px 14px 10px 36px;
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 14px;
}

.lhdm-search input[type="text"]::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.lhdm-search input[type="text"]:focus {
	outline: none;
	border-color: var(--lhdm-accent, #f2b705);
	background: rgba(255, 255, 255, 0.14);
}

.lhdm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lhdm-filter-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.85);
	padding: 7px 16px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.lhdm-filter-btn:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.lhdm-filter-btn.is-active {
	background: var(--lhdm-accent, #f2b705);
	border-color: var(--lhdm-accent, #f2b705);
	color: var(--lhdm-primary-dark, #071a33);
}

/* Grid & cards ------------------------------------------------------------ */
.lhdm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.lhdm-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e3e8ee;
	border-top: 4px solid var(--lhdm-primary, #0b2545);
	border-radius: var(--lhdm-radius);
	padding: 20px;
	box-shadow: 0 2px 6px rgba(11, 37, 69, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lhdm-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(11, 37, 69, 0.14);
}

.lhdm-card-icon {
	margin-bottom: 14px;
}

.lhdm-ext-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 32px;
	padding: 0 10px;
	border-radius: 6px;
	background: var(--lhdm-primary, #0b2545);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.lhdm-card-body {
	flex: 1;
}

.lhdm-card-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--lhdm-primary, #0b2545);
	line-height: 1.35;
}

.lhdm-card-excerpt {
	margin: 0 0 12px;
	font-size: 13.5px;
	color: #57687a;
	line-height: 1.5;
}

.lhdm-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.lhdm-tag {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--lhdm-primary, #0b2545);
	background: #eef2f7;
	padding: 4px 9px;
	border-radius: 20px;
}

.lhdm-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #eef1f4;
	padding-top: 14px;
	margin-top: auto;
}

.lhdm-download-count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: #7a8a9a;
}

.lhdm-download-count .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.lhdm-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--lhdm-primary, #0b2545);
	color: var(--lhdm-text-light, #fff) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	padding: 9px 18px;
	border-radius: 30px;
	transition: background 0.2s ease;
}

.lhdm-download-btn:hover {
	background: var(--lhdm-accent, #f2b705);
	color: var(--lhdm-primary-dark, #071a33) !important;
}

.lhdm-no-results {
	text-align: center;
	color: #7a8a9a;
	padding: 40px 0;
	font-size: 15px;
}

.lhdm-card.is-hidden {
	display: none !important;
}

/* Widget ------------------------------------------------------------------ */
.lhdm-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lhdm-widget-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #e3e8ee;
}

.lhdm-widget-item:last-child {
	border-bottom: none;
}

.lhdm-widget-item a {
	color: var(--lhdm-primary, #0b2545);
	font-weight: 600;
	text-decoration: none;
}

.lhdm-widget-count {
	background: var(--lhdm-primary, #0b2545);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 20px;
}

@media (max-width: 600px) {
	.lhdm-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.lhdm-search {
		max-width: none;
	}
}
