/* NCB Products — frontend styles
   Ουδέτερα, χωρίς εξάρτηση από theme. Το theme σου ορίζει χρώματα/fonts·
   εδώ ορίζουμε μόνο layout και βασική μορφή. */

.ncbp-product,
.ncbp-archive,
.ncbp-doc {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Hero ---------- */
.ncbp-hero {
	padding: 48px 0 32px;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
}
.ncbp-hero-inner {
	display: flex;
	gap: 28px;
	align-items: center;
	flex-wrap: wrap;
}
.ncbp-hero-icon img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	border-radius: 16px;
}
.ncbp-title { margin: 6px 0 4px; font-size: 2.2rem; line-height: 1.1; }
.ncbp-subtitle { font-size: 1.2rem; opacity: 0.75; margin: 0 0 16px; }
.ncbp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.ncbp-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.1s ease, opacity 0.15s ease;
}
.ncbp-btn:hover { transform: translateY( -1px ); }
.ncbp-btn-primary { background: #2b6cb0; color: #fff; }
.ncbp-btn-ghost { border: 1.5px solid currentColor; }
.ncbp-btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* ---------- Badges ---------- */
.ncbp-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}
.ncbp-badge-coming_soon { background: #fef3c7; color: #92400e; }
.ncbp-badge-beta        { background: #dbeafe; color: #1e40af; }
.ncbp-badge-deprecated  { background: #fee2e2; color: #991b1b; }

/* ---------- Sticky anchor nav ---------- */
.ncbp-anchornav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba( 255, 255, 255, 0.92 );
	backdrop-filter: blur( 6px );
	border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
	margin: 0 -20px 0;
	padding: 0 20px;
}
.ncbp-anchornav ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
}
.ncbp-anchornav a {
	display: block;
	padding: 14px 14px;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	opacity: 0.7;
}
.ncbp-anchornav a:hover { opacity: 1; }
.ncbp-anchornav a.is-active {
	opacity: 1;
	border-bottom-color: #2b6cb0;
	font-weight: 600;
}

/* ---------- Sections ---------- */
.ncbp-section { padding: 40px 0; border-bottom: 1px solid rgba( 0, 0, 0, 0.06 ); scroll-margin-top: 70px; }
.ncbp-section h2 { font-size: 1.6rem; margin: 0 0 16px; }
.ncbp-lead { font-size: 1.15rem; opacity: 0.85; }

.ncbp-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) ); gap: 18px; }
.ncbp-features li { padding: 16px; border: 1px solid rgba( 0, 0, 0, 0.08 ); border-radius: 10px; }
.ncbp-features strong { display: block; margin-bottom: 4px; }
.ncbp-features span { opacity: 0.75; font-size: 0.95rem; }

.ncbp-gallery { display: grid; grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) ); gap: 16px; }
.ncbp-gallery img { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba( 0, 0, 0, 0.08 ); }
.ncbp-gallery figure { margin: 0; }

.ncbp-price { font-size: 1.8rem; font-weight: 700; margin: 0 0 16px; }
.ncbp-specs { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 24px; flex-wrap: wrap; opacity: 0.8; }

.ncbp-doclist { list-style: none; padding: 0; margin: 0; }
.ncbp-doclist li { border-bottom: 1px solid rgba( 0, 0, 0, 0.06 ); }
.ncbp-doclist a { display: block; padding: 12px 0; text-decoration: none; }

/* ---------- Archive grid ---------- */
.ncbp-archive-head { padding: 40px 0 20px; }
.ncbp-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) ); gap: 20px; padding-bottom: 48px; }
.ncbp-card {
	display: block;
	padding: 24px;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.1s ease;
}
.ncbp-card:hover { box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.08 ); transform: translateY( -2px ); }
.ncbp-card-icon img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.ncbp-card-title { margin: 0 0 6px; font-size: 1.2rem; }
.ncbp-card-sub { opacity: 0.7; font-size: 0.95rem; margin: 0 0 10px; }

