/**
 * Aha Orbit Testimonials – Admin styles
 * (settings dashboard + metabox)
 *
 * @package Aha_Orbit_Testimonials
 * @since   1.0.0
 */

/* ==========================================================================
   Admin notices (review + ecosystem)
   ========================================================================== */
.aha-orbit-notice {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	border-left-width: 4px;
}

.aha-orbit-notice--review {
	border-left-color: #f6c90e;
	background: #fffdf0;
}

.aha-orbit-notice--ecosystem {
	border-left-color: #4776e6;
	background: #f0f4fc;
}

.aha-orbit-notice__icon {
	font-size: 24px;
	line-height: 1.3;
	flex-shrink: 0;
	margin-top: 2px;
}

.aha-orbit-notice__body {
	flex: 1;
	min-width: 0;
}

.aha-orbit-notice__title {
	margin: 0 0 5px;
	font-weight: 700;
	font-size: 14px;
	color: #1d2327;
}

.aha-orbit-notice__text {
	margin: 0 0 10px;
	font-size: 13px;
	color: #2c3338;
	line-height: 1.5;
}

.aha-orbit-notice__product-list {
	margin: 0 0 12px 1.25em;
	padding: 0;
	font-size: 13px;
	line-height: 1.75;
	list-style: disc;
	color: #2c3338;
}

.aha-orbit-notice__product-list a {
	text-decoration: none;
	color: #2271b1;
}

.aha-orbit-notice__product-list a:hover {
	text-decoration: underline;
}

