/**
 * Blystudio Szkolenia - Main Styles
 * Updated with custom branding
 */

/* ===== IMPORTOWANIE FONTÃ“W ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

/* ===== GÅÃ“WNY KONTENER SZKOLEÅƒ ===== */
.bly-szkolenia-container {
	max-width: 1800px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: 'Roboto Mono', monospace;
	background-color: #fdfbf5;
}

/* ===== NAGÅÃ“WEK Z NAWIGACJÄ„ ===== */
.bly-szkolenia-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 40px;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.bly-szkolenia-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.bly-szkolenia-nav button {
	background: transparent;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 8px 10px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
}

.bly-szkolenia-nav button:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

.bly-nav-today {
	font-size: 13px;
	font-weight: 500;
	font-family: 'Roboto Mono', monospace;
	padding: 8px 14px;
}

.bly-current-date {
	font-size: 18px;
	font-weight: 400;
	margin: 0;
	flex: 1;
	text-align: center;
	font-family: 'Roboto Mono', monospace;
	color: #333;
}

.bly-view-toggle {
	display: flex;
	gap: 5px;
	background: transparent;
	padding: 0;
	border-radius: 8px;
	flex-shrink: 0;
}

.bly-toggle-btn {
	background: transparent;
	border: 1px solid #e0e0e0;
	padding: 8px 10px;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s;
	color: #666;
}

.bly-toggle-btn:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

.bly-toggle-btn.active {
	background: #191919;
	color: white;
	border-color: #191919;
}

/* ===== WIDOKI ===== */
.bly-szkolenia-content {
	position: relative;
}

.bly-lista-view,
.bly-kalendarz-view {
	display: none;
}

.bly-lista-view.active,
.bly-kalendarz-view.active {
	display: block;
}

/* ===== WIDOK LISTY ===== */
.bly-month-group {
	margin-bottom: 50px;
}

.bly-month-title {
	font-size: 13px;
	text-transform: lowercase;
	color: #999;
	margin-bottom: 25px;
	font-weight: 400;
	font-family: 'Roboto Mono', monospace;
	letter-spacing: 0.5px;
}

.bly-szkolenie-item {
	display: grid;
	grid-template-columns: 80px 1fr 240px;
	gap: 30px;
	padding: 0;
	background: transparent;
	border: none;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 30px;
	margin-bottom: 30px;
	transition: all 0.3s;
	align-items: start;
}

/* Wrapper content - display contents żeby dzieci były bezpośrednimi dziećmi gridu */
.bly-szkolenie-content {
	display: contents;
}

.bly-szkolenie-item:hover {
	border-bottom-color: #191919;
}

.bly-szkolenie-date {
	flex-shrink: 0;
	text-align: left;
	width: 80px;
	padding-top: 5px;
}

.bly-date-day-name {
	font-size: 11px;
	color: #999;
	font-weight: 400;
	margin-bottom: 5px;
	font-family: 'Roboto Mono', monospace;
	text-transform: lowercase;
	letter-spacing: 0.5px;
}

.bly-date-day {
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	font-family: 'Roboto Mono', monospace;
	color: #191919;
}

/* .bly-szkolenie-content używa display: contents - patrz wyżej */

.bly-szkolenie-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bly-szkolenie-date-text {
	font-size: 14px;
	color: #666;
	margin: 0 0 8px 0;
	font-family: 'Roboto Mono', monospace;
}

.bly-szkolenie-title {
	font-size: 18px;
	font-weight: 400;
	margin: 0 0 12px 0;
	font-family: 'Roboto Mono', monospace;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.4;
}

.bly-szkolenie-title a {
	color: #191919;
	text-decoration: none;
	transition: color 0.2s;
}

.bly-szkolenie-title a:hover {
	color: #666;
}

.bly-szkolenie-instructor {
	font-size: 14px;
	color: #333;
	margin: 0;
	font-family: 'Roboto Mono', monospace;
}

