/* Katalog Mobil — Frontend Styles (Light skin only) */

.km-archive,
.km-single,
.km-forum-archive,
.km-topic-single {
	color-scheme: light;
	background: #ffffff;
	color: #1f2937;
}

html.dark-skin .km-archive,
html.dark-skin .km-single,
html.dark-skin .km-forum-archive,
html.dark-skin .km-topic-single,
body.km-light-skin .km-container {
	background: #ffffff !important;
	color: #1f2937 !important;
}

html.dark-skin .km-archive a,
html.dark-skin .km-single a,
html.dark-skin .km-forum-archive a,
html.dark-skin .km-topic-single a {
	color: #2563eb;
}

html.dark-skin .km-card,
html.dark-skin .km-topic,
html.dark-skin .km-forum-archive__sidebar {
	background: #ffffff !important;
	border-color: #e5e7eb !important;
}

html.dark-skin .km-card__title a,
html.dark-skin .km-single__title,
html.dark-skin .km-topic__title {
	color: #111827 !important;
}

html.dark-skin .km-specs__group th,
html.dark-skin .km-topic-item__meta,
html.dark-skin .km-breadcrumb {
	color: #6b7280 !important;
}

html.dark-skin .km-specs__group td,
html.dark-skin .km-topic-item__excerpt,
html.dark-skin .km-single__excerpt {
	color: #374151 !important;
}

.km-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

/* Breadcrumb */
.km-breadcrumb {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 1.5rem;
}

.km-breadcrumb a {
	color: #2563eb;
	text-decoration: none;
}

.km-breadcrumb a:hover {
	text-decoration: underline;
}

.km-breadcrumb__sep {
	margin: 0 0.5rem;
	color: #ccc;
}

.km-breadcrumb__current {
	color: #333;
	font-weight: 500;
}

/* Archive */
.km-archive__header {
	margin-bottom: 2rem;
}

.km-archive__title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.km-archive__desc {
	color: #666;
	margin: 0;
}

/* Featured mobil pilihan */
.km-featured {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e5e7eb;
}

.km-featured__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	color: #111827;
}

.km-featured__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

@media (max-width: 900px) {
	.km-featured__grid {
		grid-template-columns: 1fr;
	}
}

.km-featured-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s, transform 0.2s;
}

.km-featured-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.km-featured-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.km-featured-card__image {
	position: relative;
	overflow: hidden;
}

.km-featured-card__image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.km-featured-card__placeholder {
	width: 100%;
	height: 200px;
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	font-size: 0.875rem;
}

.km-featured-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #2563eb;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
}

.km-featured-card__body {
	padding: 1rem 1.25rem 1.25rem;
}

.km-featured-card__brand {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #2563eb;
	letter-spacing: 0.05em;
}

.km-featured-card__name {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0.25rem 0 0.5rem;
	line-height: 1.3;
	color: #111827;
}

.km-featured-card__meta {
	display: flex;
	gap: 0.75rem;
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.35rem;
}

.km-featured-card__specs {
	font-size: 0.85rem;
	color: #555;
	margin: 0 0 0.75rem;
}

.km-featured-card__cta {
	font-size: 0.85rem;
	font-weight: 600;
	color: #2563eb;
}

html.dark-skin .km-featured-card {
	background: #ffffff !important;
	border-color: #e5e7eb !important;
}

html.dark-skin .km-featured-card__name {
	color: #111827 !important;
}

html.dark-skin .km-featured__title {
	color: #111827 !important;
}

/* Filter */
.km-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.km-filter__item {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 0.875rem;
	color: #333;
	text-decoration: none;
	transition: all 0.2s;
}

.km-filter__item:hover,
.km-filter__item.is-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

/* Grid */
.km-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

/* Card */
.km-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
	background: #fff;
}

.km-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.km-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.km-card__image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.km-card__placeholder {
	width: 100%;
	height: 180px;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	font-size: 0.875rem;
}

.km-card__body {
	padding: 1rem 1.25rem 1.25rem;
}

.km-card__brand {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #2563eb;
	letter-spacing: 0.05em;
}

.km-card__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0.25rem 0 0.5rem;
	line-height: 1.3;
}

