/**
 * Aha Mobile Menu - Admin Styles
 */

/* Tabs Navigation */
.aha-mobile-menu-tabs {
	margin: 20px 0 20px 0;
	border-bottom: 1px solid #ccc;
}

.aha-mobile-menu-tabs .nav-tab {
	margin-right: 5px;
	margin-bottom: -1px;
}

.aha-mobile-menu-tabs .nav-tab.nav-tab-active {
	border-bottom-color: #fff;
	background: #fff;
}

/* Tab Content */
.aha-mobile-menu-tab-content {
	display: none;
	padding: 20px 0;
}

.aha-mobile-menu-tab-content.active {
	display: block;
}

.aha-mobile-menu-tab-content .form-table {
	margin-top: 0;
}

.aha-mobile-menu-media-upload {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.aha-mobile-menu-media-upload .button {
	margin-top: 0;
}

.aha-mobile-menu-media-upload img,
.aha-mobile-menu-logo-preview img {
	max-width: 150px;
	height: auto;
	border-radius: 4px;
}

.aha-mobile-menu-color-picker {
	height: 40px;
	padding: 3px;
	border-radius: 4px;
	border: 1px solid #ddd;
	cursor: pointer;
}

.aha-mobile-menu-social-row {
	margin-bottom: 15px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fafafa;
}

.aha-mobile-menu-social-row label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.aha-mobile-menu-social-row input {
	width: 100%;
	padding: 8px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.aha-mobile-menu-social-row input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

#aha-mobile-menu-social-links {
	margin-bottom: 15px;
}

#aha-mobile-menu-add-social {
	margin-top: 10px;
}

.aha-mobile-menu-remove-social {
	background-color: #dc3545;
	border-color: #dc3545;
	color: white;
}

.aha-mobile-menu-remove-social:hover {
	background-color: #c82333;
	border-color: #bd2130;
}

