/**
 * Public styles for Berotec CV plugin.
 *
 * @since 1.0.0
 */

/* ========================================
   Filter Form
   ======================================== */

.berotec-cv-filter {
	margin-bottom: 1.5rem;
}

.berotec-cv-filter__search {
	position: relative;
	margin-bottom: 0.75rem;
}

.berotec-cv-filter__input {
	width: 100%;
	padding: 0.65rem 2.75rem 0.65rem 0.85rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.95rem;
	line-height: 1.5;
	background: #fff;
	color: #1a202c;
	outline: none;
	box-sizing: border-box;
}

.berotec-cv-filter__input:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.berotec-cv-filter__search-icon {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}

.berotec-cv-filter__dropdowns {
	display: flex;
	gap: 0.75rem;
}

.berotec-cv-filter__select {
	flex: 1;
	padding: 0.55rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9rem;
	background: #fff;
	color: #1a202c;
	outline: none;
	cursor: pointer;
}

.berotec-cv-filter__select:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.berotec-cv-no-results {
	text-align: center;
	color: #64748b;
	padding: 2rem 1rem;
	font-size: 0.95rem;
}

/* ========================================
   CV List Grid
   ======================================== */

.berotec-cv-list {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.berotec-cv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 1.5rem;
}

.berotec-cv-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem 1rem;
	color: #666;
	font-size: 1.1rem;
}

/* ========================================
   CV Card
   ======================================== */

.berotec-cv-card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.berotec-cv-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
	transform: translateY(-2px);
}

/* Card Header */
.berotec-cv-card__header {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

/* Card Photo */
.berotec-cv-card__photo {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
}

.berotec-cv-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.berotec-cv-card__photo-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #667eea, #764ba2);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.berotec-cv-card__photo-placeholder span {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.berotec-cv-card__photo-placeholder--large {
	width: 100%;
	height: 100%;
	border-radius: initial;
	min-height: 150px;
}

.berotec-cv-card__photo-placeholder--large span {
	font-size: 3rem;
}

/* Card Intro (name + title beside photo) */
.berotec-cv-card__intro {
	flex: 1;
	min-width: 0;
}

.berotec-cv-card__name {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 0.125rem;
	color: #1a202c;
	line-height: 1.3;
}

.berotec-cv-card__title {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
	line-height: 1.4;
}

/* Card Content (description) */
.berotec-cv-card__content {
	flex: 1;
	min-width: 0;
	margin-bottom: 1.25rem;
}

.berotec-cv-card__description {
	font-size: 0.9rem;
	color: #475569;
	line-height: 1.6;
	margin: 0;
}

/* Card Footer (buttons) */
.berotec-cv-card__footer {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: auto;
}

.berotec-cv-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	font-weight: 500;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
	line-height: 1.4;
}

.berotec-cv-card__btn svg {
	flex-shrink: 0;
}

.berotec-cv-card__btn--contact {
	background: #f1f5f9;
	color: #334155;
}

.berotec-cv-card__btn--contact:hover {
	background: #e2e8f0;
	color: #1e293b;
	text-decoration: none;
}

.berotec-cv-card__btn--more {
	background: #667eea;
	color: #fff;
}

.berotec-cv-card__btn--more:hover {
	background: #5a6fd6;
	color: #fff;
	text-decoration: none;
}

/* ========================================
   Tags (shared between card and single)
   ======================================== */

.berotec-cv-tag {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.2rem 0.6rem;
	border-radius: 100px;
	line-height: 1.4;
	font-weight: 500;
}

.berotec-cv-tag--competence {
	background: #eff6ff;
	color: #1d4ed8;
}

.berotec-cv-tag--skill {
	background: #f0fdf4;
	color: #15803d;
}

.berotec-cv-tag--more {
	background: #f1f5f9;
	color: #475569;
}

.berotec-cv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ========================================
   Infinite Scroll Loader
   ======================================== */

.berotec-cv-loader {
	text-align: center;
	padding: 2rem 1rem;
	display: none;
}

.berotec-cv-loader.active {
	display: block;
}

.berotec-cv-loader p {
	color: #64748b;
	font-size: 0.9rem;
	margin: 0.75rem 0 0;
}

.berotec-cv-spinner {
	display: inline-block;
	width: 36px;
	height: 36px;
	border: 3px solid #e2e8f0;
	border-top-color: #667eea;
	border-radius: 50%;
	animation: berotec-spin 0.8s linear infinite;
}

@keyframes berotec-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ========================================
   Single CV Page
   ======================================== */

.berotec-cv-single {
	max-width: 960px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.berotec-cv-single__back {
	margin-bottom: 1.5rem;
}

.berotec-cv-single__back a {
	color: #64748b;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.15s ease;
}

.berotec-cv-single__back a:hover {
	color: #334155;
}

/* Two-column layout */
.berotec-cv-single__row {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
	margin-bottom: 2rem;
}

.berotec-cv-single__col-photo {
	flex-shrink: 0;
	width: 220px;
}

.berotec-cv-single__photo {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.berotec-cv-single__photo img {
	width: 100%;
	height: auto;
	display: block;
}

.berotec-cv-single__col-content {
	flex: 1;
	min-width: 0;
}

.berotec-cv-single__name {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 0.125rem;
	color: #1a202c;
	line-height: 1.2;
}

.berotec-cv-single__title {
	font-size: 1.25rem;
	color: #64748b;
	margin: 0 0 1rem;
}

.berotec-cv-single__meta {
	font-size: 0.95rem;
	color: #374151;
	line-height: 1.6;
	margin-bottom: 0.5rem;
}

.berotec-cv-single__meta strong {
	display: block;
	color: #1a202c;
}

.berotec-cv-single__contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	padding: 0.6rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 500;
	background: #64748b;
	color: #fff;
	border-radius: 100px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.berotec-cv-single__contact-btn:hover {
	background: #475569;
	color: #fff;
	text-decoration: none;
}

.berotec-cv-single__contact-btn svg {
	flex-shrink: 0;
}

/* Sections */
.berotec-cv-single__section {
	margin-bottom: 2rem;
}

.berotec-cv-single__section h2 {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a202c;
	margin: 0 0 0.75rem;
}

.berotec-cv-single__section p {
	color: #374151;
	line-height: 1.7;
	margin: 0;
}


/* ========================================
   Competence List (Single CV)
   ======================================== */

.berotec-cv-single__competences {
	margin-bottom: 1.5rem;
}

.berotec-cv-single__competence-list {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.berotec-cv-single__competence-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.5rem 0.75rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	gap: 1rem;
}

.berotec-cv-single__competence-name {
	font-weight: 500;
	color: #1a202c;
}

.berotec-cv-single__competence-level {
	font-size: 0.85rem;
	color: #64748b;
	flex-shrink: 0;
}

/* ========================================
   Contact Actions (Single CV)
   ======================================== */

.berotec-cv-single__contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.berotec-cv-single__contact-btn--phone {
	background: #f0fdf4;
	color: #15803d;
	border-color: #bbf7d0;
}

.berotec-cv-single__contact-btn--phone:hover {
	background: #dcfce7;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
	.berotec-cv-grid {
		grid-template-columns: 1fr;
	}

	.berotec-cv-single__row {
		flex-direction: column;
	}

	.berotec-cv-single__col-photo {
		width: 160px;
	}

	.berotec-cv-single__name {
		font-size: 1.5rem;
	}

	.berotec-cv-case__header {
		flex-direction: column;
		gap: 0.25rem;
	}

	.berotec-cv-filter__dropdowns {
		flex-direction: column;
	}
}
