/* ============================================================
   RESPONSIVE — Tablet & Mobile Breakpoints
   T.M CORP — Cyberpunk CV
   ============================================================ */

/* --- Tablet (900px) --- */
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid .panel[style*="grid-column"] { grid-column: 1 !important; }
  .identity-card { grid-column: 1; flex-direction: column; text-align: center; }
  .contact-grid  { grid-template-columns: 1fr; }
  .skills-columns { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  #terminal { width: calc(100vw - 30px); right: 15px; }
}

/* --- Fixer overlays (tablet) --- */
@media (max-width: 900px) {
  #fixerCall { padding-left: 30px; }
  #fixerChat {
    left: 16px; right: 16px;
    width: auto; max-height: 80vh;
  }
}

/* --- Mobile (480px) --- */
@media (max-width: 480px) {
  .top-hud { padding: 0 12px; height: 38px; }

  .nav-tabs {
    top: 38px; height: 40px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap; gap: 0;
  }
  .nav-tab {
    padding: 6px 12px; font-size: 11px;
    white-space: nowrap; flex-shrink: 0;
  }

  .content { margin-top: 42px; padding: 12px; }

  /* Global text sizes */
  body { font-size: 15px; }
  .identity-info h1 { font-size: 24px; letter-spacing: 2px; }
  .identity-info .tagline { font-size: 13px; letter-spacing: 1px; }
  .identity-info .bio { font-size: 14px; line-height: 1.6; }
  .avatar-holo { width: 100px; height: 100px; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .status-item .label { font-size: 11px; }
  .status-item .value { font-size: 13px; }
  .cloud-tag { font-size: 13px; }

  /* Experience */
  .exp-item h3 { font-size: 16px; }
  .exp-item p { font-size: 14px; line-height: 1.6; }
  .exp-date { font-size: 12px; }
  .exp-tag { font-size: 11px; }

  /* Education */
  .edu-card h3 { font-size: 15px; }
  .edu-card p { font-size: 14px; line-height: 1.6; }

  /* Projects */
  .project-grid { grid-template-columns: 1fr; }
  .project-card h3 { font-size: 15px; }
  .project-card p  { font-size: 14px; line-height: 1.6; }
  .project-tag { font-size: 11px; }

  /* Neural map */
  .node-label { font-size: 13px; }

  /* Contact */
  .contact-label { font-size: 12px; }
  .contact-value { font-size: 14px; }

  /* Terminal */
  #terminal {
    left: 0; right: 0; bottom: 0;
    width: 100%; min-width: 0;
    height: 50vh;
    z-index: 10001;
    border: none; border-radius: 0;
    border-top: 1px solid var(--panel-border);
  }
  #termOutput .line { font-size: 13px; }
  #termInput { font-size: 16px; }
  #radarCanvas { max-width: 100%; height: auto; }
  .term-resize { display: none; }
  .term-expand { display: none; }

  /* HUD */
  #monitorHud, #monitorHudLeft { font-size: 10px; bottom: 2px; }
  .panel-header { font-size: 14px; }

  #bootLogo { font-size: 10px; line-height: 1.2; }
  #bootCorpLabel { font-size: 10px; letter-spacing: 4px; }

  /* Fixer overlays */
  #fixerCall { padding-left: 20px; }
  .fixer-call-name { font-size: 14px; }
  #fixerChat {
    left: 0; right: 0; top: 38px; bottom: 0;
    width: auto; max-height: none;
    transform: none !important;
    animation: none;
    border: none;
    border-radius: 0;
  }
  #fixerChat .fixer-chat-top { flex-direction: row; align-items: stretch; }
  .fixer-avatar-card { width: auto; flex-direction: row; }
  .fixer-avatar-frame { width: 44px; height: 44px; }
  .fixer-avatar-glyph { font-size: 22px; }
  .fixer-avatar-bar { display: none; }
  .fixer-avatar-corner { display: none; }
  .fixer-chat-header { padding: 6px 12px; }
  .fixer-chat-header-top { display: none; }
  .fixer-chat-header-title { gap: 8px; }
  .fixer-chat-label { font-size: 14px; letter-spacing: 1px; }
  .fixer-chat-header-bar { margin-top: 4px; }
  .fixer-chat-body { max-height: none; flex: 1; padding: 12px; }
  .fixer-msg { font-size: 15px; max-width: 90%; line-height: 1.6; }
  .fixer-chat-input-wrap { padding: 10px 12px; }
  #fixerChatInput { font-size: 16px; }

  /* Disable game on mobile */
  #invaderGame { display: none !important; }

  /* Disable custom cursor on touch devices */
  #cursorDot, #cursorRing { display: none !important; }
  * { cursor: default !important; }
  #terminal.hidden { display: none; }
}
