/* OpenStuff Timeline - Single & Archive templates */

/* Single - באנר */
.ost-single-timeline .ost-timeline-banner {
	margin: 0 0 1.5rem;
	overflow: hidden;
	border-radius: 0.5rem;
}

.ost-single-timeline .ost-timeline-banner-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	max-height: 280px;
}

.ost-single-timeline .ost-timeline-header {
	margin-bottom: 1rem;
}

.ost-single-timeline .ost-timeline-title {
	margin: 0;
	font-size: 1.75rem;
}

.ost-single-timeline .ost-timeline-content {
	margin-top: 1rem;
}

/* Archive - מסננים - קומפקטי, גופן Rubik, שורה אחת */
.ost-archive-filters {
	margin-bottom: 1rem;
	padding: 0.5rem 0;
	font-family: 'Rubik', sans-serif;
}

.ost-filter-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5rem;
}

.ost-filter-select {
	padding: 0.35rem 1.75rem 0.35rem 0.6rem;
	border: 1px solid #ddd;
	border-radius: 999px;
	font-size: 0.875rem;
	font-family: 'Rubik', sans-serif;
	background: #fff;
	min-width: 120px;
	max-width: 180px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
}

[dir="rtl"] .ost-filter-select {
	background-position: left 0.5rem center;
	padding: 0.35rem 0.6rem 0.35rem 1.75rem;
}

.ost-filter-select:focus {
	border-color: #f5a962;
	outline: none;
	box-shadow: 0 0 0 2px rgba(245, 169, 98, 0.2);
}

.ost-filter-submit {
	padding: 0.35rem 1rem;
	background: linear-gradient(135deg, #f5a962 0%, #e88b9a 100%);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: 'Rubik', sans-serif;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
}

.ost-filter-submit:hover {
	opacity: 0.95;
	transform: translateY(-1px);
}

.ost-filter-submit:active {
	transform: translateY(0);
}

@media (max-width: 600px) {
	.ost-filter-row {
		flex-wrap: wrap;
	}
	.ost-filter-select {
		min-width: 100%;
		max-width: none;
	}
}

/* Archive - גריד */
.ost-archive-timeline {
	font-family: 'Rubik', sans-serif;
}

.ost-archive-timeline .ost-archive-header {
	margin-bottom: 1rem;
}

.ost-archive-timeline .ost-archive-title {
	margin: 0;
	font-size: 2rem;
	font-family: 'Rubik', sans-serif;
}

.ost-timelines-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
}

@media (max-width: 480px) {
	.ost-timelines-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.ost-archive-timeline .ost-archive-title {
		font-size: 1.5rem;
	}
}

.ost-timeline-card {
	margin: 0;
}

.ost-timeline-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e0e0e0;
	border-radius: 0.5rem;
	overflow: hidden;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.ost-timeline-card-link:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-color: #ccc;
}

.ost-timeline-card-thumb {
	aspect-ratio: 16/10;
	background: #f5f5f5;
	overflow: hidden;
}

.ost-timeline-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ost-timeline-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ost-timeline-card-placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	opacity: 0.4;
}

.ost-timeline-card-title {
	margin: 0;
	padding: 1rem;
	font-size: 1rem;
	line-height: 1.3;
}

.ost-timeline-card-footer {
	display: flex;
	gap: 1rem;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	color: #666;
	border: 1px solid #e0e0e0;
	border-top: none;
	border-radius: 0 0 0.5rem 0.5rem;
}

[dir="rtl"] .ost-timeline-card-footer {
	border-radius: 0 0 0.5rem 0.5rem;
}

.ost-card-meta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.ost-no-timelines {
	padding: 2rem;
	text-align: center;
}

/* כפתור הרשמה לעריכת צירים */
.ost-archive-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.ost-editor-register-btn {
	padding: 0.5rem 1.25rem;
	background: linear-gradient(135deg, #f5a962 0%, #e88b9a 100%);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 500;
	font-family: 'Rubik', sans-serif;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
}

.ost-editor-register-btn:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(245, 169, 98, 0.4);
}

