/* AGD Flex Pro - Components Stylesheet */

/* ===== BUTTON COMPONENT (non-block areas) ===== */
.agd-fp-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	border: none;
	cursor: pointer;
	line-height: 1.4;
}

.agd-fp-button--primary {
	background: var(--agd-primary, #2563eb);
	color: #fff;
}

.agd-fp-button--primary:hover {
	background: var(--agd-primary-dark, #1d4ed8);
	color: #fff;
}

.agd-fp-button--outline {
	background: transparent;
	color: var(--agd-primary, #2563eb);
	border: 2px solid var(--agd-primary, #2563eb);
}

.agd-fp-button--outline:hover {
	background: var(--agd-primary, #2563eb);
	color: #fff;
}

.agd-fp-button--sm {
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
}

.agd-fp-button--lg {
	padding: 1rem 2rem;
	font-size: 1.125rem;
}

/* ===== TAG COMPONENT ===== */
.agd-fp-tag {
	display: inline-block;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--agd-primary, #2563eb);
	color: #fff;
	border-radius: 100px;
	text-decoration: none;
}

.agd-fp-tag:hover {
	background: var(--agd-primary-dark, #1d4ed8);
	color: #fff;
}

.agd-fp-tag--accent {
	background: #f59e0b;
}

/* ===== ALERT COMPONENT ===== */
.agd-fp-alert {
	padding: 1rem;
	border-radius: 0.375rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.agd-fp-alert--info {
	background: #dbeafe;
	color: #1e40af;
	border-left: 4px solid var(--agd-primary, #2563eb);
}

.agd-fp-alert--success {
	background: #d1fae5;
	color: #065f46;
	border-left: 4px solid #10b981;
}

.agd-fp-alert--warning {
	background: #fef3c7;
	color: #92400e;
	border-left: 4px solid #f59e0b;
}

.agd-fp-alert--error {
	background: #fee2e2;
	color: #991b1b;
	border-left: 4px solid #ef4444;
}

/* ===== DARK MODE SWITCH ===== */
.agd-fp-dark-switch {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.25rem;
	padding: 0.375rem;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.agd-fp-dark-switch:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* ===== POST META ===== */
.agd-flex-pro__entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: var(--agd-text-muted, #64748b);
	margin: 0.75rem 0;
}

.agd-flex-pro__entry-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-bottom: 0.75rem;
}

.agd-flex-pro__entry-category {
	display: inline-block;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--agd-primary, #2563eb);
	color: #fff;
	border-radius: 100px;
	text-decoration: none;
}

/* ===== PAGINATION ===== */
.agd-flex-pro__pagination {
	margin: 2rem 0;
}

.agd-flex-pro__pagination .nav-links {
	display: flex;
	gap: 0.375rem;
	flex-wrap: wrap;
}

.agd-flex-pro__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 0.375rem;
	background: #f1f5f9;
	color: var(--agd-text, #111827);
	text-decoration: none;
	font-size: 0.875rem;
}

.agd-flex-pro__pagination .page-numbers.current {
	background: var(--agd-primary, #2563eb);
	color: #fff;
}

/* ===== SCREEN READER TEXT ===== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--agd-text, #111827);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 480px) {
	.agd-flex-pro__pagination .page-numbers {
		min-width: 2.25rem;
		height: 2.25rem;
		padding: 0.25rem 0.5rem;
	}
}
