/*
Theme Name: D3helper
Theme URI: https://d3helper.co.kr
Author: D3helper
Author URI: https://d3helper.co.kr
Description: Custom WordPress theme for D3helper.
Version: 1.0.0
Text Domain: d3helper
*/

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #fff;
	background: #0a0a0a;
}

a {
	color: #3485FA;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h2 {
       font-size: 20px;
       margin-bottom: 10px;
}


h3 {
       font-size: 18px;
       margin-bottom: 10px;
}

.site-header {
	background: #101010;
}

.site-header-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-logo{
	display:flex;
	align-items:center;
	gap:10px;
	font-size:24px;
	font-weight:700;
	color:#fff;
	text-decoration:none;
}

.site-logo img{
	display:block;
	width:40px;
	height:40px;
	object-fit:contain;
}

.site-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	gap: 20px;
}

.site-nav a {
	font-size: 17px;
	font-weight: 700;
	color: #dadada;
}

.site-main {
	max-width: 800px;
	margin: 0 auto;
	padding: 32px 20px;
}

.content-card {
	padding: 18px;
}

.entry-title {
	margin: 0 0 16px;
	font-size: 28px;
	line-height: 1.3;
	color: #fff;
}

.entry-content {
	font-size: 16px;
	color: #E8E8E8;
}

.site-footer {
	margin-top: 30px;
	background: #101010;
	color: #fff;
}

.site-footer-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 28px 20px;
	font-size: 14px;
}

@media (max-width: 768px) {
	.site-header-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-nav ul {
		flex-wrap: wrap;
		gap: 12px;
	}

	.entry-title {
		font-size: 26px;
	}

	.content-card {
		padding: 22px;
	}
}

/* =========================
   Gutenberg Group
========================= */

.entry-content .wp-block-group{
	margin:0 0 24px;
	padding:28px;
	background:#121212;
	border:1px solid #1C1C1C;
	border-radius:18px;
}

.entry-content .wp-block-group h2:first-child,
.entry-content .wp-block-group h3:first-child{
	margin-top:0;
}

@media (max-width:768px){

	.entry-content .wp-block-group{
		padding:22px;
		border-radius:16px;
	}

}

.d3helper-divider {
	width: 100%;
	height: 1px;
	margin: 42px 0;
	background: #2B2C2C;
	border: 0;
}

#d3helper-download {
	scroll-margin-top: 40px;
}

/* =========================
   D3Helper Lightbox
========================= */

.d3helper-preview-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	cursor: zoom-in;
	border: 1px solid #2b2c2c;
        margin-bottom: 25px;
}

.d3helper-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.88);
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: .2s ease;
}

.d3helper-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.d3helper-lightbox img {
	max-width: 95vw;
	max-height: 95vh;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* =========================
   FAQ Section
========================= */

.faq-section{
	margin:26px 0 0;
	padding:24px;
	border-radius:18px;
	background:#151515;
	border:1px solid #242424;
}

.faq-section h2{
	margin:0 0 18px;
	font-size:22px;
	line-height:1.3;
	color:#fff;
}

.faq-list{
	display:flex;
	flex-direction:column;
	gap:0;
}

.faq-item{
	padding:18px 0;
	border-bottom:1px solid #242424;
}

.faq-item:first-child{
	padding-top:0;
}

.faq-item:last-child{
	padding-bottom:0;
	border-bottom:0;
}

.faq-question{
	margin-bottom:8px;
	font-size:16px;
	font-weight:700;
	line-height:1.45;
	color:#fff;
}

.faq-answer{
	font-size:15px;
	line-height:1.8;
	color:#CFCFCF;
}

.faq-answer p{
	margin:0;
}

.entry-content .faq-list > br{
	display:none !important;
}

@media (max-width:768px){

	.faq-section{
		padding:20px;
		border-radius:16px;
	}

	.faq-section h2{
		font-size:20px;
	}

	.faq-question{
		font-size:15px;
	}

	.faq-answer{
		font-size:14px;
	}
}

/* =========================
   D3Helper Hero Section
========================= */

.d3helper-hero-section {
	padding: 28px;
	margin: 0 0 28px;
	background: #111;
	border: 1px solid #202020;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.d3helper-hero-content h2 {
	margin: 0 0 14px;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 600;
	color: #fff;
}

.d3helper-hero-content p {
	margin: 0;
	max-width: 780px;
	font-size: 15px;
	line-height: 1.8;
	color: #95989B;
}

.d3helper-hero-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 22px;
}

