/**
 * Document CPT CSS
 *
 * @package AWE_EV_Classic
 */

/* ==========================================================================
   Document Archive
   ========================================================================== */

.post-type-archive-document .archive-header {
	padding: 3rem 0 2.5rem;
	background-color: var(--color-bg-alt);
	border-bottom: 1px solid var(--color-border);
}

.post-type-archive-document .archive-header__title {
	margin-bottom: 0.5rem;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--color-dark);
}

.post-type-archive-document .archive-header__intro {
	max-width: 680px;
	margin-bottom: 0;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--color-muted);
}

.post-type-archive-document .filters-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: center;
	margin-top: 2rem;
	padding: 0.9rem 1.25rem;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: var(--radius-lg);
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: var(--shadow-soft);
}

.post-type-archive-document .filters-bar__label {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-muted);
}

.post-type-archive-document .filters-group {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
}

.post-type-archive-document .filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.85rem;
}

.post-type-archive-document .filter-field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-muted);
}

.post-type-archive-document .filter-field select,
.post-type-archive-document .filter-field input[type="search"] {
	min-width: 170px;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: #ffffff;
	color: var(--color-dark);
	font-family: inherit;
	font-size: 0.9rem;
}

.post-type-archive-document .filter-field input[type="search"]::placeholder {
	color: #a0aec0;
}

.post-type-archive-document .filter-field select:focus,
.post-type-archive-document .filter-field input[type="search"]:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(195, 142, 129, 0.1);
}

.post-type-archive-document .filters-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.post-type-archive-document .documents-section {
	padding-top: 2.5rem;
	padding-bottom: 3rem;
	background-color: var(--color-bg);
}

.post-type-archive-document .grid {
	display: grid;
	gap: 1.5rem;
}

.post-type-archive-document .grid--list {
	grid-template-columns: minmax(0, 1fr);
}

.post-type-archive-document .card.document-card {
	display: flex;
	flex-direction: row;
	gap: 1.25rem;
	align-items: flex-start;
	padding: 1.5rem 1.75rem;
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: var(--radius-lg);
	background-color: #ffffff;
	box-shadow: var(--shadow-soft);
	transition: transform var(--transition-fast),
		box-shadow var(--transition-fast),
		border-color var(--transition-fast);
}

.post-type-archive-document .card.document-card:hover {
	transform: translateY(-3px);
	border-color: rgba(148, 163, 184, 0.8);
	box-shadow: var(--shadow-soft-hover);
}

.post-type-archive-document .card__icon {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(195, 142, 129, 0.9), rgba(198, 191, 169, 0.9));
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
}

.post-type-archive-document .card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
}

.post-type-archive-document .card__title {
	margin-bottom: 0.15rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-dark);
}

.post-type-archive-document .card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	align-items: center;
	color: var(--color-muted);
	font-size: 0.85rem;
}

.post-type-archive-document .card__meta span {
	display: inline-flex;
	gap: 0.25rem;
	align-items: center;
}

.post-type-archive-document .card__meta strong {
	font-weight: 600;
	color: var(--color-muted);
}

.post-type-archive-document .card__body {
	margin-top: 0.15rem;
	margin-bottom: 0.6rem;
	font-size: 0.95rem;
}

.post-type-archive-document .card__body p {
	margin: 0;
	color: var(--color-muted);
	line-height: 1.6;
}

.post-type-archive-document .card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
}

.post-type-archive-document .no-results {
	text-align: center;
	padding: 3rem 1.5rem;
}

.post-type-archive-document .no-results h2 {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	color: var(--color-dark);
}

.post-type-archive-document .no-results p {
	max-width: 500px;
	margin: 0 auto 1.25rem;
	font-size: 1rem;
	color: var(--color-muted);
}

.post-type-archive-document .pagination-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
}

.post-type-archive-document .pagination-wrapper .page-numbers {
	display: inline-flex;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.post-type-archive-document .pagination-wrapper .page-numbers li {
	display: inline-block;
}

.post-type-archive-document .pagination-wrapper .page-numbers a,
.post-type-archive-document .pagination-wrapper .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: #ffffff;
	color: var(--color-dark);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color var(--transition-fast),
		border-color var(--transition-fast),
		color var(--transition-fast);
}

.post-type-archive-document .pagination-wrapper .page-numbers a:hover {
	border-color: var(--color-primary);
	background-color: var(--color-bg-alt);
	color: var(--color-primary);
}

.post-type-archive-document .pagination-wrapper .page-numbers .current {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: #ffffff;
}

/* ==========================================================================
   Single Document
   ========================================================================== */

/* Single document styles remain in assets/css/single-document.css. */

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
	.post-type-archive-document .archive-header {
		padding: 2.5rem 0 2rem;
	}

	.post-type-archive-document .filters-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.post-type-archive-document .filters-group {
		width: 100%;
		flex-direction: column;
	}

	.post-type-archive-document .filter-field {
		width: 100%;
	}

	.post-type-archive-document .filter-field select,
	.post-type-archive-document .filter-field input[type="search"] {
		width: 100%;
		min-width: auto;
	}

	.post-type-archive-document .filters-actions,
	.post-type-archive-document .filters-actions .btn {
		width: 100%;
	}

	.post-type-archive-document .card.document-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.post-type-archive-document .card__icon {
		flex: 0 0 auto;
	}

	.post-type-archive-document .card__actions {
		width: 100%;
	}

	.post-type-archive-document .card__actions .btn {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.post-type-archive-document .card.document-card {
		padding: 1.25rem 1.5rem;
	}

	.post-type-archive-document .card__actions {
		flex-direction: column;
	}

	.post-type-archive-document .card__actions .btn {
		width: 100%;
	}
}
