/**
 * Documentation hub styles (Help admin page).
 */

.wgrsvp-docs-intro {
	background: #fff;
	border: 1px solid #ccd0d4;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 20px;
	margin: 20px 0;
}

.wgrsvp-docs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.wgrsvp-doc-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 20px;
	border-radius: 4px;
}

.wgrsvp-doc-card .doc-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.wgrsvp-doc-card .doc-header .dashicons {
	font-size: 24px;
	color: #2271b1;
	width: 24px;
	height: 24px;
}

.wgrsvp-doc-card .doc-header h2 {
	margin: 0;
	font-size: 1.2em;
}

.wgrsvp-doc-card .doc-description {
	color: #666;
	margin-bottom: 15px;
	line-height: 1.6;
}

.wgrsvp-doc-card .doc-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.wgrsvp-doc-card .doc-meta {
	color: #999;
	font-size: 12px;
}

.wgrsvp-doc-card .doc-error {
	color: #d63638;
	margin: 0;
}

.wgrsvp-doc-modal {
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
}

.wgrsvp-doc-modal .modal-content {
	background: #fff;
	border-radius: 4px;
	max-width: 900px;
	width: 90%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wgrsvp-doc-modal .modal-header {
	padding: 20px;
	border-bottom: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wgrsvp-doc-modal .modal-header h2 {
	margin: 0;
}

.wgrsvp-doc-modal .modal-close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #666;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
}

.wgrsvp-doc-modal .modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.wgrsvp-doc-modal .modal-body pre {
	background: #f5f5f5;
	padding: 15px;
	border-radius: 4px;
	overflow-x: auto;
	white-space: pre-wrap;
}

.wgrsvp-doc-modal .modal-body code {
	background: #f5f5f5;
	padding: 2px 6px;
	border-radius: 3px;
}

.wgrsvp-doc-modal .modal-body pre code {
	background: none;
	padding: 0;
}

.wgrsvp-doc-modal .modal-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}

.wgrsvp-doc-modal .modal-body th,
.wgrsvp-doc-modal .modal-body td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.wgrsvp-doc-modal .modal-body th {
	background: #f6f7f7;
}

.wgrsvp-doc-modal .wgrsvp-doc-link {
	color: #2271b1;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.wgrsvp-doc-modal .wgrsvp-doc-link:hover {
	text-decoration: underline;
}

.wgrsvp-help-classic {
	margin-top: 32px;
	padding-top: 8px;
	border-top: 1px solid #dcdcde;
}