.d3helper-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	padding: 0 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.d3helper-hero-btn svg {
	width: 22px;
	height: 22px;
	margin-right: 7px;
	fill: none;
	stroke: #1D4ED8;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.d3helper-hero-btn:hover {
	transform: translateY(-1px);
}

.d3helper-hero-btn.primary {
	background: #171717;
	border: 2px solid #2B2C2C;
	color: #fff;
}

.d3helper-hero-btn.primary:hover {
	background: #171717;
	border: 2px solid #1D4ED8;
}

.d3helper-hero-btn.secondary {
	background: transparent;
	border: 2px solid #333;
	color: #e5e7eb;
}

.d3helper-hero-btn.secondary:hover {
	background: #1a1a1a;
	border-color: #4b5563;
}

@media (max-width: 768px) {
	.d3helper-hero-section {
		padding: 22px;
	}
}

/* =========================
   D3Helper Download Section
========================= */

.d3helper-download-section {
	padding: 28px;
	margin: 0 0 28px;
	background: #111;
	border: 1px solid #202020;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	scroll-margin-top: 80px;
}

.d3helper-download-section h2 {
	margin: 0 0 14px;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 600;
	color: #fff;
}

.d3helper-download-section p {
	margin: 18px 0 0;
	max-width: 780px;
	font-size: 15px;
	line-height: 1.8;
	color: #95989B;
}

.d3helper-version {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	padding: 5px 9px;
	border-radius: 4px;
	background: #171717;
	border: 1px solid #2B2C2C;
	font-size: 13px;
	line-height: 1.5;
	color: #9ca3af;
}

.d3helper-version strong {
	color: #0074E0;
	font-weight: 700;
}

.d3helper-version-divider {
	margin: 0 3px;
	color: #4b5563;
}

.d3helper-download-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 24px;
}

.d3helper-download-btn {
	width: 100%;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.d3helper-download-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.d3helper-download-btn.primary {
	background: #171717;
	border: 2px solid #2B2C2C;
	color: #fff;
}

.d3helper-download-btn.primary:hover {
	transform: translateY(-1px);
	background: #171717;
	border-color: #2563EB;
}

.d3helper-download-btn.disabled {
	background: #151515;
	border: 2px solid #2B2C2C;
	color: #94a3b8;
	cursor: not-allowed;
	opacity: 0.75;
}

@media (max-width: 768px) {
	.d3helper-download-section {
		padding: 22px;
	}

	.d3helper-download-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.d3helper-download-btn {
		height: 46px;
		font-size: 13px;
	}

	.d3helper-download-btn svg {
		width: 20px;
		height: 20px;
	}
}

/* =========================
   D3Helper Guide Archive
========================= */

.d3helper-guide-intro {
	margin-bottom: 28px;
}

.d3helper-guide-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 28px;
}

.d3helper-guide-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #111;
	border: 1px solid #202020;
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.d3helper-guide-card:hover {
	transform: translateY(-2px);
	background: #141414;
	border-color: #343434;
}

.d3helper-guide-card-content {
	padding: 20px;
}

.d3helper-guide-card-title {
	margin: 0 0 9px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.4;
	color: #fff;
}

.d3helper-guide-card-description {
	overflow: hidden;
	display: -webkit-box;
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: #95989b;
	word-break: keep-all;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.d3helper-guide-card-image {
	overflow: hidden;
	width: 100%;
	margin-top: auto;
	aspect-ratio: 16 / 9;
	background: #171717;
	border-top: 1px solid #202020;
}

.d3helper-guide-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.d3helper-guide-card:hover .d3helper-guide-card-image img {
	transform: scale(1.025);
}

.d3helper-guide-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #171717;
	color: #59606a;
	font-size: 14px;
	font-weight: 700;
}

