/**
 * Shik Workshop - Frontend Styles
 */

/* ── Grid & Cards ─────────────────────────────────────────── */

.shik-workshops-grid {
	display: grid;
	gap: 1.5rem;
	margin-block: 2rem;
}

.shik-workshops-grid--cols-1 { grid-template-columns: 1fr; }
.shik-workshops-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.shik-workshops-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.shik-workshops-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
	.shik-workshops-grid--cols-3,
	.shik-workshops-grid--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.shik-workshops-grid--cols-2,
	.shik-workshops-grid--cols-3,
	.shik-workshops-grid--cols-4 {
		grid-template-columns: 1fr;
	}
}

.shik-workshop-card {
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shik-workshop-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.shik-workshop-card__image {
	position: relative;
	display: block;
	overflow: hidden;
}

.shik-workshop-card__image img {
	width: 100%;
	height: 100%;
	min-height: 182px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.shik-workshop-card:hover .shik-workshop-card__image img {
	transform: scale(1.04);
}

.shik-workshop-card__badge {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
}

.shik-workshop-card__badge--open { background: #16a34a; }
.shik-workshop-card__badge--closed { background: #64748b; }
.shik-workshop-card__badge--full { background: #dc2626; }

.shik-workshop-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.75rem;
}

.shik-workshop-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.shik-workshop-card__category {
	font-size: 0.75rem;
	color: #6366f1;
	background: #eef2ff;
	padding: 2px 8px;
	border-radius: 4px;
}

.shik-workshop-card__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.4;
}

.shik-workshop-card__title a {
	color: #1e293b;
	text-decoration: none;
}

.shik-workshop-card__title a:hover {
	color: #6366f1;
}

.shik-workshop-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.875rem;
	color: #64748b;
}

.shik-workshop-card__meta li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.shik-workshop-card__excerpt {
	margin: 0;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.shik-workshop-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid #f1f5f9;
}

.shik-workshop-card__price {
	font-weight: 700;
	color: #6366f1;
}

.shik-workshop-card__price-free {
	color: #16a34a;
}

.shik-workshop-card__btn {
	display: inline-block;
	padding: 0.45rem 1rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.2s;
}

.shik-workshop-card__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.shik-workshop-card__btn:hover::before {
    left: 100%;
}

.shik-workshop-card__btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.shik-workshop-card__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.shik-workshops-empty {
	text-align: center;
	padding: 2rem;
	color: #64748b;
}

/* ── Single Workshop ──────────────────────────────────────── */

.shik-workshop-single {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1rem 2rem;
}

/* ── Hero (modern) ──────────────────────────────────────────── */

.shik-workshop-single__hero {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 2.5rem;
	min-height: 320px;
	display: flex;
	align-items: flex-end;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.shik-workshop-single__hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.shik-workshop-single__hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(15, 23, 42, 0.92) 0%,
		rgba(30, 41, 59, 0.78) 45%,
		rgba(79, 70, 229, 0.55) 100%
	);
}

.shik-workshop-single__hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.shik-workshop-single__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 2.5rem 2rem;
	color: #fff;
}

.shik-workshop-single__hero-main {
	max-width: 720px;
	margin-bottom: 1.75rem;
}

.shik-workshop-single__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.shik-workshop-single__category {
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
	padding: 4px 12px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.shik-workshop-single__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.75rem, 4vw, 2rem);
	line-height: 1.25;
	color: #fff;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.shik-workshop-single__excerpt {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.85);
	max-width: 640px;
}

