/* ============================================================
   GDI Related Experience - Matrix UI styles
   (ADDIE x Method/Sector heat matrix, list panel, detail modal)
   ============================================================ */

@keyframes expSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.exp-section,
.exp-section *,
.exp-modal-box,
.exp-modal-box * { --c-ink: #111827; --c-navy: #1e2d45; --c-rule: #e5e8ee; --c-rule-dk: #cdd2db; --c-bg: #f8f9fb; --c-acc: var(--primary); --c-acc2: #1a5c96; --h1: #ffffff; --h2: #ffffff; --h3: #ffffff; --h4: #ffffff; }
.exp-section { background: #eef0f5; }
.exp-inner { max-width: 1360px; }
.exp-intro-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .6rem; padding-bottom: .85rem; border-bottom: 1px solid var(--c-rule-dk); }
.exp-intro-text { font-size: .75rem; font-weight: 600; color: #7a8099; letter-spacing: .05em; text-transform: uppercase; }
.exp-intro-legend { display: flex; align-items: center; gap: 1.2rem; font-size: .71rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #7a8099; }
.exp-legend-item { display: flex; align-items: center; gap: .4rem; }
.exp-legend-box { display: inline-block; width: 18px; height: 18px; border-radius: 3px; flex-shrink: 0; }
.exp-legend-box.has-data { background: #fff; border: 1.5px solid #aab0c4; }
.exp-legend-box.no-data { background: #fff; border: 1.5px solid #d8dce8; }
.exp-legend-text { color: #7a8099; }
.exp-matrix-wrap { overflow-x: auto; margin-bottom: 2rem; }
.exp-table-block { overflow-x: auto; border-radius: 4px; box-shadow: 0 2px 24px rgba(10,20,40,.1); border: 1px solid var(--c-rule-dk); margin-bottom: 1.75rem; }
.exp-table-block:last-child { margin-bottom: 0; }
.exp-matrix-table { width: 100%; border-collapse: collapse; border-spacing: 0; background: #fff; min-width: 820px; table-layout: auto; }
.exp-matrix-table thead { border-bottom: none; }
.exp-matrix-table thead th { padding: 0; background: var(--c-navy); border: none; box-shadow: none; }
.exp-th-empty { width: 200px; min-width: 160px; background: #0f1c30; }
.exp-th-addie { text-align: center; vertical-align: bottom; padding: 0; position: relative; border-left: 1px solid rgba(255,255,255,.06); }
.exp-th-addie::after { display: none; }
.exp-th-addie-inner { display: none; }
.exp-th-arrow { display: none; }
.exp-th-arrow-badge { position: absolute; left: -13px; top: 50%; transform: translateY(-65%); font-size: .95rem; font-weight: 700; color: var(--primary); z-index: 2; pointer-events: none; }
.exp-th-addie-label { display: block; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .1em; text-transform: uppercase; padding: .9rem .75rem .4rem; line-height: 1.35; }
.exp-th-addie::before { display: none; }
.exp-th-addie-sub { display: none; }
.exp-group-divider-row { display: none; }
.exp-group-divider-label { display: none; }
.exp-row-method:last-of-type td { border-bottom: 2px solid var(--c-rule-dk); }
.exp-row-sector:first-child td { border-top: none; }
.exp-matrix-table tbody tr:first-child td { border-top: none; }
.exp-row-label { font-size: .8rem; font-weight: 600; color: var(--c-ink); padding: .7rem .9rem .7rem 1rem; background: #f8f9fb; border-right: 1px solid var(--c-rule-dk); border-bottom: 1px solid var(--c-rule); white-space: normal; word-break: keep-all; vertical-align: middle; min-width: 160px; letter-spacing: .01em; }
.exp-matrix-table tbody tr:last-child .exp-row-label { border-bottom: none; }
.exp-matrix-cell { border-bottom: 1px solid var(--c-rule); border-left: 1px solid var(--c-rule); border-top: none; border-right: none; vertical-align: middle; text-align: center; cursor: default; transition: filter .12s, box-shadow .12s; position: relative; height: 54px; min-width: 90px; }
.exp-matrix-cell.no-data { background: #ffffff; cursor: default; }
.exp-matrix-cell.has-data { cursor: pointer; }
.exp-matrix-cell.heat-1 { background: var(--h1); }
.exp-matrix-cell.heat-2 { background: var(--h2); }
.exp-matrix-cell.heat-3 { background: var(--h3); }
.exp-matrix-cell.heat-4 { background: var(--h4); }
.exp-matrix-cell.has-data:hover { filter: brightness(.9); box-shadow: inset 0 0 0 2px rgba(232,129,36,.55); z-index: 1; }
.exp-matrix-cell.active { filter: brightness(.85); box-shadow: inset 0 0 0 2.5px var(--primary); }
.exp-cell-count { display: block; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; color: var(--c-navy); position: relative; z-index: 1; }
.exp-matrix-cell.heat-1 .exp-cell-count,
.exp-matrix-cell.heat-2 .exp-cell-count,
.exp-matrix-cell.heat-3 .exp-cell-count,
.exp-matrix-cell.heat-4 .exp-cell-count { color: #000000; text-shadow: none; }
.exp-cell-empty { font-size: .8rem; color: #c8ccd8; font-weight: 400; }
.exp-cell-bar { display: none; }
.exp-matrix-cell.no-data .exp-cell-count { display: none; }
.exp-th-addie-desc { font-size: .63rem; font-weight: 400; font-style: italic; color: rgba(255,255,255,.55); letter-spacing: .01em; padding: 0 .75rem .7rem; line-height: 1.45; text-transform: none; }
.exp-list-panel { background: #fff; border: 1px solid var(--c-rule-dk); border-top: 3px solid var(--primary); border-radius: 4px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 4px 24px rgba(10,20,40,.08); animation: expSlideDown .2s ease; }
.exp-list-panel-header { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.4rem; background: var(--c-navy); gap: 1rem; }
.exp-list-panel-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: .55rem; }
.exp-list-panel-title i { color: var(--primary); }
.exp-list-close-btn { background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.6); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 3px; cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: .35rem; font-family: inherit; }
.exp-list-close-btn:hover { border-color: var(--primary); color: var(--primary); }
.exp-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1px; padding: 0; background: var(--c-rule); }
.exp-proj-card { background: #fff; border: none; border-radius: 0; padding: 1.15rem 1.25rem; cursor: pointer; transition: background .12s; display: flex; flex-direction: column; gap: .5rem; position: relative; overflow: hidden; }
.exp-proj-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background .15s; }
.exp-proj-card:hover { background: #f9fafc; }
.exp-proj-card:hover::before { background: var(--primary); }
.exp-proj-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .55rem; }
.exp-proj-title { font-size: .84rem; font-weight: 700; color: var(--c-ink); line-height: 1.5; flex: 1; }
.exp-proj-arrow { color: #bfc5d3; font-size: .7rem; flex-shrink: 0; margin-top: .22rem; transition: color .15s, transform .15s; }
.exp-proj-card:hover .exp-proj-arrow { color: var(--primary); transform: translateX(3px); }
.exp-proj-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .7rem; font-weight: 500; color: #7b84a0; }
.exp-proj-meta i { color: var(--primary); margin-right: .1rem; font-size: .65rem; }
.exp-proj-meta-sep { color: #cdd2db; }
.exp-tooltip { position: fixed; background: #ffffff; color: #111827; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .42rem 1rem; border-radius: 4px; border: 1px solid var(--c-rule-dk); border-bottom: 2px solid var(--primary); pointer-events: none; z-index: 9999; white-space: nowrap; box-shadow: 0 4px 20px rgba(10,20,40,.18); opacity: 0; transition: opacity .1s; transform: translateX(-50%); }
.exp-tooltip.visible { opacity: 1; }
.exp-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #ffffff; border-bottom: none; }
.exp-modal-box { max-width: 780px !important; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 4px; box-shadow: 0 12px 56px rgba(10,20,40,.3); }
.exp-modal-inner { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.exp-modal-header { padding: 1.6rem 2rem 1.2rem; background: var(--c-navy); color: #fff; flex-shrink: 0; position: relative; border-top: 4px solid var(--primary); }
.exp-modal-badge-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.exp-modal-badge { padding: .15rem .6rem; border-radius: 2px; font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.exp-modal-badge.addie { background: var(--primary); color: #fff; }
.exp-modal-badge.method { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2); }
.exp-modal-title { font-size: 1.1rem; font-weight: 800; line-height: 1.45; color: #fff; margin-bottom: .5rem; letter-spacing: -.01em; }
.exp-modal-meta-row { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; font-size: .73rem; font-weight: 500; color: rgba(255,255,255,.48); letter-spacing: .03em; }
.exp-modal-meta-row i { color: var(--primary); margin-right: .3rem; }
.exp-modal-body { overflow-y: auto; flex: 1; background: #f5f7fa; }
.exp-modal-close { position: absolute; top: 1rem; right: 1.1rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.55); font-size: .82rem; width: 28px; height: 28px; border-radius: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.exp-modal-close:hover { border-color: var(--primary); color: var(--primary); }
.exp-modal-section { padding: 1.2rem 1.7rem; border-bottom: 1px solid #e4e8ef; background: #fff; margin-bottom: 1px; }
.exp-modal-section:last-child { border-bottom: none; margin-bottom: 0; }
.exp-modal-section-title { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--primary); margin-bottom: .65rem; display: flex; align-items: center; gap: .4rem; padding-left: .6rem; border-left: 2px solid var(--primary); }
.exp-modal-text { font-size: .86rem; color: #3a4060; line-height: 1.8; margin: 0; }
.exp-modal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.exp-modal-list li { display: flex; gap: .55rem; font-size: .85rem; color: #3a4060; line-height: 1.65; }
.exp-modal-list li::before { content: ''; display: block; flex-shrink: 0; width: 4px; height: 4px; border-radius: 1px; background: var(--primary); margin-top: .65rem; }
.exp-modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-rule); border: 1px solid var(--c-rule-dk); border-radius: 3px; overflow: hidden; }
.exp-modal-info-item { background: #f9fafb; padding: .7rem 1rem; }
.exp-modal-info-label { font-size: .6rem; font-weight: 800; color: #8a90a8; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .28rem; }
.exp-modal-info-value { font-size: .86rem; font-weight: 600; color: var(--c-ink); line-height: 1.4; }
.exp-modal-content { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.exp-modal-section-title i { font-size: .8rem; }

@media (max-width: 768px) {
  .exp-th-empty { width: 130px; }
  .exp-row-label { font-size: .74rem; padding: .5rem .7rem; white-space: normal; }
  .exp-matrix-cell { height: 44px; }
  .exp-project-grid { grid-template-columns: 1fr; }
  .exp-modal-box { max-width: 100% !important; margin: 0 !important; border-radius: 0 !important; max-height: 100vh !important; }
  .exp-modal-header { padding: 1.1rem 1.1rem .9rem; }
  .exp-modal-section { padding: .9rem 1.1rem; }
  .exp-modal-info-grid { grid-template-columns: 1fr; }
  .exp-list-panel-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
@media (max-width: 480px) {
  .exp-th-addie-label { font-size: .76rem; }
  .exp-th-addie-sub { display: none; }
  .exp-modal-title { font-size: .92rem; }
}