/* ---------- Docs ---------- */
.ncbp-doc-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
@media ( min-width: 860px ) {
	.ncbp-doc-grid { grid-template-columns: 220px 1fr; direction: rtl; }
	.ncbp-doc-grid > * { direction: ltr; }
}
.ncbp-doc-breadcrumb { opacity: 0.7; font-size: 0.9rem; }
.ncbp-doc-sidebar h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.6; }
.ncbp-doc-sidebar ul { list-style: none; padding: 0; margin: 0; }
.ncbp-doc-sidebar li a { display: block; padding: 8px 0; text-decoration: none; opacity: 0.8; }
.ncbp-doc-sidebar li.is-current a { font-weight: 700; opacity: 1; }

/* Documentation page typography */
.ncbp-doc-content { line-height: 1.7; }
.ncbp-doc-content h1, .ncbp-doc-content h2, .ncbp-doc-content h3 { margin: 1.6em 0 0.5em; line-height: 1.25; }
.ncbp-doc-content h2 { border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 0.2em; }
.ncbp-doc-content pre { background: #1e1e2e; color: #f8f8f2; padding: 16px; border-radius: 8px; overflow-x: auto; }
.ncbp-doc-content code { background: rgba(0,0,0,0.06); padding: 2px 5px; border-radius: 4px; font-size: 0.92em; }
.ncbp-doc-content pre code { background: none; padding: 0; }
.ncbp-doc-content ul, .ncbp-doc-content ol { padding-left: 1.4em; }
.ncbp-doc-content blockquote { border-left: 3px solid #2b6cb0; margin: 1em 0; padding: 0.4em 1em; opacity: 0.85; }
.ncbp-doc-content img { max-width: 100%; height: auto; }

/* FAQ accordion (native <details>, no JS needed) */
.ncbp-accordion-item { border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.ncbp-accordion-item summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.ncbp-accordion-item summary::-webkit-details-marker { display: none; }
.ncbp-accordion-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; opacity: 0.6; }
.ncbp-accordion-item[open] summary::after { content: '\2212'; }
.ncbp-accordion-body { padding: 0 18px 16px; }
.ncbp-accordion-body > :first-child { margin-top: 0; }

/* Screenshots lightbox */
.ncbp-gallery a.ncbp-shot { display: block; cursor: zoom-in; }
.ncbp-gallery a.ncbp-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(0,0,0,0.08); transition: transform 0.12s ease, box-shadow 0.15s ease; }
.ncbp-gallery a.ncbp-shot:hover img { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.ncbp-lightbox { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.9); padding: 24px; }
.ncbp-lightbox.is-open { display: flex; }
.ncbp-lightbox .ncbp-lb-figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.ncbp-lightbox .ncbp-lb-img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.ncbp-lightbox .ncbp-lb-caption { color: rgba(255,255,255,0.8); margin-top: 12px; font-size: 0.9rem; }
.ncbp-lightbox button { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.ncbp-lightbox button:hover { background: rgba(255,255,255,0.25); }
.ncbp-lightbox .ncbp-lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.ncbp-lightbox .ncbp-lb-prev, .ncbp-lightbox .ncbp-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; line-height: 1; }
.ncbp-lightbox .ncbp-lb-prev { left: 20px; }
.ncbp-lightbox .ncbp-lb-next { right: 20px; }
@media ( max-width: 600px ) {
	.ncbp-lightbox .ncbp-lb-prev, .ncbp-lightbox .ncbp-lb-next { width: 42px; height: 42px; font-size: 26px; }
	.ncbp-lightbox .ncbp-lb-prev { left: 8px; }
	.ncbp-lightbox .ncbp-lb-next { right: 8px; }
}

/* Buy button hover: white bg + thin blue border (readable) */
.ncbp-btn { border: 1px solid transparent; }
.ncbp-product .ncbp-btn-primary:hover,
.ncbp-product .ncbp-btn-primary:focus {
	background: #ffffff;
	color: #2b6cb0;
	border-color: #2b6cb0;
}

/* Free download button */
.ncbp-btn-free::before { content: "\2193"; margin-right: 6px; font-weight: 700; }