.shik-workshop-single__status {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.shik-workshop-single__status--open { background: #16a34a; }
.shik-workshop-single__status--closed { background: #64748b; }
.shik-workshop-single__status--full { background: #dc2626; }

.shik-workshop-single__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.85rem;
}

.shik-workshop-single__stat {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	padding: 0.85rem 1rem;
}

.shik-workshop-single__stat-label {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 0.25rem;
}

.shik-workshop-single__stat-value {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.4;
}

.shik-workshop-single__stat-remaining {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: #a5f3fc;
}

@media (max-width: 768px) {
	.shik-workshop-single__hero {
		min-height: auto;
		border-radius: 16px;
	}

	.shik-workshop-single__hero-inner {
		padding: 1.75rem 1.25rem;
	}

	.shik-workshop-single__stats {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.shik-workshop-single__stats {
		grid-template-columns: 1fr;
	}
}

.shik-workshop-single__layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2rem;
	align-items: start;
}

@media (max-width: 900px) {
	.shik-workshop-single__layout {
		grid-template-columns: 1fr;
	}
}

.shik-workshop-single__section {
	margin-bottom: 2rem;
}

.shik-workshop-single__section h2 {
	font-size: 1.35rem;
	margin: 0 0 1rem;
	color: #1e293b;
	border-bottom: 2px solid #eef2ff;
	padding-bottom: 0.5rem;
}

.shik-workshop-single__content {
	line-height: 1.8;
	color: #475569;
}

.shik-workshop-single__curriculum {
	margin: 0;
	padding-inline-start: 1.5rem;
	line-height: 2;
	color: #475569;
}

.shik-workshop-single__prerequisites {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.65rem;
}

.shik-workshop-single__prerequisites li {
	position: relative;
	padding: 0.75rem 2.75rem 0.75rem 1rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	color: #475569;
	line-height: 1.5;
}

.shik-workshop-single__prerequisites li::before {
	content: '✓';
	position: absolute;
	inset-inline-start: 0.85rem;
	top: 0.85rem;
	width: 1.25rem;
	height: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 700;
	color: #6366f1;
	background: #eef2ff;
	border-radius: 50%;
}

.shik-workshop-single__video {
	border-radius: 14px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.shik-workshop-single__video video {
	width: 100%;
	display: block;
	max-height: 480px;
}

.shik-workshop-single__remaining {
	display: inline-block;
	margin-inline-start: 0.25rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #6366f1;
}

.shik-workshop-single__sidebar {
	position: sticky;
	top: 2rem;
}

.shik-workshop-single__info-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 1.5rem;
}

.shik-workshop-single__info-box h3 {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	color: #1e293b;
}

.shik-workshop-single__info-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.shik-workshop-single__info-list li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid #e2e8f0;
}

.shik-workshop-single__info-list li:last-child {
	border-bottom: none;
}

.shik-workshop-single__info-label {
	font-size: 0.8rem;
	color: #94a3b8;
}

.shik-workshop-single__info-value {
	font-weight: 600;
	color: #1e293b;
}

.shik-workshop-single__info-price {
	color: #6366f1;
	font-size: 1.1rem;
}

button.shik-workshop-single__register-btn,
a.shik-workshop-single__register-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.85rem 1rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff !important;
	border: none;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	transition: background 0.3s ease;
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
}

button.shik-workshop-single__register-btn:hover,
a.shik-workshop-single__register-btn:hover {
	color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button.shik-workshop-single__register-btn--disabled {
	background: #94a3b8;
	cursor: not-allowed;
}


button.shik-workshop-single__register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button.shik-workshop-single__register-btn:hover::before {
    left: 100%;
}



button.shik-workshop-single__register-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* ── Archive ────────────────────────────────────────────────── */

.shik-workshop-archive {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.shik-workshop-archive__header {
	text-align: center;
	margin-bottom: 2rem;
}

.shik-workshop-archive__title {
	font-size: 2rem;
	margin: 0 0 0.5rem;
}

.shik-workshop-archive__pagination {
	margin-top: 2rem;
	text-align: center;
}

/* ── Workshop List Filters ──────────────────────────────────── */

.shik-workshops-wrap {
	position: relative;
}

.shik-workshops-no-results {
	margin-bottom: 1rem;
}

.shik-workshops-filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	align-items: center;
}

.shik-workshops-filters__search {
	flex: 1;
	min-width: 338px;
}

.shik-workshops-filters .shik-filter-search,
.shik-workshops-filters .shik-filter-category,
.shik-workshops-filters .shik-filter-status,
.shik-workshops-filters .shik-filter-orderby {
	padding: 0.55rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.9rem;
	background: #fff;
	color: #1e293b;
}

.shik-workshops-filters .shik-filter-search {
	width: 100%;
	box-sizing: border-box;
}

/* ── Registration Modal ───────────────────────────────────────── */

.shik-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.shik-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.shik-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(2px);
}

.shik-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	z-index: 1;
}

