/**
 * BIG-MEDIA Comune ACoR — Frontend Styles
 * Author: BIG-MEDIA (https://big-media.ro)
 */

body.bmc-overflow-hidden {
	overflow: hidden;
}

/* ================================================
   GRID
   ================================================ */
.bmc-comune-wrapper {
	font-family: inherit;
	position: relative;
}

.bmc-comune-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bmc-cols-1 { grid-template-columns: repeat(1, 1fr); }
.bmc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bmc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bmc-cols-4 { grid-template-columns: repeat(4, 1fr); }
.bmc-cols-5 { grid-template-columns: repeat(5, 1fr); }
.bmc-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
	.bmc-cols-4,
	.bmc-cols-5,
	.bmc-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.bmc-comune-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
	.bmc-comune-grid { grid-template-columns: 1fr !important; }
}

/* ================================================
   SEARCH BAR
   ================================================ */
.bmc-search-bar {
	margin-bottom: 28px;
}

.bmc-search-input {
	width: 100%;
	max-width: 420px;
	padding: 10px 18px;
	border: 1.5px solid #dce3ee;
	border-radius: 8px;
	font-size: 15px;
	color: #2c3e50;
	background: #fff;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.bmc-search-input:focus {
	border-color: #3a6bba;
	box-shadow: 0 0 0 3px rgba(58, 107, 186, 0.1);
}

/* ================================================
   CARD
   ================================================ */
.bmc-card {
	background: #fff;
	border-radius: 12px;
	border: 1.5px solid #e6edf7;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	box-shadow: 0 2px 12px rgba(30, 60, 100, 0.07);
}

.bmc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 32px rgba(30, 60, 100, 0.14);
}

/* ---- Image ---- */
.bmc-card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
	background: #f0f4fb;
	border-radius: 12px 12px 0 0;
}

.bmc-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
	border-radius: 12px 12px 0 0;
}

.bmc-card:hover .bmc-card-image img {
	transform: scale(1.04);
}

.bmc-card-image-link {
	display: block;
	overflow: hidden;
}

.bmc-card-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e8eef6 0%, #d0dced 100%);
	color: #8a9ab5;
	font-size: 13px;
	letter-spacing: 0.03em;
}

/* ---- Body ---- */
.bmc-card-body {
	display: flex;
	align-items: center;
	padding: 16px 18px 18px;
	gap: 14px;
	flex: 1;
	background: #fff;
}

/* ---- Stemă ---- */
.bmc-card-stema-wrap {
	flex-shrink: 0;
}

.bmc-stema-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: block;
	border-radius: 4px;
	transition: transform 0.18s ease, filter 0.18s ease;
}

.bmc-stema-btn:hover {
	transform: scale(1.08);
	filter: drop-shadow(0 3px 8px rgba(58, 107, 186, 0.3));
}

.bmc-stema-btn:focus {
	outline: 2px solid #3a6bba;
	outline-offset: 2px;
}

.bmc-stema-static {
	display: block;
}

.bmc-stema-img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	display: block;
}

.bmc-stema-blank {
	opacity: 0;
	pointer-events: none;
}

/* ---- Info ---- */
.bmc-card-info {
	flex: 1;
	min-width: 0;
}

.bmc-card-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #1a3a5c;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bmc-card-title-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.bmc-card-title-link:hover .bmc-card-title {
	color: #3a6bba;
}

.bmc-card-data {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

.bmc-data-value {
	font-weight: 600;
	color: #3a6bba;
}

/* ---- Hidden cards (search) ---- */
.bmc-card.bmc-hidden {
	display: none;
}

/* ================================================
   POPUP STEMĂ
   ================================================ */
.bmc-stema-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 25, 50, 0.58);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.bmc-stema-popup-overlay.bmc-popup-visible {
	opacity: 1;
}

.bmc-stema-popup-overlay[hidden] {
	display: none;
}

.bmc-stema-popup-inner {
	background: #fff;
	border-radius: 16px;
	padding: 36px 32px 32px;
	max-width: 480px;
	width: 100%;
	position: relative;
	text-align: center;
	box-shadow: 0 24px 60px rgba(10, 25, 50, 0.22);
	transform: translateY(16px);
	transition: transform 0.25s ease;
}

.bmc-stema-popup-overlay.bmc-popup-visible .bmc-stema-popup-inner {
	transform: translateY(0);
}

.bmc-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #f0f4fb;
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #64748b;
	transition: background 0.15s, color 0.15s;
}

.bmc-popup-close:hover {
	background: #e2e8f0;
	color: #1a3a5c;
}

.bmc-popup-stema-img-wrap {
	margin-bottom: 20px;
}

.bmc-popup-stema-img {
	max-width: 120px;
	max-height: 140px;
	object-fit: contain;
	margin: 0 auto;
	display: block;
}

.bmc-popup-titlu {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	color: #1a3a5c;
	letter-spacing: 0.03em;
}

.bmc-popup-descriere {
	font-size: 14px;
	color: #4a5568;
	line-height: 1.7;
	text-align: left;
}

/* ================================================
   NO RESULTS
   ================================================ */
.bmc-no-results {
	padding: 24px;
	text-align: center;
	color: #8a9ab5;
	font-style: italic;
}
