/* ================================================
   Revenue Cloud · SF Theme
   Shared Salesforce Lightning-inspired styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f3f2f2;
  color: #181818;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: #0176d3; text-decoration: none; }
a:hover { text-decoration: underline; color: #014486; }
button { font-family: inherit; cursor: pointer; }


/* ── APP BAR ── */

.sf-app-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: #032d60;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.sf-app-launcher {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sf-app-launcher:hover { background: rgba(255,255,255,0.1); }

.sf-app-name {
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.sf-app-name em { color: #4bb3fd; font-style: normal; }

.sf-global-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}
.sf-global-nav a {
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.sf-global-nav a:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.sf-global-nav a.active { color: white; background: rgba(255,255,255,0.18); font-weight: 600; }

.sf-bar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

.sf-avatar {
  width: 28px; height: 28px;
  background: #0176d3;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.65rem; font-weight: 700;
  border: 2px solid rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
}

.sf-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none; border: none; padding: 4px;
}
.sf-hamburger span {
  display: block; width: 18px; height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px; transition: all 0.2s;
}


/* ── CONTEXT BAR ── */

.sf-context-bar {
  position: fixed;
  top: 52px; left: 0; right: 0;
  height: 40px;
  background: white;
  border-bottom: 1px solid #dddbda;
  display: flex; align-items: center;
  padding: 0 20px; gap: 10px;
  z-index: 999;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sf-object-chip { display: flex; align-items: center; gap: 6px; }

.sf-object-icon-box {
  width: 20px; height: 20px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sf-object-icon-box.contact  { background: #47ccd6; }
.sf-object-icon-box.projects { background: #e287b2; }
.sf-object-icon-box.resume   { background: #f59331; }
.sf-object-icon-box.contact-list { background: #47ccd6; }

.sf-breadcrumb {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.75rem; color: #706e6b;
}
.sf-breadcrumb-link { color: #0176d3; text-decoration: none; font-weight: 500; }
.sf-breadcrumb-link:hover { text-decoration: underline; }
.sf-breadcrumb-sep { color: #c9c7c5; font-size: 0.7rem; }
.sf-breadcrumb-current { color: #181818; font-weight: 600; }

.sf-record-id {
  margin-left: auto;
  font-size: 0.65rem; color: #b0adab;
  font-family: 'Courier New', monospace;
}


/* ── PAGE ── */

.sf-page { padding-top: 92px; padding-bottom: 60px; min-height: 100vh; }
.sf-container { max-width: 1200px; margin: 0 auto; padding: 16px 20px; }


/* ── CARD ── */

.sf-card {
  background: white;
  border: 1px solid #dddbda;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  overflow: hidden;
}


/* ── SECTION LABEL ── */

.sf-section-label {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: #706e6b;
  margin-bottom: 14px; padding-bottom: 6px;
  border-bottom: 1px solid #e5e4e2;
}


/* ── BUTTONS ── */

.sf-btn {
  font-size: 0.77rem; font-weight: 600;
  padding: 6px 16px;
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.sf-btn-primary { background: #0176d3; color: white; border-color: #0176d3; }
.sf-btn-primary:hover { background: #014486; border-color: #014486; color: white; text-decoration: none; }
.sf-btn-secondary { background: white; color: #0176d3; border-color: #dddbda; }
.sf-btn-secondary:hover { background: #f3f2f2; text-decoration: none; color: #0176d3; }
.sf-btn-ghost { background: none; color: #706e6b; border-color: #dddbda; }
.sf-btn-ghost:hover { background: #f3f2f2; text-decoration: none; color: #181818; }


/* ── BADGES & TAGS ── */

.sf-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-badge {
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  background: #e8f4fd; color: #0176d3; border: 1px solid #c9e5f8;
  white-space: nowrap;
}

.sf-tag {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.sf-tag-current    { background: #e8f4fd; color: #0176d3; border: 1px solid #c9e5f8; }
.sf-tag-previous   { background: #f3f2f2; color: #706e6b; border: 1px solid #dddbda; }
.sf-tag-governance { background: #fff3e8; color: #c65200; border: 1px solid #fad2a8; }
.sf-tag-data       { background: #e8f4fd; color: #0176d3; border: 1px solid #c9e5f8; }
.sf-tag-automation { background: #ecfdf3; color: #16a34a; border: 1px solid #bbf7d0; }

.sf-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #ecfdf3; color: #16a34a;
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; border: 1px solid #bbf7d0;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.sf-status-dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; }


/* ── TABS ── */

.sf-tabs {
  background: white;
  border: 1px solid #dddbda; border-top: none; border-bottom: none;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.sf-tabs::-webkit-scrollbar { display: none; }

.sf-tab-btn {
  font-size: 0.78rem; font-weight: 600; color: #706e6b;
  padding: 11px 20px; border: none; background: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap; transition: all 0.15s;
}
.sf-tab-btn:hover { color: #181818; background: #f8f8f8; }
.sf-tab-btn.active { color: #0176d3; border-bottom-color: #0176d3; }

.sf-tab-panel {
  background: white;
  border: 1px solid #dddbda; border-top: 1px solid #e5e4e2;
  border-radius: 0 0 4px 4px; padding: 22px 20px;
}
.sf-tab-panel.hidden { display: none; }


/* ── RELATED LIST / TABLE ── */

.sf-related-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #f3f2f2;
  border: 1px solid #dddbda; border-bottom: none; border-radius: 4px 4px 0 0;
}
.sf-related-title {
  font-size: 0.78rem; font-weight: 700; color: #181818;
  display: flex; align-items: center; gap: 6px;
}
.sf-count-pill {
  background: #706e6b; color: white;
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}

.sf-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid #dddbda; border-top: none;
  border-radius: 0 0 4px 4px; font-size: 0.8rem;
}
.sf-table th {
  background: #fafaf9;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: #706e6b;
  padding: 8px 12px; border-bottom: 1px solid #dddbda;
  text-align: left; white-space: nowrap;
}
.sf-table td {
  padding: 10px 12px; border-bottom: 1px solid #f3f2f2; color: #181818; vertical-align: top;
}
.sf-table tr:last-child td { border-bottom: none; }
.sf-table tbody tr:hover td { background: #fafaf9; }
.sf-link-cell { color: #0176d3; font-weight: 600; }


/* ── PROJECT PAGES ── */

.sf-proj-header {
  background: white;
  border: 1px solid #dddbda;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  margin-bottom: 12px;
  overflow: hidden;
}

.sf-proj-header-top {
  padding: 22px 24px;
}

.sf-proj-header-top .sf-tag {
  margin-bottom: 10px;
  display: inline-block;
}

.sf-proj-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #16325c;
  line-height: 1.25;
  margin-bottom: 12px;
}

.sf-proj-impact {
  font-size: 0.9rem;
  color: #181818;
  line-height: 1.7;
  max-width: 840px;
  border-top: 1px solid #f3f2f2;
  padding-top: 12px;
  margin-top: 4px;
}

.sf-proj-body {
  background: white;
  border: 1px solid #dddbda;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  padding: 0 24px;
  overflow: hidden;
}

.sf-proj-section {
  padding: 18px 0;
  border-bottom: 1px solid #f3f2f2;
}
.sf-proj-section:last-child { border-bottom: none; }

.sf-proj-section-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #706e6b;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e4e2;
}

.sf-proj-content p {
  font-size: 0.88rem;
  color: #181818;
  line-height: 1.7;
  margin-bottom: 10px;
}
.sf-proj-content p:last-child { margin-bottom: 0; }

.sf-proj-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sf-proj-content li {
  font-size: 0.88rem;
  color: #181818;
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}
.sf-proj-content li:last-child { margin-bottom: 0; }
.sf-proj-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 4px;
  background: #0176d3;
  border-radius: 50%;
}
.sf-proj-content li strong { color: #16325c; font-weight: 600; }

.sf-arch-box {
  background: #f8f8f8;
  border: 1px solid #dddbda;
  border-left: 3px solid #0176d3;
  border-radius: 0 4px 4px 0;
  padding: 14px 16px;
  font-size: 0.8rem;
  color: #181818;
  line-height: 1.7;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  margin-top: 14px;
  white-space: pre-wrap;
}

.sf-screenshot {
  margin-top: 16px;
}
.sf-screenshot-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #706e6b;
  margin-bottom: 6px;
}
.sf-screenshot img {
  width: 100%;
  border: 1px solid #dddbda;
  border-radius: 4px;
  display: block;
}

.sf-screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.sf-proj-footer {
  padding: 18px 0 4px;
}


/* ── MOBILE NAV ── */

.sf-mobile-nav-panel {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: #032d60; padding: 8px 16px 12px;
  z-index: 998; border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.sf-mobile-nav-panel.open { display: flex; flex-direction: column; gap: 2px; }
.sf-mobile-nav-panel a {
  color: rgba(255,255,255,0.8); font-size: 0.82rem; font-weight: 500;
  padding: 8px 12px; border-radius: 4px; text-decoration: none;
}
.sf-mobile-nav-panel a:hover { background: rgba(255,255,255,0.1); color: white; text-decoration: none; }
.sf-mobile-nav-panel a.active { color: white; font-weight: 600; }


/* ── RESPONSIVE ── */

/* Tablet / large phone */
@media (max-width: 860px) {
  /* Navigation */
  .sf-global-nav { display: none; }
  .sf-hamburger { display: flex; }
  .sf-record-id { display: none; }

  /* Projects library screenshot grid */
  .sf-screenshot-grid { grid-template-columns: 1fr; }

  /* Page header: stack title and button */
  .sf-page-header { flex-direction: column; gap: 12px; }
  .sf-page-header-actions { width: 100%; }
  .sf-page-header-actions .sf-btn { width: 100%; justify-content: center; }

  /* Resume timeline: slightly tighter */
  .sf-timeline-item { padding-left: 40px; }
  .sf-timeline::before { left: 10px; }
  .sf-timeline-dot { left: 0; }
}

/* Mobile phone */
@media (max-width: 580px) {
  /* Container */
  .sf-container { padding: 10px 14px; }

  /* Project pages */
  .sf-proj-header-top { padding: 16px; }
  .sf-proj-body { padding: 0 16px; }
  .sf-proj-title { font-size: 1.2rem; }

  /* Resume: tighten timeline */
  .sf-timeline-item { padding-left: 32px; margin-bottom: 20px; }
  .sf-timeline-meta { flex-direction: column; gap: 2px; }
  .sf-timeline-role { font-size: 0.95rem; }

  /* Contact page card */
  .sf-contact-card { max-width: 100%; }
  .sf-contact-header, .sf-contact-body { padding: 16px; }

  /* Contact row on resume header */
  .sf-contact-row { flex-direction: column; gap: 4px; }
}