.bly-szkolenie-details {
	font-size: 13px;
	color: #666;
	margin: 8px 0 0 0;
	font-family: 'Roboto Mono', monospace;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.bly-detail-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.bly-detail-item strong {
	font-weight: 500;
	color: #191919;
}

.bly-detail-item:last-child {
	margin-right: 0;
}

/* Na duÅ¼ych ekranach - w jednej linii */
@media (min-width: 769px) {
	.bly-szkolenie-details {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
	}
}

/* Na maÅ‚ych ekranach - jeden pod drugim */
@media (max-width: 768px) {
	.bly-szkolenie-details {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.bly-detail-item {
		margin-right: 0;
	}
}

.bly-szkolenie-thumb {
	flex-shrink: 0;
	width: 240px;
	height: 160px;
	border-radius: 8px;
	overflow: hidden;
}

.bly-szkolenie-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.bly-szkolenie-thumb:hover img {
	transform: scale(1.05);
}

/* ===== WIDOK KALENDARZA ===== */
#bly-calendar {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
}

.bly-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.bly-calendar-day-header {
	text-align: center;
	padding: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	font-family: 'Roboto Mono', monospace;
}

.bly-calendar-day {
	min-height: 100px;
	padding: 8px;
	background: #fafafa;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.bly-calendar-day:hover {
	background: #f0f0f0;
}

.bly-calendar-day.other-month {
	opacity: 0.3;
}

.bly-calendar-day.has-event {
	background: #e3f2fd;
	cursor: pointer;
}

.bly-calendar-day.has-event:hover {
	background: #bbdefb;
}

.bly-calendar-day-number {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 4px;
	font-family: 'Syne', sans-serif;
}

.bly-calendar-event {
	font-size: 11px;
	background: #191919;
	color: white;
	padding: 2px 6px;
	border-radius: 3px;
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: 'Roboto Mono', monospace;
}

/* ===== POJEDYNCZE SZKOLENIE ===== */
.bly-single-szkolenie-wrapper {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0;
	background-color: #fdfbf5;
}

/* SEKCJA HERO - Obrazek i podstawowe info */
.bly-szkolenie-hero-section {
	padding: 60px 20px;
	background: #fdfbf5;
}

.bly-hero-grid {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: stretch;
}

.bly-hero-image-col {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	display: flex;
}

.bly-hero-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.bly-hero-placeholder {
	width: 100%;
	height: 400px;
	background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bly-hero-info-col {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.bly-szkolenie-header {
	margin: 0;
}

.bly-szkolenie-date {
	font-size: 14px;
	color: #666;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	width: 100%;
	font-family: 'Roboto Mono', monospace;
}

.bly-szkolenie-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 20px 0;
	line-height: 1.2;
	color: #1a1a1a;
	font-family: 'Syne', sans-serif;
}

.bly-szkolenie-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 16px;
	color: #333;
	font-family: 'Roboto Mono', monospace;
}

.bly-meta-prowadzacy {
	font-size: 18px;
}

.bly-meta-lokalizacja {
	color: #666;
}

/* Box z szczegÃ³Å‚ami w hero */
.bly-hero-info-col .bly-szkolenie-details-box {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
}

.bly-szkolenie-details-box h3 {
	font-size: 20px;
	margin: 0 0 20px 0;
	color: #1a1a1a;
	font-family: 'Syne', sans-serif;
}

/* SEKCJA TREÅšCI - PeÅ‚na szerokoÅ›Ä‡ */
.bly-szkolenie-content-section {
	padding: 0 20px;
	background: #fdfbf5;
}

.bly-content-wrapper {
	max-width: 1400px;
	margin: 0 auto;
}

.bly-szkolenie-content {
	font-size: 17px;
	line-height: 1.8;
	color: #333;
	font-family: 'Roboto Mono', monospace;
}

.bly-szkolenie-content h2 {
	font-size: 32px;
	font-weight: 700;
	margin: 50px 0 25px 0;
	color: #1a1a1a;
	font-family: 'Syne', sans-serif;
}

.bly-szkolenie-content h3 {
	font-size: 24px;
	font-weight: 600;
	margin: 40px 0 20px 0;
	color: #1a1a1a;
	font-family: 'Syne', sans-serif;
}

.bly-szkolenie-content p {
	margin-bottom: 20px;
}

.bly-szkolenie-content ul,
.bly-szkolenie-content ol {
	margin: 20px 0 20px 30px;
}

.bly-szkolenie-content li {
	margin-bottom: 10px;
}

/* ===== SEKCJE TREÅšCI ===== */
.bly-content-section {
	margin-bottom: 80px;
}

.bly-content-section:last-child {
	margin-bottom: 0;
}

.bly-section-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 25px 0;
	color: #1a1a1a;
	line-height: 1.3;
	font-family: 'Syne', sans-serif;
}

.bly-section-text {
	font-size: 17px;
	line-height: 1.8;
	color: #333;
	font-family: 'Roboto Mono', monospace;
}

.bly-section-text p {
	margin-bottom: 20px;
}

