/**
 * Designs By Sadia — Portfolio Manager
 * Base frontend structural styles. Colors, spacing, and radii are injected
 * as CSS custom properties by DBS_Portfolio_Styles::generate_css() so the
 * grid matches whatever the admin configures in Style & Design.
 */

.dbs-portfolio-wrap {
	max-width: 100%;
	box-sizing: border-box;
}

.dbs-portfolio-wrap * {
	box-sizing: border-box;
}

.dbs-portfolio-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
	align-items: center;
}

.dbs-portfolio-search {
	flex: 1 1 240px;
	padding: 10px 16px;
	border-radius: var(--dbs-radius, 8px);
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.dbs-portfolio-filter {
	padding: 10px 14px;
	border-radius: var(--dbs-radius, 8px);
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
}

.dbs-portfolio-card {
	position: relative;
}

.dbs-card-logo {
	position: absolute;
	bottom: 10px;
	left: 10px;
	width: 36px;
	height: 36px;
	object-fit: contain;
	background: #fff;
	border-radius: 50%;
	padding: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dbs-card-body {
	padding-top: 16px;
}

.dbs-card-title {
	margin: 0 0 8px;
	font-size: 1.1em;
	line-height: 1.3;
}

.dbs-card-description {
	opacity: 0.8;
	font-size: 0.92em;
	line-height: 1.5;
	margin: 8px 0;
}

.dbs-card-categories,
.dbs-card-tech {
	margin-bottom: 6px;
}

.dbs-portfolio-load-more-wrap {
	text-align: center;
	margin-top: 36px;
}

.dbs-portfolio-load-more {
	background: var(--dbs-primary, #1a1a2e);
	color: #fff;
	border: none;
	padding: 12px 32px;
	border-radius: var(--dbs-radius, 8px);
	cursor: pointer;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.dbs-portfolio-load-more:hover {
	opacity: 0.85;
}

.dbs-portfolio-load-more[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.dbs-portfolio-grid.dbs-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.dbs-no-results {
	grid-column: 1 / -1;
	text-align: center;
	opacity: 0.7;
	padding: 40px 0;
}

/* Device mockup frames — applied when a mockup_style other than "clean" is set */
.dbs-mockup-desktop .dbs-thumb { border: 8px solid #2b2b2b; border-radius: 10px; }
.dbs-mockup-laptop .dbs-thumb { border: 8px solid #3a3a3a; border-bottom-width: 18px; border-radius: 10px; }
.dbs-mockup-tablet .dbs-thumb { border: 14px solid #1c1c1c; border-radius: 22px; }
.dbs-mockup-phone .dbs-thumb { border: 12px solid #111; border-radius: 32px; max-width: 260px; margin: 0 auto; }
