/**
 * Advanced URL Extractor Module Styles
 */

.xixify-module-url-extractor {
	max-width: 1080px;
	margin: 0 auto;
}

.ue-header {
	text-align: center;
	margin-bottom: 24px;
}

.ue-title {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px 0;
	color: var(--xixify-text-main);
	line-height: 1.2;
}

.ue-subtitle {
	font-size: 14px;
	color: var(--xixify-text-muted);
	margin: 0;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

/* Common Card Styling */
.ue-card {
	background: #ffffff;
	border: 1px solid var(--xixify-border);
	border-radius: var(--xixify-radius-md);
	padding: 20px;
	margin-bottom: 20px;
}

.ue-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	flex-wrap: wrap;
	gap: 10px;
}

.ue-card-title {
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--xixify-text-main);
}

.ue-input-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Dropzone & Textarea */
.ue-dropzone-wrapper {
	position: relative;
}

.ue-textarea {
	min-height: 180px;
	font-family: monospace;
	font-size: 13px;
	line-height: 1.6;
}

.ue-drag-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(238, 242, 255, 0.95);
	border: 2px dashed var(--xixify-primary);
	border-radius: var(--xixify-radius-md);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--xixify-primary);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.ue-dropzone-wrapper.ue-dragover .ue-drag-overlay {
	opacity: 1;
}

/* Controls Grid */
.ue-controls-grid {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) 2fr;
	gap: 20px;
	align-items: center;
}

.ue-toggles-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ue-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--xixify-text-main);
	cursor: pointer;
	user-select: none;
}

.ue-main-action-row {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

/* Filter Grid */
.ue-filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	align-items: end;
}

.ue-search-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ue-regex-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

/* Power Tools Accordion */
.ue-power-tools {
	cursor: pointer;
}

.ue-power-summary {
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--xixify-primary);
	user-select: none;
}

.ue-power-body {
	padding-top: 16px;
	cursor: default;
}

.ue-power-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

/* Action Toolbar */
.ue-actions-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.ue-export-dropdown-wrapper {
	display: flex;
	gap: 6px;
}

/* Results Table */
.ue-table-container {
	background: #ffffff;
	border: 1px solid var(--xixify-border);
	border-radius: var(--xixify-radius-md);
	overflow-x: auto;
	margin-bottom: 20px;
}

.ue-results-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	text-align: left;
}

.ue-results-table th {
	background: #f8fafc;
	padding: 12px 14px;
	font-weight: 700;
	color: var(--xixify-text-main);
	border-bottom: 1px solid var(--xixify-border);
	white-space: nowrap;
}

.ue-results-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.ue-results-table tr:last-child td {
	border-bottom: none;
}

.ue-results-table tr:hover td {
	background: #f8fafc;
}

.ue-url-cell {
	max-width: 380px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: monospace;
}

.ue-url-link {
	color: var(--xixify-primary);
	text-decoration: none;
	font-weight: 500;
}

.ue-url-link:hover {
	text-decoration: underline;
}

/* Badges */
.ue-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.ue-badge-https { background: #e0e7ff; color: #3730a3; }
.ue-badge-http { background: #fef3c7; color: #92400e; }
.ue-badge-internal { background: #d1fae5; color: #065f46; }
.ue-badge-external { background: #e0f2fe; color: #0369a1; }
.ue-badge-subdomain { background: #f3e8ff; color: #6b21a8; }
.ue-badge-warn { background: #fee2e2; color: #991b1b; }

/* SEO Guide & FAQ Section */
.ue-seo-section {
	margin-top: 40px;
	border-top: 1px solid var(--xixify-border);
	padding-top: 30px;
	color: var(--xixify-text-main);
}

.ue-seo-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.ue-seo-section h3 { font-size: 18px; font-weight: 700; margin-top: 24px; margin-bottom: 10px; }
.ue-seo-section p { font-size: 14px; line-height: 1.6; color: var(--xixify-text-muted); }
.ue-seo-section ul { font-size: 14px; line-height: 1.6; color: var(--xixify-text-muted); padding-left: 20px; }

.ue-faq-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ue-faq-item { background: #f8fafc; border: 1px solid var(--xixify-border); border-radius: var(--xixify-radius-md); padding: 14px 18px; }
.ue-faq-item summary { font-weight: 700; font-size: 15px; cursor: pointer; color: var(--xixify-text-main); }
.ue-faq-item p { margin-top: 8px; margin-bottom: 0; }

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
	.ue-controls-grid { grid-template-columns: 1fr; }
	.ue-card-header { flex-direction: column; align-items: flex-start; }
	.ue-input-actions { width: 100%; flex-wrap: wrap; }
	.ue-results-table { display: none; }
	
	.ue-mobile-cards { display: flex; flex-direction: column; gap: 12px; }
	.ue-mobile-card {
		background: #ffffff;
		border: 1px solid var(--xixify-border);
		border-radius: var(--xixify-radius-md);
		padding: 14px;
	}
}

@media (min-width: 769px) {
	.ue-mobile-cards { display: none; }
}