.km-card__meta {
	display: flex;
	gap: 0.75rem;
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.5rem;
}

.km-card__price {
	font-size: 1.1rem;
	font-weight: 700;
	color: #16a34a;
	margin: 0 0 0.25rem;
}

.km-card__specs {
	font-size: 0.8rem;
	color: #666;
	margin: 0;
}

/* Pagination */
.km-pagination {
	margin-top: 2rem;
	text-align: center;
}

.km-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.km-pagination a,
.km-pagination span {
	padding: 0.5rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	font-size: 0.875rem;
}

.km-pagination .current {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

/* Empty state */
.km-empty {
	text-align: center;
	padding: 3rem;
	color: #888;
}

/* Single */
.km-single__hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
	.km-single__hero {
		grid-template-columns: 1fr;
	}
}

.km-single__image {
	width: 100%;
	border-radius: 12px;
}

.km-single__placeholder {
	width: 100%;
	aspect-ratio: 16/10;
	background: #f3f4f6;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
}

.km-single__brand {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #2563eb;
	letter-spacing: 0.05em;
}

.km-single__title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0.25rem 0;
	line-height: 1.2;
}

.km-single__year {
	color: #888;
	margin: 0 0 0.5rem;
}

.km-single__price {
	font-size: 1.75rem;
	font-weight: 700;
	color: #16a34a;
	margin: 0 0 1rem;
}

.km-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.km-tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #f3f4f6;
	border-radius: 20px;
	font-size: 0.8rem;
	color: #555;
}

.km-single__excerpt {
	color: #555;
	line-height: 1.6;
}

/* Specs table */
.km-specs {
	margin-bottom: 2.5rem;
}

.km-specs__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.km-specs__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

@media (max-width: 768px) {
	.km-specs__grid {
		grid-template-columns: 1fr;
	}
}

.km-specs__group h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #2563eb;
}

.km-specs__group table {
	width: 100%;
	border-collapse: collapse;
}

.km-specs__group th,
.km-specs__group td {
	padding: 0.6rem 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.9rem;
	text-align: left;
}

.km-specs__group th {
	color: #666;
	font-weight: 500;
	width: 45%;
}

.km-specs__group td {
	font-weight: 600;
	color: #333;
}

.km-fitur-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 0.5rem;
}

.km-fitur-list li {
	padding: 0.5rem 0 0.5rem 1.5rem;
	position: relative;
	font-size: 0.9rem;
}

.km-fitur-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #16a34a;
	font-weight: 700;
}

.km-specs__fitur {
	margin-top: 2rem;
}

.km-specs__fitur h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

/* FAQ */
.km-faq {
	margin-bottom: 2rem;
}

.km-faq h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.km-faq__item {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 0.5rem;
	padding: 0.75rem 1rem;
}

.km-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.95rem;
}

.km-faq__item p {
	margin: 0.75rem 0 0;
	color: #555;
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Tabs */
.km-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 1.5rem;
}

.km-tabs__btn {
	background: none;
	border: none;
	padding: 0.75rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.km-tabs__btn:hover {
	color: #2563eb;
}

.km-tabs__btn.is-active {
	color: #2563eb;
	border-bottom-color: #2563eb;
}

.km-tabs__count {
	background: #2563eb;
	color: #fff;
	font-size: 0.7rem;
	padding: 0.1rem 0.45rem;
	border-radius: 10px;
	font-weight: 700;
}

.km-tab-panel {
	display: none;
}

.km-tab-panel.is-active {
	display: block;
}

/* Forum */
.km-discussion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.km-discussion__header h2 {
	margin: 0;
	font-size: 1.5rem;
}

.km-discussion__stats {
	display: flex;
	gap: 1rem;
	font-size: 0.875rem;
	color: #666;
}

.km-discussion__form {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e7eb;
}

.km-discussion__form h3 {
	margin: 0 0 1rem;
	font-size: 1.1rem;
}

.km-forum-empty {
	color: #888;
	font-style: italic;
	padding: 1.5rem 0;
}

/* Topic list */
.km-topic-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.km-topic-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.km-topic-item__type {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #2563eb;
	letter-spacing: 0.03em;
}

.km-topic-item__title {
	margin: 0.25rem 0;
	font-size: 1.05rem;
}

.km-topic-item__title a {
	color: #111;
	text-decoration: none;
}

.km-topic-item__title a:hover {
	color: #2563eb;
}

.km-topic-item__excerpt {
	color: #666;
	font-size: 0.875rem;
	margin: 0.25rem 0;
}

.km-topic-item__meta {
	display: flex;
	gap: 0.75rem;
	font-size: 0.8rem;
	color: #999;
}

/* Badges */
.km-badge {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	background: #f3f4f6;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #555;
	margin-right: 0.25rem;
}

.km-badge--solved {
	background: #dcfce7;
	color: #16a34a;
}

/* Stars */
.km-stars {
	color: #fbbf24;
	font-size: 1rem;
	letter-spacing: 1px;
}

.km-star {
	color: #ddd;
}

.km-star.is-filled {
	color: #fbbf24;
}

/* Forms */
.km-form__row {
	margin-bottom: 1rem;
}

.km-form__row label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
}