.bly-section-text ul,
.bly-section-text ol {
	margin: 20px 0 20px 25px;
}

.bly-section-text li {
	margin-bottom: 12px;
}

.bly-section-text strong {
	font-weight: 600;
	color: #1a1a1a;
}

/* UkÅ‚ad: Tylko tekst */
.bly-layout-text_only {
	/* DomyÅ›lne style */
}

/* UkÅ‚ad: Tekst + obraz po prawej */
.bly-section-grid {
	display: grid;
	gap: 60px;
	align-items: start;
}

.bly-layout-text_image_right .bly-section-grid {
	grid-template-columns: 1fr 1fr;
}

.bly-section-image-col {
	border-radius: 16px;
	overflow: hidden;
}

.bly-section-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
}

/* UkÅ‚ad: Obraz po lewej + tekst */
.bly-layout-image_left_text .bly-section-grid {
	grid-template-columns: 1fr 1fr;
}

/* UkÅ‚ad: Tekst na peÅ‚nÄ… + obraz poniÅ¼ej */
.bly-layout-text_full_image_below .bly-section-image-full,
.bly-layout-image_full_text_below .bly-section-image-full {
	margin-top: 30px;
	border-radius: 16px;
	overflow: hidden;
}

.bly-layout-image_full_text_below .bly-section-image-full {
	margin-top: 0;
	margin-bottom: 30px;
}

.bly-section-image-full img {
	width: 100%;
	height: auto;
	display: block;
}

/* Stare pole "Dodatkowe info" - dla kompatybilnoÅ›ci */
.bly-dodatkowe-info {
	padding: 40px;
	background: white;
	border-radius: 16px;
	border-left: 4px solid #191919;
}

.bly-dodatkowe-info h3 {
	font-size: 24px;
	margin: 0 0 20px 0;
	color: #1a1a1a;
	font-family: 'Syne', sans-serif;
}

.bly-szkolenie-details-box h3 {
	font-size: 20px;
	margin: 0 0 20px 0;
	color: #1a1a1a;
	font-family: 'Syne', sans-serif;
}

.bly-details-list {
	list-style: none;
	padding: 0;
	margin: 0 0 30px 0;
}

.bly-details-list li {
	padding: 15px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	justify-content: space-between;
	gap: 15px;
	align-items: center;
}

.bly-details-list li:first-child {
	padding-top: 0;
}

.bly-details-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bly-detail-label {
	font-weight: 600;
	color: #666;
	font-size: 14px;
	font-family: 'Roboto Mono', monospace;
}

.bly-detail-value {
	text-align: right;
	color: #1a1a1a;
	font-size: 15px;
	font-family: 'Roboto Mono', monospace;
}

.bly-detail-cena {
	padding: 20px 0 !important;
	margin-top: 15px;
	border-top: 2px solid rgba(0, 0, 0, 0.1) !important;
	border-bottom: none !important;
}

.bly-detail-cena .bly-detail-label {
	font-size: 16px;
}

.bly-detail-cena .bly-detail-value {
	font-size: 24px;
	font-weight: 700;
	color: #191919;
}

/* ===== PRZYCISKI ===== */
.bly-btn {
	display: inline-block;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Roboto Mono', monospace;
}

.bly-btn-primary {
	background: #191919;
	color: white;
	width: 100%;
	box-shadow: 0 2px 8px rgba(25, 25, 25, 0.2);
}

.bly-btn-primary:hover {
	background: #000000;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(25, 25, 25, 0.3);
}

.bly-status-badge {
	padding: 16px 20px;
	text-align: center;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	font-family: 'Roboto Mono', monospace;
}

.bly-status-wkrotce {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.bly-status-pelne {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.bly-status-zakonczone {
	background: #e2e3e5;
	color: #383d41;
	border: 1px solid #d6d8db;
}

/* ===== FORMULARZ ZAPISU ===== */
.bly-formularz-section {
	padding: 80px 20px;
	background: #fdfbf5;
}

.bly-formularz-container {
	max-width: 1200px;
	margin: 0 auto;
	background: white;
	padding: 50px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bly-formularz-container h2 {
	margin: 0 0 35px 0;
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
	font-family: 'Syne', sans-serif;
}

.bly-zapis-form {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.bly-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
}

.bly-form-field label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: #333;
	font-size: 15px;
	font-family: 'Roboto Mono', monospace;
}

.bly-form-field input[type='text'],
.bly-form-field input[type='email'],
.bly-form-field input[type='tel'],
.bly-form-field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	transition: all 0.2s ease;
	font-family: 'Roboto Mono', monospace;
}

.bly-form-field input:focus,
.bly-form-field textarea:focus {
	outline: none;
	border-color: #191919;
	box-shadow: 0 0 0 3px rgba(25, 25, 25, 0.1);
}

.bly-form-field textarea {
	resize: vertical;
	min-height: 120px;
}

.bly-form-checkbox {
	margin-top: 10px;
}

.bly-form-checkbox label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

.bly-form-checkbox input[type='checkbox'] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.bly-form-response {
	padding: 18px 20px;
	border-radius: 8px;
	display: none;
	font-size: 15px;
	font-family: 'Roboto Mono', monospace;
}

.bly-form-response.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}

