/**
 * ============================================
 * Copyright 2026 DM Atcheh
 * Server/Aplikasi SelfBooth ShiroStudio
 * ============================================
 * DMHardware.css - Stylesheet Hardware & Booth Guide (ShiroStudio Theme)
 */

/* ── Section & Layout ──────────────────────────────── */
.dm-hw-section {
    padding: 120px 0 80px;
    min-height: 80vh;
}

@media (max-width: 768px) {
    .dm-hw-section {
        padding: 95px 0 60px;
    }
}

.dm-hw-hero {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

.dm-hw-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    border-radius: 4px;
    letter-spacing: 0.06em;
    background: #00b4d8;
    color: #050a12 !important;
    border: 2px solid #050a12;
    box-shadow: 3px 3px 0px #38bdf8;
    text-transform: uppercase;
}

.dm-hw-hero-title {
    font-size: 2.35rem;
    margin: 0.5rem 0 1rem;
    color: var(--dm-text-primary);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-transform: uppercase;
}

.dm-hw-hero-sub {
    font-size: 1.05rem;
    color: var(--dm-text-secondary);
    line-height: 1.7;
    max-width: 740px;
    margin: 0 auto;
}

/* ── Quick Jump Navigation ────────────────────────── */
.dm-hw-quick-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 960px;
    margin: 0 auto 2rem;
}

.dm-hw-nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    font-family: var(--dm-font-sans);
    border-radius: 4px;
    background: var(--dm-bg-card);
    border: 2px solid var(--dm-border);
    color: var(--dm-text-secondary);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 3px 3px 0px rgba(0, 180, 216, 0.15);
}

.dm-hw-nav-chip:hover {
    border-color: #00b4d8;
    color: #38bdf8;
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px #00b4d8;
}

.dm-hw-nav-chip svg {
    color: #00b4d8;
}

/* ── Compatibility Live Search ────────────────────── */
.dm-hw-search-box-wrap {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.dm-hw-search-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem 1.15rem;
    background: var(--dm-bg-card);
    border: 2px solid rgba(0, 180, 216, 0.3);
    border-radius: 6px;
    box-shadow: 4px 4px 0px rgba(0, 180, 216, 0.15);
    transition: all 0.2s ease;
}

.dm-hw-search-box:focus-within {
    border-color: #00b4d8;
    box-shadow: 4px 4px 0px #38bdf8;
    transform: translate(-1px, -1px);
}

.dm-hw-search-icon {
    display: flex;
    align-items: center;
    color: #00b4d8;
    flex-shrink: 0;
}

.dm-hw-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dm-text-primary);
    outline: none;
    font-family: var(--dm-font-sans);
}

.dm-hw-search-input::placeholder {
    color: var(--dm-text-muted);
    font-weight: 500;
}

.dm-hw-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--dm-border);
    border-radius: 4px;
    cursor: pointer;
    background: var(--dm-bg-input);
    color: var(--dm-text-secondary);
    transition: all 0.15s ease;
}

.dm-hw-search-clear:hover {
    background: #00b4d8;
    color: #050a12;
    border-color: #00b4d8;
}

.dm-hw-search-count {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #38bdf8;
    text-align: center;
    font-weight: 700;
}

/* ── Hardware Grid Cards ──────────────────────────── */
.dm-hw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
    margin-bottom: 3.5rem;
}

.dm-hw-card {
    background: var(--dm-bg-card);
    border: 2px solid rgba(0, 180, 216, 0.25);
    border-radius: 6px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 4px 4px 0px rgba(0, 180, 216, 0.15);
}

.dm-hw-card:hover {
    transform: translateY(-4px);
    border-color: #00b4d8;
    box-shadow: 0 14px 35px rgba(0, 180, 216, 0.2);
}

.dm-hw-card.dm-hw-highlight-search {
    border-color: #00b4d8 !important;
    box-shadow: 6px 6px 0px #38bdf8 !important;
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.08) 0%, var(--dm-bg-card) 100%) !important;
}

.dm-hw-card.dm-hw-dimmed {
    opacity: 0.3;
    filter: grayscale(80%);
}

/* ── Card Header (Fix Overlap Collision) ──────────── */
.dm-hw-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 180, 216, 0.2);
    flex-wrap: wrap;
}

.dm-hw-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: #00b4d8;
    color: #050a12;
    border: 2px solid #050a12;
    box-shadow: 3px 3px 0px #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dm-hw-card-icon svg {
    width: 24px;
    height: 24px;
}

.dm-hw-card-title {
    flex: 1;
    min-width: 170px;
}

.dm-hw-card-title h2 {
    font-size: 1.2rem;
    margin: 0 0 0.2rem;
    color: var(--dm-text-primary);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.dm-hw-card-title span {
    font-size: 0.82rem;
    color: var(--dm-text-secondary);
    font-weight: 600;
    display: block;
}

/* Status Badge (Static position to prevent title collision) */
.dm-hw-status-badge {
    position: static !important;
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
    margin-left: auto;
}

.dm-hw-status-rec {
    background: rgba(0, 180, 216, 0.15);
    color: #38bdf8;
    border-color: #00b4d8;
}

.dm-hw-status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: #10b981;
}

/* ── Intro Box ────────────────────────────────────── */
.dm-hw-intro-box {
    background: var(--dm-bg-input);
    border: 1.5px solid var(--dm-border);
    border-radius: 4px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dm-text-secondary);
}

.dm-hw-intro-box strong {
    color: #00b4d8;
    font-weight: 800;
}