.aha-orbit-notice__actions {
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.aha-orbit-notice__btn-primary,
.aha-orbit-notice__btn-secondary {
	text-decoration: none;
}

.aha-orbit-notice__dismiss-link {
	font-size: 12px;
	color: #646970;
	text-decoration: underline;
	cursor: pointer;
}

.aha-orbit-notice__dismiss-link:hover {
	color: #2c3338;
}

/* ==========================================================================
   Settings page wrap
   ========================================================================== */
.aha-orbit-testimonials-settings-wrap .form-table th {
	padding: 15px 10px 15px 0;
}

.aha-orbit-testimonials-settings-wrap .form-table td {
	padding: 15px 10px;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.aha-orbit-testimonials-tabs {
	margin: 20px 0 20px 0;
	border-bottom: 1px solid #ccc;
}

.aha-orbit-testimonials-tabs .nav-tab {
	margin-right: 5px;
	margin-bottom: -1px;
}

.aha-orbit-testimonials-tab-content {
	padding: 20px 0;
}

/* ==========================================================================
   Promotional Banner (header / brand)
   ========================================================================== */
.aha-orbit-testimonials-promo-banner {
	background: linear-gradient(135deg, #4776e6 0%, #8e54e9 100%);
	color: #fff;
	padding: 20px 25px;
	border-radius: 6px;
	margin: 20px 0 25px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.aha-orbit-testimonials-promo-banner-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.aha-orbit-testimonials-promo-banner-text {
	flex: 1;
	min-width: 250px;
}

.aha-orbit-testimonials-promo-banner-title {
	margin: 0 0 8px 0;
	color: #fff;
	font-size: 18px;
}

.aha-orbit-testimonials-promo-banner-desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	font-size: 14px;
	line-height: 1.5;
}

.aha-orbit-testimonials-promo-banner-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.aha-orbit-testimonials-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-orbit-testimonials-promo-banner a.aha-orbit-testimonials-btn-primary {
	background: #fff;
	color: #4776e6;
}

.aha-orbit-testimonials-promo-banner a.aha-orbit-testimonials-btn-secondary {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.aha-orbit-testimonials-promo-banner a:hover {
	transform: translateY(-1px);
}

@media (max-width: 782px) {
	.aha-orbit-testimonials-promo-banner-inner {
		flex-direction: column;
		text-align: center;
	}

	.aha-orbit-testimonials-promo-banner-actions {
		width: 100%;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.aha-orbit-testimonials-promo-banner a {
		flex: 0 0 auto;
		min-width: 160px;
		text-align: center;
	}
}

/* ==========================================================================
   Promotional Footer (brand cards + CTA)
   ========================================================================== */
.aha-orbit-testimonials-promo-footer {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #ddd;
}

.aha-orbit-testimonials-promo-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.aha-orbit-testimonials-promo-card {
	background: #f0f4fc;
	padding: 15px;
	border-radius: 4px;
	border-left: 3px solid #4776e6;
}

.aha-orbit-testimonials-promo-card-title {
	margin: 0 0 8px 0;
	color: #4776e6;
	font-size: 14px;
}

.aha-orbit-testimonials-promo-card-desc {
	margin: 0;
	color: #555;
	font-size: 13px;
	line-height: 1.4;
}

.aha-orbit-testimonials-promo-cta {
	text-align: center;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 4px;
}

.aha-orbit-testimonials-promo-cta-text {
	margin: 0 0 15px 0;
	color: #333;
	font-size: 15px;
}

.aha-orbit-testimonials-promo-cta a {
	display: inline-block;
	background: #4776e6;
	color: #fff;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s;
}

.aha-orbit-testimonials-promo-cta a:hover {
	background: #3561c8;
	color: #fff;
}

/* ==========================================================================
   Shortcode tab
   ========================================================================== */
.aha-orbit-testimonials-shortcode-tab {
	max-width: 920px;
}

.aha-orbit-testimonials-shortcode-tab-title {
	margin: 0 0 0.35em;
	font-size: 1.3em;
}

.aha-orbit-testimonials-shortcode-tab-lead {
	margin: 0 0 1.25em;
	max-width: 52em;
	line-height: 1.55;
}

.aha-orbit-testimonials-shortcode-hero {
	background: #f0f6fb;
	border: 1px solid #c5d9ed;
	border-radius: 6px;
	padding: 20px 22px 18px;
	margin: 0 0 2em;
	box-shadow: 0 1px 2px rgba(71, 118, 230, 0.06);
}

.aha-orbit-testimonials-shortcode-hero-label,
.aha-orbit-testimonials-shortcode-params-label {
	margin: 0 0 8px;
	font-weight: 600;
	color: #1d2327;
	font-size: 13px;
}

.aha-orbit-testimonials-shortcode-input {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 18px;
	padding: 12px 14px;
	font-size: 15px;
	font-family: Consolas, Monaco, monospace;
	line-height: 1.4;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	cursor: text;
}

.aha-orbit-testimonials-shortcode-input:focus {
	border-color: #4776e6;
	box-shadow: 0 0 0 1px #4776e6;
	outline: none;
}

.aha-orbit-testimonials-shortcode-param-tags {
	margin: 0 0 16px;
	line-height: 1.9;
}

.aha-orbit-testimonials-shortcode-param-tag {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 8px;
	background: #e8e8e8;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 12px;
	font-family: Consolas, Monaco, monospace;
	color: #2c3338;
}

.aha-orbit-testimonials-shortcode-callout {
	margin: 0;
	padding: 14px 16px 14px 18px;
	background: #fff;
	border: 1px solid #c5d9ed;
	border-left: 4px solid #4776e6;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.aha-orbit-testimonials-shortcode-callout-title {
	margin: 0 0 8px;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.aha-orbit-testimonials-shortcode-callout-list {
	margin: 0;
	padding-left: 1.25em;
	line-height: 1.55;
	font-size: 13px;
	color: #2c3338;
}

.aha-orbit-testimonials-shortcode-callout-list li {
	margin-bottom: 6px;
}

.aha-orbit-testimonials-shortcode-callout-list li:last-child {
	margin-bottom: 0;
}

.aha-orbit-testimonials-shortcode-section-title {
	margin: 1.75em 0 0.5em;
	font-size: 1.05em;
}

.aha-orbit-testimonials-shortcode-table {
	max-width: 100%;
	margin-top: 0.5em;
}

.aha-orbit-testimonials-shortcode-table .column-use-case {
	width: 35%;
}

.aha-orbit-testimonials-shortcode-table .column-attr {
	width: 22%;
}

.aha-orbit-testimonials-shortcode-table .column-values {
	width: 32%;
}

.aha-orbit-testimonials-shortcode-tab code {
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 13px;
}


/* ==========================================================================
   Uninstall tab
   ========================================================================== */
.aha-orbit-testimonials-uninstall-tab {
	padding: 20px 0;
	max-width: 860px;
}

.aha-orbit-testimonials-uninstall-danger {
	border: 1px solid #c3c4c7;
	border-left-width: 4px;
	border-left-color: #d63638;
	background: #fcf0f1;
	padding: 12px 16px;
	margin: 0 0 20px;
	border-radius: 4px;
}

.aha-orbit-testimonials-uninstall-danger strong {
	display: block;
	margin-bottom: 6px;
	color: #d63638;
}

/* ==========================================================================
   Metabox (repeater)
   ========================================================================== */
.aha-orbit-required {
	color: #d63638;
	font-weight: 700;
}

.aha-orbit-field {
	margin-bottom: 15px;
}

.aha-orbit-field label {
	display: inline-block;
	width: 160px;
	font-weight: 600;
}

.aha-orbit-field input[type="number"] {
	width: 110px;
}

.aha-orbit-repeater-wrapper .aha-orbit-items {
	list-style: none;
	margin: 0 0 12px 0;
	padding: 0;
}

.aha-orbit-repeater-wrapper .aha-orbit-item {
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin-bottom: 10px;
	background: #fff;
}

.aha-orbit-repeater-wrapper .item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #f6f7f7;
	border-bottom: 1px solid #c3c4c7;
	border-radius: 4px 4px 0 0;
    cursor: pointer;
}

.aha-orbit-item.closed .item-header {
    border-bottom: none;
    border-radius: 4px;
}

.aha-orbit-repeater-wrapper .drag-handle {
    cursor: grab;
    margin-right: 10px;
    color: #8c8f94;
}

.aha-orbit-repeater-wrapper .drag-handle:active {
    cursor: grabbing;
}

.aha-orbit-repeater-wrapper .item-header strong {
    flex: 1;
}

.aha-orbit-repeater-wrapper .toggle-indicator {
    color: #8c8f94;
    transition: transform 0.2s;
    margin-right: 15px;
    transform: rotate(180deg);
}

.aha-orbit-item.closed .toggle-indicator {
    transform: rotate(0deg);
}

.aha-orbit-item.closed .item-body {
    display: none;
}

.aha-orbit-repeater-wrapper .sortable-placeholder {
    border: 1px dashed #c3c4c7;
    background: #f0f0f1;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.aha-orbit-repeater-wrapper .item-body {
	padding: 12px 14px;
}

.aha-orbit-repeater-wrapper .manual-pos-fields {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e0e0e0;
}

/* ==========================================================================
   Metabox – manual coordinate inputs
   ========================================================================== */
.aha-orbit-pos-input {
	width: 70px;
}

/* ==========================================================================
   Metabox – image previews
   ========================================================================== */
.aha-orbit-media-field {
    margin-bottom: 15px;
}

.aha-orbit-preview-wrap {
    margin-top: 8px;
    margin-bottom: 8px;
}

.aha-orbit-preview-img {
    max-height: 80px;
    max-width: 150px;
    border-radius: 4px;
    border: 1px solid #c3c4c7;
    object-fit: contain;
    background: #f0f0f1;
    display: block;
}

/* ==========================================================================
   Metabox – section headings
   ========================================================================== */
.aha-orbit-settings-wrapper .aha-orbit-section-heading {
	margin: 16px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #ddd;
}

.aha-orbit-settings-wrapper .aha-orbit-section-heading--first {
	margin-top: 0;
}

/* ==========================================================================
   Metabox – upload button
   ========================================================================== */
.aha-orbit-upload-btn {
	margin-top: 5px;
}

/* ==========================================================================
   Metabox – manual coordinate inputs
   ========================================================================== */
.aha-orbit-pos-input {
	width: 70px;
}

/* ==========================================================================
   CPT list – shortcode column
   ========================================================================== */
.aha-orbit-shortcode-input {
	width: 100%;
}

.aha-orbit-shortcode-copy {
	color: #0073aa;
	cursor: pointer;
}

/* ==========================================================================
   Layout Field Wrappers
   ========================================================================== */
.aha-orbit-col-half {
	display: inline-block;
	width: calc(50% - 10px);
	vertical-align: top;
}
.aha-orbit-col-half:nth-child(odd) {
	margin-right: 15px;
}