.bly-form-response.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

.bly-btn-submit {
	margin-top: 15px;
	font-size: 17px;
	padding: 18px 36px;
}

.bly-btn-submit:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ===== BRAK SZKOLEÅƒ ===== */
.bly-no-trainings {
	text-align: center;
	padding: 60px 20px;
	font-size: 18px;
	color: #666;
	font-family: 'Roboto Mono', monospace;
}

/* Prosta linia pozioma */
.bly-separator-container {
	width: 100%;
	padding: 40px 0;
	margin: 0 auto;
	max-width: 1400px;
}

.bly-separator-line {
	height: 1px;
	width: 100%;
	background-color: #191919;
	margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.bly-szkolenia-header {
		flex-direction: column;
		align-items: stretch;
	}

	.bly-current-date {
		text-align: center;
		order: -1;
	}

	.bly-szkolenia-nav {
		justify-content: center;
	}

	.bly-view-toggle {
		justify-content: center;
	}

	/* Lista szkoleÅ„ na mobile - powrÃ³t do flexbox */
	.bly-szkolenie-item {
		display: flex;
		flex-direction: column;
		gap: 20px;
		grid-template-columns: unset;
		padding: 20px 0;
		margin-bottom: 20px;
	}

	.bly-szkolenie-date {
		width: 100%;
		text-align: left;
		display: flex;
		gap: 12px;
		align-items: center;
		padding-top: 0;
	}

	.bly-date-day-name {
		font-size: 12px;
		margin-bottom: 0;
	}

	.bly-date-day {
		font-size: 28px;
	}

	.bly-szkolenie-content {
		display: flex;
		flex-direction: column-reverse;
		gap: 20px;
	}

	.bly-szkolenie-text {
		width: 100%;
	}

	.bly-szkolenie-thumb {
		width: 100%;
		height: 200px;
	}

	.bly-szkolenie-details {
		flex-direction: column;
		gap: 8px;
	}

	.bly-detail-item {
		margin-right: 0;
	}

	/* Responsive dla pojedynczego szkolenia */
	.bly-szkolenie-hero-section {
		padding: 30px 20px;
	}

	.bly-hero-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.bly-szkolenie-title {
		font-size: 28px;
	}

	.bly-hero-info-col .bly-szkolenie-details-box {
		padding: 25px;
	}

	.bly-szkolenie-content-section {
		padding: 40px 20px;
	}

	.bly-szkolenie-content {
		font-size: 16px;
	}

	.bly-szkolenie-content h2 {
		font-size: 26px;
	}

	.bly-szkolenie-content h3 {
		font-size: 20px;
	}

	/* Responsive dla sekcji treÅ›ci */
	.bly-content-section {
		margin-bottom: 50px;
	}

	.bly-section-title {
		font-size: 26px;
		margin-bottom: 20px;
	}

	.bly-section-text {
		font-size: 16px;
	}

	.bly-section-grid {
		grid-template-columns: 1fr !important;
		gap: 30px;
	}

	.bly-layout-image_left_text .bly-section-grid {
		direction: rtl;
	}

	.bly-layout-image_left_text .bly-section-grid > * {
		direction: ltr;
	}

	.bly-dodatkowe-info {
		padding: 25px;
	}

	.bly-formularz-container {
		padding: 30px 20px;
	}

	.bly-form-row {
		grid-template-columns: 1fr;
	}

	.bly-formularz-container h2 {
		font-size: 1.2rem;
	}
}

@media (max-width: 1024px) and (min-width: 769px) {
	.bly-hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.bly-szkolenie-title {
		font-size: 36px;
	}

	.bly-section-grid {
		gap: 40px;
	}

	.bly-hero-image {
		height: auto;
		object-fit: initial;
	}
}