/* ================================================================
   DARK / PREMIUM THEME  —  derevodom.com
   Primary: #1C1208 (charcoal-brown)
   Accent:  #D4A847 (gold)
   Background: #F8F5F0 (warm cream)
   ================================================================ */

/* ── Body ── */
.theme-dark body {
    background: #F8F5F0;
}

/* ── Header bar ── */
.theme-dark .site-header-bar {
    background: #1C1208;
    background-image: linear-gradient(135deg, #2C1D0E 0%, #1C1208 100%);
}

/* ── Desktop nav links ── */
.theme-dark .nav-link {
    color: #F0E8D0;
}
.theme-dark .nav-link:hover {
    color: #D4A847;
}

/* ── User button in header ── */
.theme-dark .hdr-user-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}
.theme-dark .hdr-user-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ── User dropdown ── */
.theme-dark .hdr-user-drop__name {
    color: #1C1208;
    background: #FAF5E8;
    border-bottom-color: #E8DDB8;
}
.theme-dark .hdr-user-drop__link:hover {
    background: #FAF5E8;
    color: #1C1208;
}
.theme-dark .hdr-auth-tab--active {
    color: #1C1208;
    border-bottom-color: #D4A847;
}
.theme-dark .hdr-auth-form__input:focus {
    border-color: #1C1208;
}
.theme-dark .hdr-auth-form__submit {
    background: #1C1208;
}
.theme-dark .hdr-auth-form__submit:hover {
    background: #2C1D0E;
}

