/* Güncel TycoonCore içerik senkronizasyonu: dünya temaları ve gerçek ItemsAdder varlıkları. */
:root {
	--tc-world-agriculture: #829c35;
}

body[data-world="agriculture"], body[data-world-preview="agriculture"] {
	--wx-canvas: #d9e9b5;
	--wx-bottom: #c7a96a;
	--wx-header: #e7efc9;
	--wx-header-2: #c3d990;
	--wx-panel: #f2f7dd;
	--wx-panel-2: #dce8b4;
	--wx-border: #657a32;
	--wx-accent: #829c35;
	--wx-title: #344613;
	--wx-text: #3f4b26;
	--wx-muted: #6d7651;
	--wx-nav-text: #3b4d16;
	--wx-hero: #1c2908;
	--world-paper: #eef4d8;
	--world-deep: #344613;
	--world-accent: #829c35;
	--world-rgb: 130, 156, 53;
	--preview-page: #192d0f;
	--preview-paper: #273e18;
	--preview-accent: #9ac36c;
	--preview-deep: #4c712b;
	--preview-line: #7ba255;
	--canvas-image: url("../img/worlds/agriculture-minecraft-20260713.jpg");
}

html[data-color-theme="dark"] body[data-world="agriculture"],
html[data-color-theme="dark"] body[data-world-preview="agriculture"] {
	--wx-canvas: #101805;
	--wx-bottom: #261d08;
	--wx-header: #172009;
	--wx-header-2: #304010;
	--wx-panel: #1c290d;
	--wx-panel-2: #304018;
	--wx-border: #819b43;
	--wx-accent: #a5c95a;
	--wx-title: #f8fbe9;
	--wx-text: #e8efd3;
	--wx-muted: #bac69b;
	--wx-nav-text: #f1f6dc;
	--wx-hero: #050802;
	--world-paper: #1c290d;
	--world-deep: #f1f6dc;
	--world-accent: #a5c95a;
	--preview-page: #101805;
	--preview-paper: #1c290d;
	--preview-accent: #a5c95a;
	--preview-deep: #304010;
	--preview-line: #819b43;
}

.tc-plugin-item-texture {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	image-rendering: pixelated;
}

.tc-item-entry {
	min-width: 0;
	border: 1px solid var(--tc-border, var(--tc-line));
	background: var(--tc-surface-2);
	transition: border-color .18s ease, background-color .18s ease;
}

.tc-item-entry[open] {
	grid-column: 1 / -1;
	border-color: var(--tc-primary);
	background: var(--tc-surface, var(--tc-surface-2));
}

.tc-item-entry > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.tc-item-entry > summary::-webkit-details-marker { display: none; }

.tc-item-entry .tc-item-card {
	border: 0;
	border-radius: 0;
	background: transparent;
	min-height: 130px;
}

.tc-item-entry .tc-item-card:focus-visible {
	outline: 3px solid var(--tc-primary);
	outline-offset: -3px;
}

.tc-item-card__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tc-item-card__toggle i { transition: transform .2s ease; }
.tc-item-entry[open] .tc-item-card__toggle i { transform: rotate(180deg); }

.tc-item-detail {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(330px, 1.15fr);
	gap: 18px;
	padding: 18px;
	border-top: 1px solid var(--tc-border, var(--tc-line));
}

.tc-item-detail__copy h4 {
	margin: 4px 0 14px;
	font-size: 1.15rem;
}

.tc-item-fact {
	padding: 11px 0;
	border-top: 1px solid var(--tc-border, var(--tc-line));
}

.tc-item-fact strong { display: block; margin-bottom: 4px; font-size: .78rem; }
.tc-item-fact p { margin: 0; color: var(--tc-text-muted); font-size: .83rem; line-height: 1.55; }

.tc-crafting-window {
	align-self: start;
	padding: 14px;
	color: #242424;
	background: #c6c6c6;
	border: 3px solid #555;
	box-shadow: inset 3px 3px 0 #f7f7f7, inset -3px -3px 0 #8b8b8b;
	font-family: Nunito, sans-serif;
}

.tc-crafting-window__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 12px;
	padding: 2px 3px 9px;
	border-bottom: 2px solid #8b8b8b;
}

.tc-crafting-window__title img,
.tc-crafting-slot img {
	object-fit: contain;
	image-rendering: pixelated;
}

