/* DOLSAT — Oferta programowa
   Nowoczesny, responsywny widok siatki kanałów.
   Kolory dopasowane do palety DOLSAT (granat + złoto); zmień zmienne poniżej wg brandbooka. */

.dop-wrap {
	--dop-navy: #0f2540;
	--dop-navy-dark: #081527;
	--dop-gold: #f2a93b;
	--dop-text: #1c2b3a;
	--dop-muted: #64748b;
	--dop-bg-card: #ffffff;
	--dop-bg-page: #f5f7fa;
	--dop-border: #e6eaf0;
	--dop-radius: 14px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--dop-text);
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	box-sizing: border-box;
}

.dop-wrap *, .dop-wrap *::before, .dop-wrap *::after {
	box-sizing: inherit;
}

/* ---------- Sekcja pakietów (najważniejszy element, na górze, kompaktowa) ---------- */

.dop-icon {
	display: inline-block;
	vertical-align: -3px;
	flex: 0 0 auto;
}

.dop-pakiet-section {
	background: linear-gradient(135deg, var(--dop-navy), var(--dop-navy-dark));
	border-radius: 12px;
	padding: 8px 12px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 10px 24px -12px rgba(15, 37, 64, 0.42);
}

.dop-pakiet-title {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-size: 0.86rem;
	font-weight: 700;
}

.dop-pakiet-title .dop-icon {
	color: var(--dop-gold);
}

.dop-pakiet-filters {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 2px;
	align-items: center;
	row-gap: 6px;
}

.dop-pakiet-divider {
	width: 1px;
	height: 18px;
	background: rgba(255, 255, 255, 0.32);
	margin: 0 4px;
	flex: 0 0 auto;
}

.dop-pakiet-btn {
	appearance: none;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dop-pakiet-btn .dop-icon {
	opacity: 0.85;
}

.dop-pakiet-btn:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.5);
}

.dop-pakiet-btn.is-active {
	background: var(--dop-gold);
	border-color: var(--dop-gold);
	color: #3a2400;
}

.dop-pakiet-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

.dop-icon-btn {
	appearance: none;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	width: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
	flex: 0 0 auto;
}

.dop-icon-btn:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.5);
}



.dop-density-toggle[data-pressed="true"] {
	background: var(--dop-gold);
	border-color: var(--dop-gold);
	color: #3a2400;
}

@media (max-width: 640px) {
	.dop-pakiet-section {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.dop-pakiet-actions {
		align-self: flex-end;
	}
}

/* ---------- Controls: wyszukiwarka + kategorie ---------- */

.dop-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"search search"
		"filters hd";
	gap: 8px;
	align-items: center;
	margin-bottom: 14px;
	padding: 2px 0;
}

.dop-search {
	grid-area: search;
	position: relative;
	width: 100%;
	min-width: 0;
}

.dop-search .dop-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	margin-top: -8px;
	color: var(--dop-muted);
	pointer-events: none;
	z-index: 1;
}

.dop-search-kbd {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-family: inherit;
	font-size: 0.65rem;
	font-weight: 700;
	color: var(--dop-muted);
	background: var(--dop-bg-page);
	border: 1px solid var(--dop-border);
	border-radius: 5px;
	padding: 2px 6px;
	pointer-events: none;
	z-index: 1;
}