/* ── Mobile nav drawer ── */
.theme-dark .mob-nav {
    background: #1C1208;
    background-image: linear-gradient(180deg, #2C1D0E 0%, #1C1208 60%, #110B04 100%);
}

/* ── Footer ── */
.theme-dark .site-footer-bar {
    background: #1C1208;
}

/* ── Global link colour ── */
.theme-dark a {
    color: #7A5010;
}

/* ── Hero section ── */
.theme-dark .mp-hero {
    background-color: #1C1208;
    background-image:
        repeating-linear-gradient(172deg, transparent 0, transparent 28px, rgba(255,255,255,0.013) 28px, rgba(255,255,255,0.013) 29px),
        repeating-linear-gradient(168deg, transparent 0, transparent 58px, rgba(212,168,71,0.09) 58px, rgba(212,168,71,0.09) 60px),
        linear-gradient(155deg, #2C1D0E 0%, #1C1208 45%, #110B04 100%);
}

/* ── Page banner (inner pages) ── */
.theme-dark .page-banner {
    background-color: #1C1208;
    background-image: linear-gradient(155deg, #2C1D0E 0%, #1C1208 50%, #110B04 100%);
}

/* ── Wood species dark section ── */
.theme-dark .mp-woods-bg {
    background-color: #110B04;
    background-image:
        repeating-linear-gradient(90deg, transparent 0, transparent 38px, rgba(255,255,255,0.012) 38px, rgba(255,255,255,0.012) 39px),
        linear-gradient(180deg, #1C1208 0%, #0D0804 100%);
}

/* ── Buttons ── */
.theme-dark .btn-green {
    background-color: #1C1208;
    border-color: #1C1208;
}
.theme-dark .btn-green:hover {
    color: #D4A847;
}
.theme-dark .btn-green-outline {
    color: #1C1208;
    border-color: #1C1208;
}
.theme-dark .btn-green-outline:hover {
    background: #1C1208;
    color: #fff;
}

.theme-dark .btn-wood {
    background: #D4A847;
    border-color: #D4A847;
    color: #1C1208;
}
.theme-dark .btn-wood:hover {
    background: #E0B85A;
    border-color: #E0B85A;
    color: #1C1208;
}
.theme-dark .btn-wood--outline {
    background: transparent;
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.theme-dark .btn-wood--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}
.theme-dark .btn-wood--outline-green {
    background: transparent;
    border-color: #1C1208;
    color: #1C1208;
}
.theme-dark .btn-wood--outline-green:hover {
    background: #1C1208;
    color: #fff;
}

/* ── Section titles ── */
.theme-dark .mp-section__title {
    color: #1C1208;
    border-left-color: #D4A847;
}
.theme-dark .mp-section__title--light {
    color: #fff;
    border-left-color: rgba(255,255,255,0.45);
}

/* ── Category cards ── */
.theme-dark .mp-cat-card {
    background: #F5EED8;
    border-color: #DDD0AA;
}
.theme-dark .mp-cat-card:hover {
    background: #1C1208;
    border-color: #1C1208;
}
.theme-dark .mp-cat-card--all {
    background: #1C1208;
    border-color: #1C1208;
}
.theme-dark .mp-cat-card--all:hover {
    background: #2C1D0E;
    border-color: #2C1D0E;
}

.theme-dark .mp-cat-block .mp-cat-card {
    background: #FAF5E8;
    border-left-color: #D4A847;
    border-bottom-color: #E8DDB8;
}
.theme-dark .mp-cat-block .mp-cat-card:hover {
    background: #F2EAD5;
    border-left-color: #1C1208;
    border-bottom-color: #E8DDB8;
    transform: none;
}
.theme-dark .mp-cat-block .mp-cat-card:hover .mp-cat-card__name {
    color: #1C1208;
}
.theme-dark .mp-cat-block .mp-cat-card:hover .mp-cat-card__count {
    color: #888;
}

.theme-dark .mp-cat-card__articles a::before {
    color: #D4A847;
}
.theme-dark .mp-cat-card__articles a:hover {
    background: #FAF5E8;
    color: #1C1208;
}
.theme-dark .mp-cat-card__articles a:hover::before {
    color: #1C1208;
    opacity: 1;
}

/* ── Article cards ── */
.theme-dark .mp-article-card {
    border-top-color: #1C1208;
}
.theme-dark .mp-article-card:hover {
    border-top-color: #D4A847;
}

/* ── Sidebar ── */
.theme-dark .sidebar__title {
    color: #1C1208;
    border-left-color: #D4A847;
}
.theme-dark .sidebar__link:hover {
    color: #1C1208;
}

/* ── Article list ── */
.theme-dark .article-list-item:hover .article-list-item__num {
    color: #D4A847;
    border-right-color: #DDD0AA;
}
.theme-dark .article-list-item__title:hover {
    color: #1C1208;
}
.theme-dark .article-list-item:hover .article-list-item__arrow {
    color: #1C1208;
}

/* ── Article body ── */
.theme-dark .article-body h3 {
    color: #1C1208;
}

/* ── Category breadcrumb pills ── */
.theme-dark .cats-row__link:hover {
    background: #1C1208;
    border-color: #1C1208;
}
.theme-dark .cats-row__link--active {
    background: #1C1208;
    border-color: #1C1208;
}

/* ── Wood catalog cards ── */
.theme-dark .wood-catalog-card__name {
    color: #1C1208;
}

/* ── Species page ── */
.theme-dark .species-section h2 {
    color: #1C1208;
    border-bottom-color: #E8DDB8;
}

/* ── Pagination ── */
.theme-dark .page-btn:hover {
    background: #1C1208;
    border-color: #1C1208;
    color: #fff;
}
.theme-dark .page-btn--active {
    background: #1C1208;
    border-color: #1C1208;
}
.theme-dark .page-btn--nav:hover {
    background: #1C1208;
    border-color: #1C1208;
    color: #fff;
}

/* ── House cards ── */
.theme-dark .house-card__name {
    color: #1C1208;
}
.theme-dark .house-badge {
    background: #F5EED8;
    color: #5C3D0A;
    border-color: #D4B87A;
}

/* ── House filter ── */
.theme-dark .house-filter {
    background: #FAF5E8;
    border-color: #E0D0A0;
}
.theme-dark .house-filter__label {
    color: #5C3D0A;
}
.theme-dark .house-filter__btn {
    border-color: #D4B87A;
    color: #5C3D0A;
}
.theme-dark .house-filter__btn.active,
.theme-dark .house-filter__btn:hover {
    background: #1C1208;
    color: #fff;
    border-color: #1C1208;
}
.theme-dark .house-filter__check input[type=checkbox] {
    accent-color: #1C1208;
}

/* ── House detail ── */
.theme-dark .house-detail__title {
    color: #1C1208;
}
.theme-dark .house-spec {
    background: #F5EED8;
    border-color: #E0D0A0;
}
.theme-dark .house-spec__val {
    color: #1C1208;
}
.theme-dark .house-detail__features-title {
    color: #5C3D0A;
}
.theme-dark .house-feature-tag {
    background: #F5EED8;
    border-color: #D4B87A;
    color: #3C2206;
}
.theme-dark .house-plans__title {
    color: #5C3D0A;
}
.theme-dark .house-plans__thumb:hover img {
    border-color: #1C1208;
}

/* ── Calculators ── */
.theme-dark .calc-card {
    border-top-color: #1C1208;
}
.theme-dark .calc-card:hover {
    border-top-color: #D4A847;
}
.theme-dark .calc-card__go {
    color: #1C1208;
}
.theme-dark .calc-result {
    border-color: #1C1208;
}
.theme-dark .calc-result__val {
    color: #1C1208;
}
.theme-dark .calc-hint {
    background: #FAF5E8;
    border-left-color: #1C1208;
}
.theme-dark .calc-hint h2 {
    color: #1C1208;
}

/* ── Thermal calculator ── */
.theme-dark .th-section-title {
    color: #1C1208;
}
.theme-dark .th-layer.th-drag-over {
    border-color: #1C1208;
    box-shadow: 0 0 0 2px rgba(28,18,8,0.25);
}
.theme-dark .th-btn-icon:hover:not(:disabled) {
    background: #FAF5E8;
    border-color: #1C1208;
    color: #1C1208;
}
.theme-dark .th-verdict--pass {
    color: #1C1208;
}
.theme-dark .th-row-surface td {
    background: #FAF5E8 !important;
}

/* ── Comments ── */
.theme-dark .comments-section__title {
    color: #1C1208;
}
.theme-dark .comment-item {
    border-left-color: #D4A847;
    background: #FAF5E8;
}
.theme-dark .comment-item__name {
    color: #1C1208;
}
.theme-dark .comment-form-wrap {
    background: #FAF5E8;
}
.theme-dark .comment-form-wrap__title {
    color: #1C1208;
}
.theme-dark .comment-form__input:focus,
.theme-dark .comment-form__textarea:focus {
    border-color: #D4A847;
    box-shadow: 0 0 0 2px rgba(212,168,71,0.2);
}
.theme-dark .comment-tab--active {
    color: #1C1208;
    border-bottom-color: #D4A847;
}

/* ── Hero auth form ── */
.theme-dark .hero-auth {
    background: rgba(28,18,8,0.72);
}
.theme-dark .hero-auth__tab--active {
    border-bottom-color: #D4A847;
}
.theme-dark .hero-auth__input:focus {
    border-color: #D4A847;
    background: rgba(255,255,255,0.18);
}
.theme-dark .hero-auth__link:hover {
    color: #D4A847;
}

/* ── Settings page ── */
.theme-dark .settings-card__title {
    color: #1C1208;
}
.theme-dark .settings-avatar__placeholder {
    color: #D4A847;
}
.theme-dark .settings-sub-item__title {
    color: #1C1208;
}

/* ── Share buttons ── */
.theme-dark .share-btn--copied {
    background: #1C1208 !important;
    color: #fff !important;
    border-color: #1C1208 !important;
}

/* ── Rating widget ── */
.theme-dark .rating-avg {
    color: #1C1208;
}
.theme-dark .rating-msg--ok {
    background: #FAF5E8;
    color: #1C1208;
}

/* ── Back to top ── */
.theme-dark #back-to-top {
    background: #1C1208;
}
.theme-dark #back-to-top:hover {
    background: #2C1D0E;
}