.tc-crafting-window__title strong,
.tc-crafting-window__title span { display: block; }
.tc-crafting-window__title strong { color: #242424 !important; font-size: .86rem; }
.tc-crafting-window__title span { color: #4b4b4b !important; font-size: .7rem; }

.tc-crafting-layout {
	display: grid;
	grid-template-columns: 156px 34px minmax(72px, 1fr);
	align-items: center;
	gap: 10px;
}

.tc-crafting-grid {
	display: grid;
	grid-template-columns: repeat(3, 48px);
	grid-template-rows: repeat(3, 48px);
	gap: 4px;
}

.tc-crafting-slot {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: #8b8b8b;
	border: 2px solid;
	border-color: #373737 #fff #fff #373737;
}

.tc-crafting-slot img { max-width: 40px; max-height: 40px; }
.tc-crafting-missing { color: #d7d7d7; font-size: 1.2rem; font-weight: 900; text-shadow: 1px 1px 0 #333; }
.tc-crafting-result .tc-crafting-slot { width: 58px; height: 58px; margin: 0 auto; }
.tc-crafting-result .tc-crafting-slot img { max-width: 48px; max-height: 48px; }

.tc-crafting-slot b,
.tc-crafting-slot em {
	position: absolute;
	right: 2px;
	bottom: 0;
	color: #fff;
	font-size: .7rem;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
	text-shadow: 1px 1px 0 #222, -1px -1px 0 #222;
}

.tc-crafting-slot em {
	top: 2px;
	bottom: auto;
	padding: 2px 3px;
	background: #315b82;
}

.tc-crafting-arrow {
	position: relative;
	width: 31px;
	height: 16px;
	background: #6b6b6b;
}

.tc-crafting-arrow::after {
	content: "";
	position: absolute;
	right: -8px;
	top: -8px;
	border-top: 16px solid transparent;
	border-bottom: 16px solid transparent;
	border-left: 14px solid #6b6b6b;
}

.tc-furnace-layout {
	display: grid;
	grid-template-columns: 76px 74px minmax(90px, 1fr);
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 152px;
	padding: 4px 24px;
}

.tc-furnace-inputs {
	display: grid;
	grid-template-rows: 48px 32px 48px;
	justify-items: center;
	align-items: center;
}

.tc-furnace-flame {
	position: relative;
	width: 22px;
	height: 27px;
	background: #f39a25;
	clip-path: polygon(48% 0, 68% 28%, 84% 18%, 100% 58%, 82% 100%, 18% 100%, 0 58%, 22% 31%, 35% 47%);
	filter: drop-shadow(0 1px 0 #9b4c12);
}

.tc-furnace-flame::after {
	content: "";
	position: absolute;
	left: 7px;
	bottom: 2px;
	width: 9px;
	height: 13px;
	background: #ffe36b;
	clip-path: polygon(50% 0, 100% 55%, 76% 100%, 24% 100%, 0 55%);
}

.tc-furnace-fuel span {
	color: #d4d4d4;
	font-size: .58rem;
	font-weight: 900;
	text-shadow: 1px 1px 0 #3b3b3b;
}

.tc-furnace-progress {
	position: relative;
	width: 58px;
	height: 24px;
	background: #9a9a9a;
	border: 2px solid #6b6b6b;
}

.tc-furnace-progress::after {
	content: "";
	position: absolute;
	right: -18px;
	top: -8px;
	border-top: 18px solid transparent;
	border-bottom: 18px solid transparent;
	border-left: 19px solid #6b6b6b;
}

.tc-crafting-result { min-width: 0; text-align: center; }
.tc-crafting-result > strong { display: block; margin-top: 6px; color: #242424 !important; font-size: .7rem; line-height: 1.25; }

html[data-color-theme="dark"] .tc-wiki-panel .tc-crafting-window .tc-crafting-window__title strong,
html[data-color-theme="dark"] .tc-wiki-panel .tc-crafting-window .tc-crafting-result > strong {
	color: #242424 !important;
}

.tc-crafting-ingredients {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 12px 0 0;
	padding: 10px 0 0;
	border-top: 2px solid #8b8b8b;
	list-style: none;
}

.tc-crafting-ingredients li {
	padding: 4px 7px;
	color: #303030;
	background: #dedede;
	border: 1px solid #777;
	font-size: .66rem;
	font-weight: 800;
}

.tc-item-no-recipe {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	align-self: start;
	padding: 16px;
	border: 1px solid var(--tc-border, var(--tc-line));
	background: var(--tc-surface-2);
}

.tc-item-no-recipe > i { margin-top: 2px; color: var(--tc-primary); font-size: 1.35rem; }
.tc-item-no-recipe strong { display: block; margin-bottom: 4px; }
.tc-item-no-recipe p { margin: 0; color: var(--tc-text-muted); font-size: .82rem; line-height: 1.5; }

.tc-item-attribution {
	margin: 15px 0 0;
	color: var(--tc-text-muted);
	font-size: .68rem;
	line-height: 1.5;
}

.tc-item-attribution a { color: var(--tc-primary); text-decoration: underline; }

.tc-world-unlock-panel {
	margin-top: 18px;
	border-color: var(--wx-border, var(--tc-border));
	background: var(--wx-panel, var(--tc-surface));
}

.tc-world-unlock-panel__header {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--wx-border, var(--tc-border));
}

.tc-world-unlock-panel__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	color: var(--wx-title, var(--tc-text));
	background: var(--wx-panel-2, var(--tc-surface-2));
	border: 1px solid var(--wx-border, var(--tc-border));
}

.tc-world-unlock-panel__icon i { font-size: 1.65rem; }
.tc-world-unlock-panel__header h2 { margin: 3px 0 5px; color: var(--wx-title, var(--tc-text)); }
.tc-world-unlock-panel__header p { margin: 0; color: var(--wx-muted, var(--tc-text-muted)); line-height: 1.6; }

.tc-world-unlock-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.tc-world-unlock-step {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	min-width: 0;
	padding: 14px;
	color: var(--wx-text, var(--tc-text));
	background: var(--wx-panel-2, var(--tc-surface-2));
	border: 1px solid var(--wx-border, var(--tc-border));
}

.tc-world-unlock-step > i {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: var(--wx-title, var(--tc-text));
	background: color-mix(in srgb, var(--wx-accent, var(--tc-primary)) 20%, transparent);
	border: 1px solid var(--wx-border, var(--tc-border));
	font-size: 1rem;
}

.tc-world-unlock-step strong { display: block; margin: 1px 0 5px; color: var(--wx-title, var(--tc-text)) !important; font-size: .84rem; }
.tc-world-unlock-step p { margin: 0; color: var(--wx-muted, var(--tc-text-muted)); font-size: .76rem; line-height: 1.55; }

/* Header account identity: use the same LeaderOS skin avatar as the profile page. */
.tc-nav__avatar {
	overflow: hidden;
	padding: 0 !important;
}

.tc-nav__avatar-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	image-rendering: pixelated;
}

/* professional.css hides both nodes and leaves only its pseudo status light. */
@media (min-width: 1180px) {
	.tc-nav__online::before { display: none; }
	.tc-nav__online .tc-nav__online-dot { display: block; }
	.tc-nav__online .tc-nav__online-text { display: inline; }
}

/* Keep the complete server/account cluster closer to the right edge. */
@media (min-width: 1200px) and (max-width: 1399px) {
	.tc-nav__actions { transform: translateX(12px); }
}

@media (min-width: 1400px) and (max-width: 1500px) {
	.tc-nav__actions { transform: translateX(24px); }
}

@media (min-width: 1501px) {
	.tc-nav__actions { transform: translateX(clamp(60px, calc(25vw - 332px), 120px)); }
}

@media (max-width: 760px) {
	.tc-item-detail { grid-template-columns: 1fr; padding: 14px; }
	.tc-crafting-window { padding: 12px; }
	.tc-crafting-layout { grid-template-columns: 144px 28px minmax(62px, 1fr); gap: 6px; }
	.tc-crafting-grid { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 4px; }
	.tc-crafting-slot { width: 44px; height: 44px; }
	.tc-crafting-slot img { max-width: 36px; max-height: 36px; }
	.tc-crafting-arrow { width: 24px; height: 13px; }
	.tc-crafting-arrow::after { right: -7px; top: -7px; border-top-width: 14px; border-bottom-width: 14px; border-left-width: 12px; }
	.tc-furnace-layout { grid-template-columns: 58px 54px minmax(72px, 1fr); gap: 12px; padding: 4px 8px; }
	.tc-furnace-progress { width: 40px; height: 20px; }
	.tc-furnace-progress::after { right: -15px; top: -7px; border-top-width: 15px; border-bottom-width: 15px; border-left-width: 16px; }
	.tc-world-unlock-panel__header { grid-template-columns: 46px minmax(0, 1fr); }
	.tc-world-unlock-panel__icon { width: 46px; height: 46px; }
	.tc-world-unlock-steps { grid-template-columns: 1fr; }
}
