/* ===== Layout 3 kolom: Basecamp (tersembunyi) | Menu Utama | Menu Lain ===== */
.container { max-width: 1440px; }
.layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
    align-items: start;
}
.layout .cards-grid { max-width: none; margin-left: 0; }
.bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.layout .card { position: relative; padding: 20px 14px; min-height: 76px; }
.layout .card-title { font-size: .82rem; letter-spacing: .07em; }
.layout .card-subtitle { font-size: .72rem; }

/* ===== Kotak ===== */
.bc-box {
    position: relative;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.bc-pub {
    border: 1px solid #d8dde3;
    padding: 52px 18px 18px;
    min-height: 220px;
}
.bc-box.bc-editing, .bc-private.bc-open {
    background: #E9ECEF;
    border: 2px solid #111;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

/* Pemicu: pendaki (Basecamp) & gunung (edit kotak) */
.bc-climber, .bc-mountain {
    position: absolute;
    height: auto;
    cursor: default;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15));
    z-index: 2;
}
.bc-climber { top: -62px; left: -8px; width: 120px; }
.bc-mountain { top: -34px; left: -22px; width: 90px; }
.bc-forest { top: -52px; left: -24px; width: 110px; }
.bc-climber:active, .bc-mountain:active { transform: scale(.97); }

/* Basecamp */
.bc-private { min-height: 60px; }
.bc-inner { display: none; padding: 60px 20px 20px; }
.bc-private.bc-open { min-height: 420px; }
.bc-private.bc-open .bc-inner { display: block; }

.bc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.bc-head h3 {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
    font-size: .9rem;
    color: #111;
}
.bc-bar { display: none; }
.bc-editing .bc-bar { display: flex; }
.bc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-btn {
    font-family: "DM Sans", sans-serif;
    font-size: .78rem;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
.bc-btn:hover { border-color: #111; color: #111; }
.bc-btn.bc-dark { background: #111; color: #fff; border-color: #111; }
.bc-pinbtn { display: none; }
.bc-editing .bc-pinbtn { display: inline-block; }

/* Kartu */
.bc-private .card { background: #fff7ed; border: 1px solid #fed7aa; }
.bc-private .card:hover { background: #ffedd5; }
.bc-editing .bc-pub .card, .bc-pub.bc-editing .card { background: rgba(255, 255, 255, .7); }
.bc-tools { display: none; position: absolute; top: 6px; right: 6px; gap: 4px; }
.bc-editing .bc-tools { display: flex; }
.bc-editing .card { cursor: default; transform: none; padding-top: 40px; }
.bc-tools button {
    border: none;
    background: #fff;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    font-size: .75rem;
}
.bc-add {
    display: none;
    border: 2px dashed #9ca3af;
    background: transparent !important;
    cursor: pointer;
    font: inherit;
}
.bc-private .bc-add { border-color: #fdba74; }
.bc-add .card-title { color: #4b5563; }
.bc-editing .bc-add { display: flex; }

/* ===== Modal ===== */
.bc-ov {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, .45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px;
}
.bc-ov.show { display: flex; }
.bc-modal {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.bc-modal img { width: 80px; height: auto; }
.bc-modal h2 { font-family: "Outfit", sans-serif; font-size: 1.4rem; margin: 6px 0 18px; }
.bc-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.bc-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d1d5db; transition: .15s; }
.bc-dot.on { background: #f97316; border-color: #f97316; }
.bc-shake { animation: bc-sh .35s; }
@keyframes bc-sh { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.bc-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bc-pad button {
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
    padding: 14px 0;
    border-radius: 12px;
    border: none;
    background: #f3f4f6;
    color: #111;
    cursor: pointer;
}
.bc-pad button:hover { background: #e5e7eb; }
.bc-pad button.bc-ghost { background: transparent; font-size: .85rem; color: #6B7280; }

.bc-form { text-align: left; max-width: 400px; }
.bc-form h2 { text-align: left; margin-bottom: 14px; }
.bc-form .field input, .bc-form .field select { font-size: .9rem; }
.bc-form .field select { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-family: "DM Sans", sans-serif; background: #fff; }
.bc-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ===== Responsif: tumpuk ke bawah ===== */
@media (max-width: 1000px) {
    .layout { grid-template-columns: minmax(0, 1fr); gap: 72px; }
    .bc-climber { left: -4px; width: 100px; top: -56px; }
    .bc-mountain { left: -6px; }
}
@media (max-width: 480px) {
    .bc-pub { padding: 48px 12px 12px; }
    .bc-inner { padding: 56px 12px 12px; }
    .bc-grid { gap: 10px; }
    .layout .card { padding: 16px 8px; }
    .layout .card-title { font-size: .74rem; letter-spacing: .04em; }
}