.km-form__input,
.km-form__textarea,
.km-form__select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9rem;
	font-family: inherit;
}

.km-form__textarea {
	resize: vertical;
}

/* Buttons */
.km-btn {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.km-btn--primary {
	background: #2563eb;
	color: #fff;
}

.km-btn--primary:hover {
	background: #1d4ed8;
	color: #fff;
}

.km-btn--outline {
	background: transparent;
	color: #2563eb;
	border: 1px solid #2563eb;
}

.km-btn--outline:hover {
	background: #eff6ff;
}

.km-btn--ghost {
	background: transparent;
	color: #666;
	border: 1px solid #e5e7eb;
}

.km-btn--ghost:hover {
	background: #f9fafb;
}

.km-btn--sm {
	padding: 0.35rem 0.75rem;
	font-size: 0.8rem;
}

/* Notices */
.km-notice {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.km-notice--success {
	background: #dcfce7;
	color: #166534;
}

.km-notice--info {
	background: #dbeafe;
	color: #1e40af;
}

.km-notice--error {
	background: #fee2e2;
	color: #991b1b;
}

/* Forum archive */
.km-forum-archive__header {
	margin-bottom: 2rem;
}

.km-forum-archive__mobil {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.km-forum-archive__thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
}

.km-forum-archive__title {
	margin: 0;
	font-size: 1.75rem;
}

.km-forum-archive__price {
	color: #16a34a;
	font-weight: 700;
	margin: 0.25rem 0 0;
}

.km-forum-archive__stats {
	display: flex;
	gap: 1rem;
	font-size: 0.875rem;
	color: #666;
}

.km-forum-archive__layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 2rem;
}

@media (max-width: 768px) {
	.km-forum-archive__layout {
		grid-template-columns: 1fr;
	}
}

.km-forum-archive__sidebar {
	background: #f9fafb;
	padding: 1.5rem;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.km-forum-archive__sidebar h3 {
	margin: 0 0 1rem;
	font-size: 1rem;
}

/* Single topic */
.km-topic {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.km-topic__title {
	margin: 0.5rem 0;
	font-size: 1.5rem;
}

.km-topic__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
	color: #888;
	margin-top: 0.5rem;
}

.km-topic__content {
	margin-top: 1rem;
	line-height: 1.7;
	color: #333;
}

.km-reply-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.km-reply-item {
	padding: 1rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.km-reply-item__header {
	display: flex;
	gap: 0.75rem;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
}

.km-reply-item__header strong {
	color: #111;
}

.km-reply-item__header span {
	color: #999;
}

.km-reply-item__content {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #333;
}

.km-helpful-count {
	font-size: 0.8rem;
	color: #16a34a;
}

.km-forum-login {
	background: #f9fafb;
	padding: 1.5rem;
	border-radius: 8px;
	text-align: center;
}

.km-forum-login p {
	margin: 0 0 1rem;
	color: #666;
}

.km-form--inline {
	display: inline;
	margin-top: 0.75rem;
}

.km-reply-form-section {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e7eb;
}

.km-reply-form-section h2 {
	font-size: 1.1rem;
	margin-bottom: 1rem;
}