.ost-editor-register-btn:active {
	transform: translateY(0);
}

/* מודל טופס הרשמה */
.ost-editor-form-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
	padding: 1rem;
}

.ost-editor-form-overlay.ost-open {
	opacity: 1;
	visibility: visible;
}

.ost-editor-form-modal {
	background: #fff;
	border-radius: 0.75rem;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ost-editor-form-close {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	width: 36px;
	height: 36px;
	border: none;
	background: #f0f0f0;
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
	transition: background 0.2s, color 0.2s;
}

[dir="rtl"] .ost-editor-form-close {
	left: auto;
	right: 0.75rem;
}

.ost-editor-form-close:hover {
	background: #e0e0e0;
	color: #333;
}

.ost-editor-form-title {
	margin: 1.5rem 3rem 0.5rem 1rem;
	font-size: 1.5rem;
	font-family: 'Rubik', sans-serif;
}

[dir="rtl"] .ost-editor-form-title {
	margin: 1.5rem 1rem 0.5rem 3rem;
}

.ost-editor-form-desc {
	margin: 0 1rem 1.25rem;
	color: #555;
	font-size: 0.95rem;
	line-height: 1.5;
}

.ost-editor-registration-form {
	padding: 0 1rem 1.5rem;
}

.ost-form-field {
	margin-bottom: 1.25rem;
}

.ost-form-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 500;
	color: #333;
	font-size: 0.95rem;
}

.ost-form-field .required {
	color: #e88b9a;
}

.ost-form-field input[type="text"],
.ost-form-field input[type="email"] {
	width: 100%;
	padding: 0.6rem 0.85rem;
	border: 1px solid #ddd;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-family: 'Rubik', sans-serif;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ost-form-field input:focus {
	border-color: #f5a962;
	outline: none;
	box-shadow: 0 0 0 2px rgba(245, 169, 98, 0.2);
}

.ost-field-hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: #777;
}

/* כפתורי בחירה דמויי תגיות */
.ost-pill-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ost-pill {
	padding: 0.4rem 0.9rem;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 999px;
	font-size: 0.875rem;
	font-family: 'Rubik', sans-serif;
	color: #555;
	cursor: pointer;
	transition: all 0.2s;
}

.ost-pill:hover {
	border-color: #f5a962;
	color: #333;
}

.ost-pill.selected {
	background: linear-gradient(135deg, #f5a962 0%, #e88b9a 100%);
	border-color: transparent;
	color: #fff;
}

.ost-study-group-block {
	padding: 1rem;
	background: #f9f9f9;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
}

.ost-group-block-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #444;
}

.ost-add-group-btn {
	padding: 0.5rem 1rem;
	background: transparent;
	border: 1px dashed #ccc;
	border-radius: 0.5rem;
	color: #666;
	font-size: 0.9rem;
	font-family: 'Rubik', sans-serif;
	cursor: pointer;
	margin-bottom: 1rem;
	transition: border-color 0.2s, color 0.2s;
}

.ost-add-group-btn:hover {
	border-color: #f5a962;
	color: #f5a962;
}

.ost-form-message {
	margin-bottom: 1rem;
	padding: 0.6rem 0.85rem;
	border-radius: 0.5rem;
	font-size: 0.95rem;
}

.ost-form-message.ost-success {
	background: #e8f5e9;
	color: #2e7d32;
}

.ost-form-message.ost-error {
	background: #ffebee;
	color: #c62828;
}

.ost-form-message.ost-loading {
	background: #e3f2fd;
	color: #1565c0;
}

.ost-form-submit {
	width: 100%;
	padding: 0.85rem 1.5rem;
	background: linear-gradient(135deg, #f5a962 0%, #e88b9a 100%);
	color: #fff;
	border: none;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	font-family: 'Rubik', sans-serif;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
}

.ost-form-submit:hover {
	opacity: 0.95;
	transform: translateY(-1px);
}

.ost-form-submit:active {
	transform: translateY(0);
}