textarea[name*="trigger_classes"] {
	width: 100%;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

textarea[name*="trigger_classes"]:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

/* ==========================================================================
   Promo Banner (header)
   ========================================================================== */
.aha-mobile-menu-promo-banner {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 20px 25px;
	border-radius: 6px;
	margin: 20px 0 25px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aha-mobile-menu-promo-banner-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.aha-mobile-menu-promo-banner-text {
	flex: 1;
	min-width: 250px;
}

.aha-mobile-menu-promo-banner-title {
	margin: 0 0 8px 0;
	color: #fff;
	font-size: 18px;
}

.aha-mobile-menu-promo-banner-desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	font-size: 14px;
	line-height: 1.5;
}

.aha-mobile-menu-promo-banner-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.aha-mobile-menu-promo-banner a {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: transform 0.2s, background 0.2s;
	white-space: nowrap;
}

.aha-mobile-menu-promo-banner a.aha-mobile-menu-btn-primary {
	background: #fff;
	color: #667eea;
}

.aha-mobile-menu-promo-banner a.aha-mobile-menu-btn-secondary {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.aha-mobile-menu-promo-banner a:hover {
	transform: translateY(-1px);
}

@media (max-width: 782px) {
	.aha-mobile-menu-promo-banner-inner {
		flex-direction: column;
		text-align: center;
	}
	.aha-mobile-menu-promo-banner-actions {
		width: 100%;
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: stretch;
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		padding-bottom: 4px;
	}
	.aha-mobile-menu-promo-banner a {
		flex: 0 0 auto;
		min-width: 170px;
		text-align: center;
		scroll-snap-align: start;
	}
}

/* ==========================================================================
   Promo Footer (sidebar)
   ========================================================================== */
.aha-mobile-menu-promo-sidebar {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #ddd;
}

.aha-mobile-menu-promo-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.aha-mobile-menu-promo-card {
	background: #f0f6fc;
	padding: 15px;
	border-radius: 4px;
	border-left: 3px solid #0073aa;
}

.aha-mobile-menu-promo-card-title {
	margin: 0 0 8px 0;
	color: #0073aa;
	font-size: 14px;
}

.aha-mobile-menu-promo-card-desc {
	margin: 0;
	color: #555;
	font-size: 13px;
	line-height: 1.4;
}

.aha-mobile-menu-promo-cta {
	text-align: center;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 4px;
}

.aha-mobile-menu-promo-cta-text {
	margin: 0 0 15px 0;
	color: #333;
	font-size: 15px;
}

.aha-mobile-menu-promo-cta a {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	padding: 12px 25px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s;
}

.aha-mobile-menu-promo-cta a:hover {
	color: #fff;
	background: #005a87;
}

/* Logo upload: hide when empty/has logo */
.aha-mobile-menu-upload-media.hidden,
.aha-mobile-menu-logo-preview-container.hidden {
	display: none !important;
}

.aha-mobile-menu-logo-preview {
	margin-bottom: 10px;
}

.aha-mobile-menu-remove-logo {
	background: #dc3232;
	color: #fff;
	border-color: #dc3232;
}

.aha-mobile-menu-remove-logo:hover {
	background: #c62828;
	border-color: #c62828;
	color: #fff;
}

/* Action buttons table */
.aha-mobile-menu-action-buttons-table {
	width: 100%;
	max-width: 600px;
}

.aha-mobile-menu-action-buttons-table td {
	padding: 5px 10px 5px 0;
}

.aha-mobile-menu-action-buttons-table td:first-child {
	width: 100px;
}

.aha-mobile-menu-action-buttons-table label {
	font-weight: 600;
}

.aha-mobile-menu-action-buttons-table input {
	width: 100%;
}

.aha-mobile-menu-action-buttons-table + .description {
	margin-top: 10px;
}

/* Social row (enhanced grid layout) */
.aha-mobile-menu-social-row-grid {
	display: grid;
	grid-template-columns: 1fr 2fr auto;
	gap: 10px;
	align-items: center;
}

.aha-mobile-menu-social-row-grid .aha-mobile-menu-social-row-label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.aha-mobile-menu-social-row-grid select,
.aha-mobile-menu-social-row-grid input[type="url"] {
	width: 100%;
}

.aha-mobile-menu-social-row-grid .aha-mobile-menu-social-row-actions {
	align-self: end;
}

.aha-mobile-menu-social-row.aha-mobile-menu-social-row-styled {
	margin-bottom: 15px;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Color palette selector */
#aha-mobile-menu-color-palette-selector {
	width: 300px;
	padding: 5px;
}

/* Form table dividers and section titles */
.aha-mobile-menu-form-divider td {
	padding: 20px 0 10px 0;
}

.aha-mobile-menu-form-divider hr {
	border: none;
	border-top: 1px solid #ddd;
	margin: 0;
}

.aha-mobile-menu-form-section-title td {
	padding: 0 0 15px 0;
}

.aha-mobile-menu-form-section-title h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

/* Trigger classes help text */
.aha-mobile-menu-trigger-help {
	color: #666;
	margin-top: 10px;
}

.aha-mobile-menu-trigger-help ul {
	color: #666;
	margin: 10px 0 0 20px;
	padding-left: 0;
}

.aha-mobile-menu-trigger-help li {
	margin-bottom: 5px;
}

/* Exclusions */
.aha-mobile-menu-textarea-wide {
	width: 100%;
	max-width: 500px;
}

.aha-mobile-menu-description-mt {
	margin-top: 10px;
}

.aha-mobile-menu-description-warning {
	margin-top: 10px;
	color: #d63638;
}

/* Excluded post types list */
.aha-mobile-menu-post-types-list {
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 10px;
	background: #fff;
}

.aha-mobile-menu-post-types-list label {
	display: block;
	margin-bottom: 8px;
}

.aha-mobile-menu-post-types-list code {
	margin-left: 8px;
	color: #666;
	font-size: 12px;
}
