/* Digital Dev House - Base Theme Styles */

:root {
	--ddh-color-primary: #2563eb;
	--ddh-color-secondary: #1e293b;
	--ddh-color-text: #1f2933;
	--ddh-color-bg: #ffffff;
	--ddh-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ddh-container-width: 1200px;
	--ddh-radius-sm: 4px;
	--ddh-radius-md: 8px;
}

body {
	font-family: var(--ddh-font-body);
	color: var(--ddh-color-text);
	background-color: var(--ddh-color-bg);
	line-height: 1.6;
}

.ddh-container {
	width: 100%;
	max-width: var(--ddh-container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	background: #fff;
	color: #000;
	padding: 10px 16px;
	z-index: 100000;
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}

.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;
}

/* Site header / footer (used only when Elementor Theme Builder
   is not handling these locations) */
.ddh-site-header,
.ddh-site-footer {
	width: 100%;
}

.ddh-site-header {
	border-bottom: 1px solid #eaeaea;
	padding: 16px 0;
}

.ddh-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ddh-logo img {
	max-height: 48px;
	width: auto;
}

.ddh-logo a {
	font-size: 1.25rem;
	font-weight: 700;
}

.ddh-nav ul {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.ddh-site-footer {
	border-top: 1px solid #eaeaea;
	padding: 32px 0;
	font-size: 0.9rem;
	color: #6b7280;
	text-align: center;
}

.ddh-comments {
	margin-top: 40px;
}

.ddh-comment-list {
	margin: 0;
	padding: 0;
}

.ddh-comment-list .children {
	padding-left: 32px;
}

.ddh-pagination {
	display: flex;
	gap: 8px;
	margin: 32px 0;
	flex-wrap: wrap;
}

.ddh-search-form {
	display: flex;
	gap: 8px;
}

.ddh-search-form input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: var(--ddh-radius-sm);
}

.ddh-search-form button {
	padding: 10px 16px;
	background: var(--ddh-color-primary);
	color: #fff;
	border-radius: var(--ddh-radius-sm);
}

.ddh-404 {
	text-align: center;
	padding: 80px 20px;
}

/* OTP login form */
.ddh-otp-login {
	max-width: 380px;
}

.ddh-otp-form p {
	margin: 0 0 16px;
}

.ddh-otp-form input[type="email"],
.ddh-otp-form input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: var(--ddh-radius-sm);
}

.ddh-otp-form button {
	padding: 10px 20px;
	background: var(--ddh-color-primary);
	color: #fff;
	border-radius: var(--ddh-radius-sm);
}

.ddh-otp-form--resend {
	margin-top: -8px;
}

.ddh-otp-resend-btn {
	background: none;
	color: var(--ddh-color-primary);
	text-decoration: underline;
	padding: 0;
}

.ddh-otp-message {
	padding: 10px 14px;
	border-radius: var(--ddh-radius-sm);
	margin-bottom: 16px;
}

.ddh-otp-message--success {
	background: #dcfce7;
	color: #166534;
}

.ddh-otp-message--error {
	background: #fee2e2;
	color: #991b1b;
}

.ddh-otp-hint {
	font-size: 0.85rem;
	color: #6b7280;
}

/* Member search */
.ddh-member-search-form {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.ddh-member-search-form select {
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: var(--ddh-radius-sm);
}

.ddh-member-search-form button {
	padding: 8px 16px;
	background: var(--ddh-color-primary);
	color: #fff;
	border-radius: var(--ddh-radius-sm);
}

.ddh-member-search-results {
	margin: 0;
	padding: 0;
}

.ddh-member-search-results li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}
