/* USE THIS FILE TO ADD ANY ADDITIONS/MODIFICATIONS
---------------------------------------- */

/* ==============================================
   EARTHY THEME — Light Mode
   ============================================== */
:root,
[data-bs-theme="light"] {
	/* Core palette */
	--bs-primary:            #7a4f2e;
	--bs-primary-rgb:        122, 79, 46;
	--bs-secondary:          #6b7c3f;
	--bs-secondary-rgb:      107, 124, 63;
	--bs-success:            #4e7c45;
	--bs-success-rgb:        78, 124, 69;
	--bs-info:               #7a9e8e;
	--bs-info-rgb:           122, 158, 142;
	--bs-warning:            #c8932a;
	--bs-warning-rgb:        200, 147, 42;
	--bs-danger:             #a84832;
	--bs-danger-rgb:         168, 72, 50;

	/* Body & backgrounds */
	--bs-body-bg:            #f5f0e4;
	--bs-body-color:         #3b2a1a;
	--bs-secondary-bg:       #ede5d4;
	--bs-tertiary-bg:        #e4dac7;

	/* Links */
	--bs-link-color:         #7a4f2e;
	--bs-link-color-rgb:     122, 79, 46;
	--bs-link-hover-color:   #5a3418;

	/* Borders */
	--bs-border-color:       #c4aa84;
	--bs-border-color-translucent: rgba(122, 79, 46, 0.18);

	/* Navbar */
	--bs-navbar-bg:          #5a3820;
	--bs-navbar-color:       rgba(255, 240, 210, 0.85);
	--bs-navbar-hover-color: #fdf4e3;
	--bs-navbar-active-color: #fdf4e3;
	--bs-navbar-brand-color: #fdf4e3;
	--bs-navbar-brand-hover-color: #fff;

	/* Emphasis */
	--bs-emphasis-color:     #2a1a0a;
	--bs-emphasis-color-rgb: 42, 26, 10;

	/* Cards & surfaces */
	--bs-card-bg:            #ede5d4;
	--bs-card-border-color:  #c4aa84;

	/* Code */
	--bs-green:              #5a7a3a;
}

/* Navbar earthy background */
.navbar {
	background-color: #5a3820 !important;
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-text {
	color: rgba(255, 240, 210, 0.9) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
	color: #fdf4e3 !important;
}

.navbar .dropdown-menu {
	background-color: #ede5d4;
	border-color: #c4aa84;
}

.navbar .dropdown-item {
	color: #3b2a1a;
}

.navbar .dropdown-item:hover {
	background-color: #ddd2ba;
	color: #2a1a0a;
}

/* Buttons — primary */
.btn-primary {
	--bs-btn-bg:            #7a4f2e;
	--bs-btn-border-color:  #7a4f2e;
	--bs-btn-hover-bg:      #5a3418;
	--bs-btn-hover-border-color: #5a3418;
	--bs-btn-active-bg:     #4a2810;
	--bs-btn-color:         #fdf4e3;
	--bs-btn-hover-color:   #fff;
}

.btn-secondary {
	--bs-btn-bg:            #6b7c3f;
	--bs-btn-border-color:  #6b7c3f;
	--bs-btn-hover-bg:      #535f30;
	--bs-btn-hover-border-color: #535f30;
	--bs-btn-color:         #fdf4e3;
	--bs-btn-hover-color:   #fff;
}

/* Blockquote earthy accent */
blockquote {
	border-inline-start-color: #c8932a !important;
	background-color: rgba(122, 79, 46, 0.08) !important;
}

blockquote blockquote {
	background-color: rgba(122, 79, 46, 0.05) !important;
}

/* Tables */
.table {
	--bs-table-bg:          transparent;
	--bs-table-striped-bg:  rgba(122, 79, 46, 0.06);
	--bs-table-hover-bg:    rgba(122, 79, 46, 0.1);
	--bs-table-border-color: #c4aa84;
}

/* Forum topic icons — earthy tint */
.forum-icon,
.forum-icon-svg {
	color: #7a4f2e;
	fill: #7a4f2e;
}

/* Pagination */
.page-link {
	color: #7a4f2e;
	background-color: #ede5d4;
	border-color: #c4aa84;
}

.page-link:hover {
	color: #5a3418;
	background-color: #ddd2ba;
	border-color: #b09060;
}

.page-item.active .page-link {
	background-color: #7a4f2e;
	border-color: #7a4f2e;
	color: #fdf4e3;
}

/* Post highlight */
.posthilit {
	background-color: rgba(200, 147, 42, 0.3) !important;
}

/* ==============================================
   EARTHY THEME — Dark Mode
   ============================================== */
[data-bs-theme="dark"] {
	/* Core palette */
	--bs-primary:            #c47a4a;
	--bs-primary-rgb:        196, 122, 74;
	--bs-secondary:          #8fa85c;
	--bs-secondary-rgb:      143, 168, 92;
	--bs-success:            #6aaa60;
	--bs-warning:            #e0a940;
	--bs-danger:             #c4634a;

	/* Body & backgrounds */
	--bs-body-bg:            #1e1510;
	--bs-body-color:         #ddd0bc;
	--bs-secondary-bg:       #2c2016;
	--bs-tertiary-bg:        #392a1c;

	/* Links */
	--bs-link-color:         #c47a4a;
	--bs-link-color-rgb:     196, 122, 74;
	--bs-link-hover-color:   #e09060;

	/* Borders */
	--bs-border-color:       #5a4030;
	--bs-border-color-translucent: rgba(196, 122, 74, 0.18);

	/* Emphasis */
	--bs-emphasis-color:     #f0e4d0;

	/* Code */
	--bs-green:              #8aba6a;
}

[data-bs-theme="dark"] .navbar {
	background-color: #120e09 !important;
}

[data-bs-theme="dark"] .navbar .dropdown-menu {
	background-color: #2c2016;
	border-color: #5a4030;
}

[data-bs-theme="dark"] .navbar .dropdown-item {
	color: #ddd0bc;
}

[data-bs-theme="dark"] .navbar .dropdown-item:hover {
	background-color: #392a1c;
	color: #f0e4d0;
}

[data-bs-theme="dark"] blockquote {
	border-inline-start-color: #e0a940 !important;
	background-color: rgba(196, 122, 74, 0.1) !important;
}

[data-bs-theme="dark"] .page-link {
	color: #c47a4a;
	background-color: #2c2016;
	border-color: #5a4030;
}

[data-bs-theme="dark"] .page-link:hover {
	color: #e09060;
	background-color: #392a1c;
}

[data-bs-theme="dark"] .page-item.active .page-link {
	background-color: #c47a4a;
	border-color: #c47a4a;
	color: #1e1510;
}

[data-bs-theme="dark"] .forum-icon,
[data-bs-theme="dark"] .forum-icon-svg {
	color: #c47a4a;
	fill: #c47a4a;
}