button.shik-modal__close {
	position: absolute;
	top: 1rem;
	inset-inline-end: 1rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #94a3b8;
	padding: 0.25rem;
}

button.shik-modal__close:hover {
	color: #1e293b;
}

.shik-modal__title {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	color: #1e293b;
}

.shik-modal__subtitle {
	margin: 0 0 1rem;
	color: #64748b;
	font-size: 0.95rem;
}

.shik-modal__price {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	background: #eef2ff;
	border-radius: 8px;
	color: #4338ca;
	font-size: 0.95rem;
}

body.shik-modal-open {
	overflow: hidden;
}

/* ── Registration Form ──────────────────────────────────────── */

.shik-form-row {
	display: grid;
	gap: 1rem;
	margin-bottom: 1rem;
}

.shik-form-row--2 {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 480px) {
	.shik-form-row--2 {
		grid-template-columns: 1fr;
	}
}

.shik-form-row .shik-form-field {
	margin-bottom: 0;
}

.shik-form-field {
	margin-bottom: 1rem;
}

.shik-form-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: #334155;
}

.shik-form-field .required {
	color: #dc2626;
}

.shik-form-field input[type="text"],
.shik-form-field input[type="tel"] {
	width: 100%;
	padding: 0.6rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.95rem;
	box-sizing: border-box;
}

/* ── Modern File Upload ─────────────────────────────────────── */

.shik-file-upload__input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
}

.shik-file-upload__dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 1.75rem 1.25rem;
	border: 2px dashed #c7d2fe;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8faff 0%, #f1f5f9 100%);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	text-align: center;
}

.shik-file-upload__dropzone:hover,
.shik-file-upload.is-dragover .shik-file-upload__dropzone {
	border-color: #6366f1;
	background: #eef2ff;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.shik-file-upload.has-file .shik-file-upload__dropzone {
	border-color: #16a34a;
	background: #f0fdf4;
	border-style: solid;
}

.shik-file-upload__icon {
	color: #6366f1;
	line-height: 0;
}

.shik-file-upload.has-file .shik-file-upload__icon {
	color: #16a34a;
}

.shik-file-upload__title {
	font-weight: 700;
	font-size: 0.95rem;
	color: #334155;
}

.shik-file-upload__subtitle {
	font-size: 0.85rem;
	color: #64748b;
}

.shik-file-upload__filename {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #16a34a;
	word-break: break-all;
}

.shik-file-upload__filename:empty {
	display: none;
}

.shik-file-upload__remove {
	margin-top: 0.65rem;
	padding: 0.35rem 0.85rem;
	background: none;
	border: 1px solid #fecaca;
	border-radius: 6px;
	color: #dc2626;
	font-size: 0.8rem;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s;
}

.shik-file-upload__remove:hover {
	background: #fef2f2;
}

.shik-form-field input:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.shik-form-hint {
	margin: 0.35rem 0 0;
	font-size: 0.8rem;
	color: #94a3b8;
}

.shik-form-message {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.shik-form-message.is-error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.shik-form-message.is-success {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

.shik-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Notices ────────────────────────────────────────────────── */

.shik-notice {
	padding: 1rem 1.25rem;
	border-radius: 10px;
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.shik-notice--success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.shik-notice--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}