.d3helper-guide-empty {
	margin: 28px 0 0;
	padding: 24px;
	background: #111;
	border: 1px solid #202020;
	border-radius: 14px;
	font-size: 14px;
	color: #95989b;
	text-align: center;
}

@media (max-width: 640px) {

	.d3helper-guide-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 24px;
	}

	.d3helper-guide-card-content {
		padding: 18px;
	}

	.d3helper-guide-card-title {
		font-size: 17px;
	}

	.d3helper-guide-card-image {
		aspect-ratio: 16 / 9;
	}

}

/* =========================
   D3Helper Comments
========================= */

.support-page .comments-area {
	margin-top: 36px;
	padding-top: 30px;
	border-top: 1px solid #242424;
}

/* =========================
   Registered Comments
========================= */

.support-page .comments-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 16px;
	font-size: 21px;
	line-height: 1.4;
	font-weight: 700;
	color: #fff;
}

.support-page .comments-title span {
	font-size: 14px;
	font-weight: 500;
	color: #858a92;
}

.support-page .d3helper-comments-card {
	overflow: hidden;
	margin-bottom: 36px;
	padding: 0 20px;
	background: #111;
	border: 1px solid #242424;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* 목록 기본 숫자 제거 */

.support-page .comment-list,
.support-page .comment-list ol,
.support-page .comment-list ul {
	margin: 0;
	padding: 0;
	list-style: none !important;
	counter-reset: none !important;
}

.support-page .comment-list li {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.support-page .comment-list li::marker {
	content: "";
	font-size: 0;
}

/* 개별 댓글 */

.support-page .d3helper-comment-item {
	margin: 0;
	padding: 0;
}

.support-page .d3helper-comment-body {
	padding: 20px 0;
	border-bottom: 1px solid #292929;
}

/* 마지막 댓글의 디바이더 제거 */

.support-page .comment-list > .d3helper-comment-item:last-child > .d3helper-comment-body {
	border-bottom: 0;
}

/* 이름 / 날짜 */

.support-page .d3helper-comment-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 10px;
}

.support-page .d3helper-comment-author {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
}

.support-page .d3helper-comment-separator {
	font-size: 12px;
	color: #565b63;
}

.support-page .d3helper-comment-date {
	font-size: 12px;
	line-height: 1.4;
	color: #797e86;
}

/* 댓글 내용 */

.support-page .d3helper-comment-content {
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
	color: #d5d5d5;
	word-break: break-word;
}

.support-page .d3helper-comment-content p {
	margin: 0 0 10px;
}

.support-page .d3helper-comment-content p:last-child {
	margin-bottom: 0;
}

/* 답글 버튼 */

.support-page .d3helper-comment-actions {
	margin-top: 12px;
}

.support-page .comment-reply-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	padding: 0 11px;
	background: #181818;
	border: 1px solid #303030;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #bfc3c8;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.support-page .comment-reply-link:hover {
	background: #202020;
	border-color: #4b5563;
	color: #fff;
}

/* 대댓글 */

.support-page .children {
	margin: 16px 0 0 16px !important;
	padding: 0 0 0 16px !important;
	border-left: 2px solid #292929;
}

.support-page .children .d3helper-comment-body {
	padding: 18px 0;
}

.support-page .children .d3helper-comment-item:last-child > .d3helper-comment-body {
	border-bottom: 0;
}

/* 승인 대기 댓글 */

.support-page .comment-awaiting-moderation {
	display: block;
	margin: 0 0 10px;
	padding: 9px 11px;
	background: #17191d;
	border: 1px solid #30343b;
	border-radius: 7px;
	font-size: 12px;
	font-style: normal;
	color: #aeb4bc;
}

/* =========================
   Comment Form
========================= */

.support-page .comment-respond {
	margin-top: 0;
}

.support-page .comment-reply-title {
	margin: 0 0 16px;
	font-size: 21px;
	line-height: 1.4;
	font-weight: 700;
	color: #fff;
}

.support-page .comment-reply-title small {
	margin-left: 8px;
	font-size: 12px;
	font-weight: 500;
}

.support-page .comment-reply-title small a {
	color: #95989b;
}

/* 댓글 작성 카드 */

