/**
 * Aero Contactos — Frontend Styles
 *
 * Consolidated from the inline <style> blocks previously injected
 * via wp_footer in Code Snippets snippets 04 and 05.
 *
 * Sections:
 *   1. Search bar layout (.aero-colab-searchbar)
 *   2. Area dropdown (.aero-area-select)
 *   3. Collaborators directory (.aero-contactos-area)
 *   4. Subtab navigation (.aero-subtabs)
 *   5. Cards grid (.aero-cards-grid)
 *   6. Tab panels (.aero-tabpanel)
 *   7. Area divider (.aero-area-divider)
 *
 * @package AeroContactos
 */

/* ==========================================================================
   1. Search bar layout
   Scoped to .aero-colab-searchbar to avoid affecting other Elementor
   search widgets on the same page.
   ========================================================================== */

.aero-colab-searchbar .e-search-form {
	display: flex;
	gap: 1px;
	align-items: stretch;
}

.aero-colab-searchbar .e-search-input-wrapper {
	flex: 0 1 60%;
	min-width: 0;
}

/* ==========================================================================
   2. Area dropdown
   ========================================================================== */

.aero-colab-searchbar .e-search-form .aero-area-select {
	flex: 0 0 20%;
	min-width: 180px;
	max-width: 100%;
	padding: 10px 12px;
	border-radius: 0 32px 32px 0;
	height: auto;
	border-color: var(--e-search-input-border-color, #ddd);
	/* Background color uses a CSS custom property so it can be overridden
	   per-theme without editing this file. */
	background-color: var(--aero-contactos-select-bg, #fff);
}

/* Custom arrow — replaces browser default */
.aero-colab-searchbar .aero-area-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 32px;
}

/* Mobile: stack vertically */
@media (max-width: 1024px) {
	.aero-colab-searchbar .e-search-form {
		flex-direction: column;
	}

	.aero-colab-searchbar .e-search-input-wrapper,
	.aero-colab-searchbar .e-search-form .aero-area-select,
	.aero-colab-searchbar .e-search-form .e-search-submit {
		width: 100%;
		flex: 0 0 auto;
	}

	.aero-colab-searchbar .e-search-form .aero-area-select {
		border-radius: 0 0 16px 16px;
	}
}

/* ==========================================================================
   3. Collaborators directory — area sections
   ========================================================================== */

.aero-contactos-area {
	margin: 28px 0;
}

.aero-contactos-area h2 {
	margin: 0 0 14px;
}

.aero-area-divider {
	margin: 32px 0;
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   4. Subtab navigation
   ========================================================================== */

.aero-subtabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.aero-subtabs button {
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #fff;
	padding: 8px 12px;
	border-radius: 999px;
	cursor: pointer;
	font-size: inherit;
	line-height: inherit;
}

.aero-subtabs button.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
}

/* ==========================================================================
   5. Cards grid — responsive 3 → 2 → 1 column layout
   ========================================================================== */

.aero-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 1024px) {
	.aero-cards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.aero-cards-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   6. Tab panels
   ========================================================================== */

/* Use [hidden] attribute — set by PHP (hidden attribute) and toggled by JS */
.aero-tabpanel[hidden] {
	display: none !important;
}