/* ── Spec Items ───────────────────────────────────── */
.dm-hw-spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dm-hw-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--dm-bg-input);
    border-radius: 4px;
    border: 1.5px solid var(--dm-border);
    transition: border-color 0.2s ease;
}

.dm-hw-spec-item:hover {
    border-color: #00b4d8;
}

.dm-hw-spec-icon {
    color: #00b4d8;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.dm-hw-spec-icon svg {
    width: 20px;
    height: 20px;
}

.dm-hw-spec-content {
    flex: 1;
}

.dm-hw-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dm-text-muted);
    margin-bottom: 0.2rem;
    font-weight: 800;
}

.dm-hw-spec-val {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--dm-text-primary);
    line-height: 1.4;
}

.dm-hw-spec-desc {
    font-size: 0.82rem;
    color: var(--dm-text-secondary);
    margin-top: 0.25rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ── Subcards & Badges ────────────────────────────── */
.dm-hw-subcard {
    background: var(--dm-bg-input);
    border-radius: 4px;
    padding: 1rem;
    border: 1.5px solid var(--dm-border);
    margin-bottom: 1rem;
}

.dm-hw-subcard-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--dm-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dm-hw-subcard-header svg {
    color: #00b4d8;
}

.dm-hw-subcard-body {
    font-size: 0.88rem;
    color: var(--dm-text-secondary);
    line-height: 1.6;
}

.dm-hw-subcard-body strong {
    color: var(--dm-text-primary);
}

.dm-hw-badge-group {
    margin-bottom: 1.25rem;
}

.dm-hw-group-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--dm-text-primary);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dm-hw-group-title svg {
    color: #00b4d8;
}

.dm-hw-badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dm-hw-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--dm-bg-input);
    border: 1.5px solid var(--dm-border);
    color: var(--dm-text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.dm-hw-pill:hover {
    background: rgba(0, 180, 216, 0.15);
    border-color: #00b4d8;
    color: #38bdf8;
    transform: translateY(-1px);
}

.dm-hw-pill.dm-hw-pill-match {
    background: #00b4d8 !important;
    color: #050a12 !important;
    border-color: #050a12 !important;
    font-weight: 900;
    box-shadow: 3px 3px 0px #38bdf8;
}

.dm-hw-pill-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.dm-hw-pill-cyan {
    background: rgba(0, 180, 216, 0.12);
    border-color: rgba(0, 180, 216, 0.4);
    color: #38bdf8;
}

/* ── Alerts ───────────────────────────────────────── */
.dm-hw-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    border-radius: 4px;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: auto;
}

.dm-hw-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.dm-hw-alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.dm-hw-alert-info {
    background: rgba(0, 180, 216, 0.12);
    border: 1.5px solid rgba(0, 180, 216, 0.4);
    color: #38bdf8;
}

/* ── Matrix Table ─────────────────────────────────── */
.dm-hw-matrix-wrap {
    margin: 4rem 0 3.5rem;
}

.dm-hw-matrix-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.dm-hw-matrix-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--dm-text-primary);
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.dm-hw-matrix-sub {
    font-size: 0.98rem;
    color: var(--dm-text-secondary);
}

.dm-hw-table-card {
    background: var(--dm-bg-card);
    border: 2px solid rgba(0, 180, 216, 0.25);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 4px 4px 0px rgba(0, 180, 216, 0.15);
}

.dm-hw-table-responsive {
    overflow-x: auto;
}

.dm-hw-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.dm-hw-table th {
    background: var(--dm-bg-input);
    padding: 1.1rem 1.25rem;
    font-weight: 900;
    color: var(--dm-text-primary);
    border-bottom: 2px solid rgba(0, 180, 216, 0.3);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dm-hw-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1.5px solid var(--dm-border);
    color: var(--dm-text-secondary);
    vertical-align: middle;
}

.dm-hw-table tr:last-child td {
    border-bottom: none;
}

.dm-hw-table tr:hover td {
    background: var(--dm-bg-input);
}

/* ── Consultation Banner ──────────────────────────── */
.dm-hw-consult-card {
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.12) 0%, rgba(9, 17, 30, 0.95) 100%);
    border: 2px solid #00b4d8;
    border-radius: 6px;
    padding: 2.75rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    box-shadow: 6px 6px 0px rgba(0, 180, 216, 0.35);
}

body.dm-theme-light .dm-hw-consult-card {
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.dm-hw-consult-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.dm-hw-consult-text h2 {
    font-size: 1.55rem;
    color: var(--dm-text-primary);
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dm-hw-consult-text p {
    font-size: 1rem;
    color: var(--dm-text-secondary);
    max-width: 650px;
    line-height: 1.65;
    margin: 0 auto;
}

.dm-hw-consult-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.dm-btn-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    padding: 13px 26px;
    border-radius: 4px;
    border: 2px solid #050a12;
    box-shadow: 4px 4px 0px #128C7E;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.925rem;
    font-family: var(--dm-font-sans);
}

.dm-btn-whatsapp:hover {
    background: #20bd5a !important;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #128C7E;
    color: #ffffff !important;
}

.dm-hw-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .dm-hw-hero-title {
        font-size: 1.75rem;
    }
    .dm-hw-grid {
        grid-template-columns: 1fr;
    }
    .dm-hw-card {
        padding: 1.5rem;
    }
    .dm-hw-consult-card {
        padding: 2rem 1.25rem;
    }
    .dm-hw-quick-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
    }
    .dm-hw-nav-chip {
        white-space: nowrap;
    }
    .dm-hw-status-badge {
        margin-left: 0;
        margin-top: 0.4rem;
        width: 100%;
        justify-content: center;
    }
    .dm-hw-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