.support-page .comment-form {
	display: grid;
	grid-template-columns: 200px auto;
	gap: 12px;
	align-items: center;
	padding: 20px;
	background: #111;
	border: 1px solid #242424;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.support-page .comment-form p {
	margin: 0;
}

/* 로그인 사용자 안내 */

.support-page .logged-in-as,
.support-page .must-log-in {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: #95989b;
}

.support-page .logged-in-as a {
	color: #aeb4bc;
}

/* 댓글 입력창 */

.support-page .d3helper-comment-composer {
	grid-column: 1 / -1;
	width: 100%;
	background: #17171b;
	border: 1px solid #3a3d46;
	border-radius: 11px;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.support-page .d3helper-comment-composer:focus-within {
	background: #1a1a1f;
	border-color: #5a5f6b;
	box-shadow: 0 0 0 3px rgba(90, 95, 107, 0.12);
}

.support-page .comment-form-comment {
	width: 100%;
}

.support-page .comment-form-comment textarea {
	display: block;
	width: 100%;
	height: 46px;
	min-height: 46px;
	max-height: 240px;
	padding: 12px 15px;
	overflow-y: hidden;
	resize: none;
	background: transparent;
	border: 0;
	border-radius: 11px;
	outline: none;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.55;
	color: #f1f1f1;
}

.support-page .comment-form-comment textarea::placeholder {
	color: #747984;
}

/* 이름 입력 */

.support-page .comment-form-author {
	grid-column: 1;
	width: 200px;
}

.support-page .comment-form-author input {
	display: block;
	width: 100%;
	height: 42px;
	padding: 0 13px;
	background: #181818;
	border: 1px solid #33363c;
	border-radius: 8px;
	outline: none;
	font-family: inherit;
	font-size: 13px;
	color: #fff;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.support-page .comment-form-author input::placeholder {
	color: #70757d;
}

.support-page .comment-form-author input:focus {
	background: #1b1b1b;
	border-color: #59606a;
	box-shadow: 0 0 0 3px rgba(89, 96, 106, 0.12);
}

/* 이름 옆 등록 버튼 */

.support-page .form-submit {
	grid-column: 2;
	justify-self: start;
	margin: 0;
}

.support-page .d3helper-comment-submit,
.support-page .form-submit .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 76px;
	height: 42px;
	padding: 0 18px;
	background: #202126;
	border: 1px solid #3a3d46;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease;
}

.support-page .d3helper-comment-submit:hover,
.support-page .form-submit .submit:hover {
	transform: translateY(-1px);
	background: #282a30;
	border-color: #555b65;
}

/* 승인 안내 */

.support-page .d3helper-comment-notice {
	grid-column: 1 / -1;
	margin: 0 !important;
	padding-top: 4px;
	font-size: 12px;
	line-height: 1.6;
	color: #777c84;
}

/* 댓글 페이지 이동 */

.support-page .comment-navigation {
	padding: 16px 0;
	border-top: 1px solid #292929;
}

.support-page .comment-navigation .nav-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.support-page .comment-navigation a {
	font-size: 13px;
	font-weight: 600;
	color: #aeb4bc;
}

/* 닫힌 댓글 */

.support-page .no-comments {
	margin: 20px 0;
	font-size: 13px;
	color: #95989b;
}

/* 숨길 기본 필드 */

.support-page .comment-form-email,
.support-page .comment-form-url,
.support-page .comment-form-cookies-consent,
.support-page .comment-notes {
	display: none !important;
}

/* 스크린리더 전용 */

.support-page .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 768px) {

	.support-page .comments-area {
		margin-top: 28px;
		padding-top: 24px;
	}

	.support-page .comments-title,
	.support-page .comment-reply-title {
		font-size: 19px;
	}

	.support-page .d3helper-comments-card {
		padding: 0 16px;
		border-radius: 12px;
	}

	.support-page .comment-form {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 16px;
		border-radius: 12px;
	}

	.support-page .comment-form-author {
		width: 100%;
	}

	.support-page .comment-form-comment textarea {
		font-size: 16px;
	}

	.support-page .children {
		margin-left: 8px !important;
		padding-left: 12px !important;
	}

}