/* InsiderSpain Directory — front-end styles */

.insider-directory,
.insider-profile,
.insider-edit {
	max-width: 1100px;
	margin: 0 auto;
}

/* Filters */
.insider-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	margin-bottom: 2rem;
	padding: 1rem 1.25rem;
	background: #f6f7f9;
	border-radius: 10px;
}

.insider-filter {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.insider-filter label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #555;
}

.insider-filter select,
.insider-filter input[type="search"] {
	min-width: 180px;
	padding: 0.5rem 0.6rem;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	background: #fff;
}

.insider-filter--search { flex: 1 1 220px; }
.insider-filter--search input { width: 100%; }
.insider-filter--actions { flex-direction: row; gap: 0.5rem; }

/* Buttons */
.insider-btn {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 6px;
	background: #c0392b;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
}
.insider-btn:hover { background: #a5301f; color: #fff; }
.insider-btn--ghost {
	background: transparent;
	color: #c0392b;
	border: 1px solid #c0392b;
}
.insider-btn--ghost:hover { background: #c0392b; color: #fff; }

/* Grid */
.insider-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
}

.insider-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.insider-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
	transform: translateY(-2px);
}

.insider-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	background: #eef0f3;
	overflow: hidden;
}
.insider-card__img { width: 100%; height: 100%; object-fit: cover; }

.insider-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2.5rem;
	font-weight: 700;
	color: #fff;
	background: #c0392b;
}

.insider-card__body { padding: 1rem 1.1rem 1.2rem; }
.insider-card__name { margin: 0 0 0.2rem; font-size: 1.15rem; }
.insider-card__name a { text-decoration: none; }
.insider-card__company { margin: 0 0 0.6rem; color: #666; font-size: 0.95rem; }

.insider-card__meta { margin: 0 0 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.insider-tag {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 999px;
	background: #eef0f3;
	color: #333;
}
.insider-tag--city { background: #e7f0e7; color: #256029; }

.insider-card__link { font-weight: 600; text-decoration: none; }

.insider-empty,
.insider-notice { padding: 1rem 1.25rem; border-radius: 8px; background: #f6f7f9; }

/* Pagination */
.insider-pagination { margin-top: 2rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.insider-pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.7rem;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	text-decoration: none;
}
.insider-pagination .current {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}

/* Single profile */
.insider-profile__back { display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.insider-profile__header {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}
.insider-profile__photo {
	width: 140px;
	height: 140px;
	border-radius: 12px;
	overflow: hidden;
	flex: 0 0 auto;
	background: #eef0f3;
}
.insider-profile__img { width: 100%; height: 100%; object-fit: cover; }
.insider-profile__name { margin: 0 0 0.2rem; }
.insider-profile__company { margin: 0 0 0.5rem; color: #666; font-size: 1.05rem; }
.insider-profile__section { margin-bottom: 1.5rem; }
.insider-profile__links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Edit form */
.insider-edit__form { max-width: 640px; }
.insider-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.insider-field label { font-weight: 600; }
.insider-field input[type="text"],
.insider-field input[type="url"],
.insider-field select,
.insider-field textarea {
	padding: 0.55rem 0.65rem;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	width: 100%;
}
.insider-field--checkbox label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.insider-help { font-size: 0.85rem; color: #777; margin: 0.2rem 0 0; }

.insider-notice--success { background: #e7f4e7; color: #1e6023; }
.insider-notice--error { background: #fbeaea; color: #a5301f; }
.insider-notice--info { background: #eef3fb; color: #1f4e79; margin-bottom: 1rem; }

@media (max-width: 600px) {
	.insider-filter select,
	.insider-filter input[type="search"] { min-width: 0; width: 100%; }
	.insider-filter { width: 100%; }
}