.dop-wrap input.dop-search-input[type="text"] {
	display: block;
	width: 100%;
	max-width: none;
	height: 42px;
	margin: 0;
	padding: 0 110px 0 42px;
	border-radius: 999px;
	border: 1.5px solid var(--dop-border);
	background: #fff;
	color: var(--dop-text);
	font-size: 0.9rem;
	line-height: 42px;
	outline: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dop-wrap input.dop-search-input[type="text"]:focus {
	border-color: var(--dop-navy);
	box-shadow: 0 0 0 3px rgba(15, 37, 64, 0.1);
}

.dop-controls-divider {
	display: none;
}

.dop-filters {
	grid-area: filters;
	min-width: 0;
	display: block;
}

.dop-filters-main {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.dop-filter-overflow {
	display: none;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 6px;
}

.dop-filters.is-expanded .dop-filter-overflow {
	display: flex;
}

.dop-filter {
	appearance: none;
	border: 1.5px solid var(--dop-border);
	background: #fff;
	color: var(--dop-navy);
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dop-filter .dop-icon {
	color: var(--dop-muted);
}

.dop-filter.is-active .dop-icon {
	color: #fff;
}

.dop-filter:hover {
	border-color: var(--dop-navy);
}

.dop-filter.is-active {
	background: var(--dop-navy);
	border-color: var(--dop-navy);
	color: #fff;
}


.dop-more-toggle {
	color: var(--dop-muted);
	border-style: dashed;
}

.dop-more-toggle .dop-icon {
	transition: transform 0.15s ease;
}

.dop-more-toggle.is-active .dop-icon {
	transform: rotate(180deg);
}

.dop-hd-toggle {
	grid-area: hd;
	justify-self: end;
	flex: 0 0 auto;
	border-color: #cbd5e1;
	color: var(--dop-navy);
	background: #fff;
}

.dop-hd-toggle .dop-icon {
	color: var(--dop-navy);
}

.dop-hd-toggle:hover {
	border-color: var(--dop-navy);
	background: #f8fafc;
}

.dop-hd-toggle.is-active {
	background: var(--dop-navy);
	border-color: var(--dop-navy);
	color: #fff;
}

.dop-hd-toggle.is-active .dop-icon {
	color: #fff;
}

/* ---------- Grid & karty ---------- */

.dop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
}

.dop-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.dop-grid--compact .dop-card-name {
	padding: 8px 8px 9px;
	font-size: 0.8rem;
}

.dop-grid--compact .dop-card-logo {
	padding: 6px 10px;
}

.dop-card {
	position: relative;
	background: var(--dop-bg-card);
	border: 1px solid var(--dop-border);
	border-radius: var(--dop-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dop-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 37, 64, 0.1);
	border-color: rgba(15, 37, 64, 0.15);
}

.dop-card[hidden] {
	display: none;
}

/* Logo w proporcjach 360x120 (3:1) — pełna szerokość karty */
.dop-card-logo {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 1;
	background: #fff;
	border-bottom: 1px solid var(--dop-border);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
}

.dop-hd-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	background: #e4f7ee;
	color: #0a5b3e;
	border: 1px solid #c3ecda;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	padding: 1px 5px;
	border-radius: 5px;
	line-height: 1.4;
}





.dop-card-logo-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dop-card-logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--dop-navy), var(--dop-navy-dark));
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
}

.dop-card-name {
	padding: 10px 12px 12px;
	text-align: center;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.3;
}

.dop-empty {
	text-align: center;
	color: var(--dop-muted);
	padding: 40px 0;
}

.dop-count {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: var(--dop-muted);
	font-size: 1.05rem;
	font-weight: 600;
	margin: 4px 0 18px;
	line-height: 1;
}

.dop-count::before,
.dop-count::after {
	content: '';
	flex: 1 1 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--dop-border));
}

.dop-count::after {
	background: linear-gradient(90deg, var(--dop-border), transparent);
}

.dop-count-main {
	color: var(--dop-navy);
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.035em;
}

.dop-count-label {
	font-size: 1rem;
	font-weight: 700;
	margin-left: 4px;
}

.dop-count-separator {
	color: #94a3b8;
	font-size: 1.2rem;
	font-weight: 500;
}

.dop-count-hd-text {
	font-size: 1rem;
	font-weight: 700;
	margin-left: 4px;
}

.dop-count-hd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 30px;
	padding: 0 9px;
	background: var(--dop-navy);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	border-radius: 999px;
	vertical-align: middle;
	box-shadow: 0 4px 10px rgba(15, 37, 64, 0.14);
}

.dop-count[hidden] {
	display: none;
}

@media (max-width: 760px) {
	.dop-controls {
		grid-template-columns: 1fr;
		grid-template-areas:
			"search"
			"filters"
			"hd";
	}
	.dop-filters,
	.dop-filters-main,
	.dop-filter-overflow {
		width: 100%;
	}
	.dop-hd-toggle {
		width: 100%;
		justify-content: center;
	}
	.dop-search-kbd {
		display: none;
	}
	.dop-wrap input.dop-search-input[type="text"] {
		padding-right: 14px;
	}
}

@media (max-width: 560px) {
	.dop-count { gap: 8px; font-size: 0.95rem; }
	.dop-count-main { font-size: 1.35rem; }
	.dop-count-label, .dop-count-hd-text { font-size: 0.9rem; }
	.dop-count-hd { min-width: 34px; height: 28px; }
}

@media (max-width: 480px) {
	.dop-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
	.dop-wrap input.dop-search-input[type="text"] {
		padding-right: 14px;
	}
}
